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
U

usermans

@usermans
About
Posts
17
Topics
11
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • TableLayoutPanel
    U usermans

    This code worked fine for columns, it can also be slightly modifed to fit for rows:

    tableLayoutPanel1.ColumnStyles.Clear();
    int numOfColumns = 4;
    tableLayoutPanel1.ColumnCount = numOfColumns;
    for (int i = 0; i < numOfColumns ; i++ )
    {
    ColumnStyle cStyle = new ColumnStyle();
    cStyle.SizeType = SizeType.Percent;
    cStyle.Width = 100 / numOfColumns;
    tableLayoutPanel1.ColumnStyles.Add(cStyle);
    }

    C# question help

  • Colorizing listview rows according to value
    U usermans

    Well, The method ListViewItem.SubItems.Add() can take a simple string to create a subitem, but it also can take a ListViewItem.ListViewSubItem object to do the same thing. So, you can create ListViewItem.ListViewSubItem subitem, set its BackColor property to whatever you want, and then add it to the SubItems collection of your ListViewItem

    ListViewItem.ListViewSubItem it1 = new ListViewItem.ListViewSubItem();
    it1.BackColor = Color.Red;
    item.SubItems.Add(it1);

    C# question

  • DataGridView, Checkbox Column, Sorting [modified]
    U usermans

    Hello, I have a DataGridView on a Windows Form , it has 3 columns, one of them is a CheckboxColumn, the other two columns are set to be automatically sortable. The problem is that when I sort one of the sortable columns, the selected checkboxes in the CheckBox column are lost.. How can I keep the checked checkboxes checked after performing a sort on another column.

    modified on Saturday, February 14, 2009 7:20 AM

    C# algorithms help question

  • .NET 2.0 configuration
    U usermans

    Hello, I installed .NET framework 1.1 on my computer and a "Microsoft .NET Framework 1.1 Configuration" showed up in "Administrative Tools" as expected, but when I installed .NET Framework 2.0 it didn't show any configuration tool in the "Administrative Tools"! What is the problem?

    .NET (Core and Framework) question csharp dotnet tools help

  • Uncatchable Error!
    U usermans

    Hello, I am using the TreeView control (version 2.0) in a Visual Studio 2008 Windows application. Everything works fine on the development computer but when I deploy the program to the client's machine the control produces the following error when the user makes a few clicks on the nodes: ///////////////////////////////////////////////////// See the end of this message for details on invoking just-in-time (JIT) debugging instead of this dialog box. ************** Exception Text ************** System.DivideByZeroException: Attempted to divide by zero. at System.Windows.Forms.UnsafeNativeMethods.CallWindowProc(IntPtr wndProc, IntPtr hWnd, Int32 msg, IntPtr wParam, IntPtr lParam) at System.Windows.Forms.NativeWindow.DefWndProc(Message& m) at System.Windows.Forms.Control.DefWndProc(Message& m) at System.Windows.Forms.TreeView.WmMouseDown(Message& m, MouseButtons button, Int32 clicks) at System.Windows.Forms.TreeView.WndProc(Message& m) at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m) at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m) at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam) ************** Loaded Assemblies ************** mscorlib Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.42 (RTM.050727-4200) CodeBase: file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll ---------------------------------------- CarRent Assembly Version: 1.0.0.0 Win32 Version: 1.0.0.0 CodeBase: file:///C:/Program%20Files/ISS/CarRent%20Setup/CarRent.exe ---------------------------------------- //////////////////////////////////////////// I couldn't find any reasonable cause for this error, and I couldn't catch it! I surrounded all my code with try/catch blocks and none of them was able to catch the error! One more thing to mention, the project that contains the control was originally developed in VS 2005 and then converted to VS 2008 format (I don't know if this has anything to do with the error, but I mentioned it, just in case).

    C# csharp visual-studio help announcement

  • Deploy a web service
    U usermans

    Hello, I want to deploy a web service that exposes an Access database to clients, the database file is located in the App_Data folder in the service's folder. The problem is that I have to set the security settings for that file manually using NTFS security tab in the properties window of the database file to allow the account "ASPNET" to write to the database. Is there a way to do this during the setup process? I have wondered around the setup project I created for the web service and I had no clue on how to do this.

    C# asp-net database security help tutorial

  • License Software
    U usermans

    I developed a windows application using C# and I want to license it to the buyer using a serial number, like any software one buys, but I don’t know how to do it. Can anyone help me on this?

    C# csharp help tutorial question

  • Start a Windows Forms application from a Windows Service
    U usermans

    Thanks, and yes I'd really like to know how to do it programmatically.

    C# winforms question

  • Start a Windows Forms application from a Windows Service
    U usermans

    Hello, I was trying to make a Windows Service that monitors a certain condition and starts a Windows Forms application when the condition is met. I used the System.Diagnostics.Process.Start(@"c:\app.exe"); but whenever this line runs the application (the Windows Forms application) fails. I tried the same code to run the application "app.exe" from another Windows Forms applcication and it worked fine? Can anybody please tell me why is this happening?

    C# winforms question

  • Web Service Response
    U usermans

    I used to create web methods using the template provided with Visual Studio .NET 2003, all I needed to do is to add the [WebMethod] attribute before the function I want to expose through the web service. But recently I was asked to expose my function to a specific client who is using AJAX and JSP and my return values are required to be sent using the "Response" object! I don't know how to access this object in a web service, unlike web applications, this object is not easily accessible from within the code. In fact I have doubts about the whole approach, is it possible and if possible is it practical to send the results back using the "Response" object? The caller wants the return values to be incorporated into a string that contains JavaScript code they can evaluate and use to display the result on their AJAX enabled JSP page. Any help or ideas about the subject are appreciated. Thank you.

    Web Development csharp java javascript visual-studio help

  • Debug a dll
    U usermans

    I was trying to debug a dll I made in C# using Visual Studio .NET 2003. I want to be able to walk through the code and use breakpoints and so... I tried using the debug options and I set the debug action to start the program that uses the dll. The program started but it never stopped at the breakpoints. Then I tried to use a MessageBox where I want to set a breakpoint and the program showed the message correctly. I tried to attach to the process in which the host program runs but it failed with the "failed to attach to process" message. Any answers?

    C# csharp debugging visual-studio question

  • Power Saving
    U usermans

    I checked the webpage you referenced. Well, it showed the signatures and declarations but I couldn't figure out what it actually does.

    C# csharp dotnet question

  • Power Saving
    U usermans

    I tried Windows Vista on my laptop, and one of the great features I found was the ability to customize power options in great detail, particularly, the ability to set a maximum limit for cpu activity. Is it possible to do that on Windows XP? If not directly, is there a way to write application that does this? Does the .NET framework expose such functionality?

    C# csharp dotnet question

  • Opening a Folder
    U usermans

    Thanks.

    C#

  • C# Dll Debugging
    U usermans

    Thanks for replying. The program isn't mine, and I just don't know how to attach the debugger to the program.

    C# csharp visual-studio hosting help question

  • Opening a Folder
    U usermans

    I'm trying to make a simple application that enables easy access to certain folders, bluntly, you click a button, and Windows opens an assigned folder for you. Any hints or tips will be highly appreciated. Thank you.

    C#

  • C# Dll Debugging
    U usermans

    I am trying to make an addin for a program using C#, is there anyway to follow the execution of the dll in the hosting program using Visual Studio .NET? Is there anyway I can set breakpoints and watch variables?? Any help is appreciated.

    C# csharp visual-studio hosting help 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