Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
J

JockerSoft

@JockerSoft
About
Posts
16
Topics
4
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • manbu dot net
    J JockerSoft

    let's report to Google AdSense that they are using copyrighted materials: Google will delete their AdSense account and they won't make any more money from our articles: click on "Ads by Google" link on the bottom left of an ad on any page under http://www.manbu.net/Lib/En/ click on "Send Google your thoughts on the site or the ads you just saw" click on "Also Report a Violation?" and fill the form off course, individual articles authors and codeproject can also proceed legally against the site owner.

    _______ JeniuS - the file Organizer

    IT & Infrastructure csharp tutorial question discussion learning

  • display shortcut menu in taskbar
    J JockerSoft

    private const int WS_CHILD = 0x40000000;
    private const int WS_CLIPCHILDREN = 0x2000000;
    private const int WS_MINIMIZEBOX = 0x20000;
    private const int WS_MAXIMIZEBOX = 0x10000;
    private const int WS_SYSMENU = 0x80000;
    private const int CS_DBLCLKS = 0x8;

    protected override CreateParams CreateParams
    {
    get
    {
    CreateParams cp = base.CreateParams;
    cp.Style = WS_CLIPCHILDREN | WS_MINIMIZEBOX | WS_SYSMENU;
    cp.ClassStyle = CS_DBLCLKS;
    return cp;
    }
    }

    _______ JeniuS - the file Organizer

    C# question php

  • C# and Windows Shortcuts
    J JockerSoft

    Hi, take a look at this: ShellLink it uses some COM interfaces, but it does this automatically I found it very useful in a couple of projects Jocker _______ JeniuS - the file Organizer

    C# csharp dotnet com help question

  • display shortcut menu in taskbar
    J JockerSoft

    hi, I have a form with this.FormBorderStyle = FormBorderStyle.None; and I would like to display the standard shortcut menu that usually pops up when the user right clicks on a application button in the taskbar. How can I do this? Any suggestion is highly appreciated It would be cool to add some custom entries to the menu (as winamp does, see sceenshot[^]) but maybe I'm asking too much. Thanks in advance Jocker _______ JeniuS - the file Organizer

    C# question php

  • Extract 48x48 size icon using SHGetFileInfo
    J JockerSoft

    take a look at this article on vbaccelerator.com: it solved my headaches with extralarge icon extraction _______ http://www.jockersoft.altervista.org

    C# tutorial announcement

  • How to display results of a console app in a textbox of another app form?
    J JockerSoft

    you can use this:

    System.Diagnostics.Process process = new System.Diagnostics.Process();
    System.Diagnostics.ProcessStartInfo info = new System.Diagnostics.ProcessStartInfo();
    info.FileName = "CommandLineApplication.exe";
    info.CreateNoWindow = true;
    info.RedirectStandardInput = true;
    info.RedirectStandardOutput = true;
    process.StartInfo = info;
    process.Start();

    to retrieve the results use process.StandardOutput.ReadToEnd(); or the other ReadX() methods _______ http://www.jockersoft.altervista.org

    C# question tutorial

  • How to change system time?
    J JockerSoft

    you can call the function SetSystemTime[^] located in Kernel32.dll but i don't know ho to interop a SYSTEMTIME structure. :sigh: _______ http://www.jockersoft.altervista.org

    C# csharp tutorial question

  • disable poweroff function
    J JockerSoft

    thank you Heath and Dave for your hints. I followed Dave's one (much simpler) and it works. here is the code that does the job:

    [DllImport("Kernel32.dll")]
    private static extern uint SetThreadExecutionState
    (
    uint esFlags
    );

    private const uint ES_SYSTEM_REQUIRED = 0x00000001;
    private const uint ES_DISPLAY_REQUIRED = 0x00000002;
    private const uint ES_CONTINUOUS = 0x80000000;

    private void disablePoweroff()
    {
    SetThreadExecutionState(ES_SYSTEM_REQUIRED | ES_DISPLAY_REQUIRED | ES_CONTINUOUS);
    }

    private void enablePoweroff()
    {
    SetThreadExecutionState(ES_SYSTEM_REQUIRED | ES_DISPLAY_REQUIRED);
    }

    thank you again, bye ________ http://www.jockersoft.altervista.org

    C# com question

  • disable poweroff function
    J JockerSoft

    hi, I'm developing a mediaplayer, and I need to disable the screensaver and the poweroff functions while playing a video file. on msdn I found that I have to use the SystemParametersInfo[^] function. This code works only partially: the screensaver is disabled, but the monitor is still switched off by the system. [DllImport("user32.dll")] private static extern bool SystemParametersInfo ( uint action, uint param, object data, uint winini ); private const int SPI_SETSCREENSAVEACTIVE = 0x0011; //17 private const int SPI_SETPOWEROFFACTIVE = 0x0056; //86 private void someMethod() { //disable screensaver. this works SystemParametersInfo(SPI_SETSCREENSAVEACTIVE, 0, null, 0); //disable poweroff. doesn't work SystemParametersInfo(SPI_SETPOWEROFFACTIVE, 0, null, 0); } what's wrong? thank you ________ http://www.jockersoft.altervista.org

    C# com question

  • formatting XML problem
    J JockerSoft

    DataSet datas = new DataSet("DataSetName"); DataTable dataTable = new DataTable("myNewTableName"); DataRow dataRow = dataTable.NewRow(); dataTable.Rows.Add(dataRow); for(int i = 0; i<5; i++) { DataColumn dataColumn = new DataColumn();; dataColumn.ColumnName = "myColumnName"+i.ToString(); dataTable.Columns.Add(dataColumn); dataRow["myColumnName"+i.ToString()]="myItem"+i.ToString(); } dataTable.AcceptChanges(); datas.Tables.Add(dataTable); dataGrid1.DataSource=dataTable; datas.WriteXml("TestXml.xml"); This code generate the following xml file: -------------- myItem0 myItem1 myItem2 myItem3 myItem4 -------------- I need the same data to be formatted in this way: -------------- -------------- how can I do this? thanks _____________ http://members.xoom.virgilio.it/yuppygames/english/index.htm

    C# question database xml help

  • Populating a combobox with a listview
    J JockerSoft

    to make the comboBox contain the same data of the listview(limited to 1 column only) you can set the DataSource property of the comboBox to listView1.Items and the DisplayMember property to Text . in the SelectedIndexChanged event of listView1 object , edit the Text property of the 2 textBoxes: private void listView1_SelectedIndexChanged(object sender, System.EventArgs e) { textBox1.Text=listView.SelectedItems[0].Text; textBox2.Text=listView.SelectedItems[0.SubItems[0].Text; }

    C# tutorial

  • PasswordBox
    J JockerSoft

    if you want to display the normal asterisk character in a Windows System < win2K you can use this: if ((Environment.OSVersion.Version.Major >= 5) || ( (Environment.OSVersion.Platform == PlatformID.Win32NT) && (Environment.OSVersion.Version.Major == 4) )) { textBox1.PasswordChar= '•'; //or '●' } bye

    C# question wpf

  • PasswordBox
    J JockerSoft

    you can use the dot character (copy and paste one of these) • ( U+0222 arial) ● ( U+25CF times new roman) or any other character in the Windows' CharactersMap (unicode section)

    C# question wpf

  • how to avoid panel flicker ?
    J JockerSoft

    thank you very much. I did what you said and now it works. I can't believe it was panel's fault! I created that panel because I wanted to avoid repainting every single pixel of the form thinking it was faster :mad: if anyone wants to see the correct code, click here: http://utenti.lycos.it/yuppygames/codeproject/flicker2.zip thank you again colderthanfusion

    C# graphics help tutorial question

  • open external application
    J JockerSoft

    thank you very much for the code. I think the MSDN help is great to learn how to use classes/components, but it doesn't explains which class has to be used for a certain purpose. where can I find a handbook that can guide me on finding help on the msdn documentation? I'm looking for help on finding help: weird,isn't it?:)

    C# question

  • open external application
    J JockerSoft

    Hello, sorry if this is a newbie question but here goes anyway. I want to write a simple windows application, that opens an external program (.exe) after clicking on a Button. Can you post the code? How can I find these infos in the MSDN documentation? Thank you

    C# question
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups