Skip to content

Windows Forms

Desktop and Windows Forms development

This category can be followed from the open social web via the handle windows-forms@forum.codeproject.com

2.1k Topics 7.1k Posts
  • how change specific row back color in DataGrid?

    question
    7
    0 Votes
    7 Posts
    3 Views
    S
    Sorry a bit of a late reply but hopefully this will still help you. You can set a rows color using the following line: dataGridView1.Rows[i].DefaultCellStyle.BackColor = Color.Blue; (where 'i' is the current row as i am assuming you will have a loop so you can set the color depending on the row index). You can also set the default row and cell styles using the properties window however this will apply to every cell and row.
  • Checkbox column problem

    winforms performance help announcement
    1
    0 Votes
    1 Posts
    2 Views
    No one has replied
  • backgroundworker with typed dataset binding

    wpf wcf help question
    1
    0 Votes
    1 Posts
    2 Views
    No one has replied
  • Form with an abstract base class?

    question
    10
    0 Votes
    10 Posts
    4 Views
    O
    I just don't understand how other stuff like drag and drop support for data binding got prioritised over this. Generics and abstraction are pretty core concepts and not a day goes by without me using them in classes for the most basic of stuff to the most advanced. Then I have to spend time working around this limitation when using WinForms :/ it sucks arse :P Also why did they try to use backwards compatability as an excuse for not implimenting it? As I said in the comments I can understand lack of demand but which part would break backwards compatability.
  • FolderBorserDialog for images

    c++ question
    3
    0 Votes
    3 Posts
    4 Views
    D
    I've a solution...(take the directory name and gets the files in it). String^ folderName; array ^ files; System::Windows::Forms::DialogResult result = folderBrowserDialog1->ShowDialog(); if ( result == ::DialogResult::OK ) { folderName = folderBrowserDialog1->SelectedPath; } files=System::IO::Directory::GetFiles(folderName); if(files->Length!=0) for(int i=0;iLength;i++) { FileInfo^ fi = gcnew FileInfo(files[i]); if(fi->Extension==".jpeg" || fi->Extension==".bmp"||fi->Extension==".jpg") { Bitmap^ cap=gcnew Bitmap(fi->FullName); this->capture_img_box->Image=cap; System::Threading::Thread::Sleep(1000); this->Refresh(); Application::DoEvents(); } } Thanks however for the answers. Bye.
  • 0 Votes
    3 Posts
    3 Views
    H
    thanks man but u didn't tell me how to acess data of recepts and factures ! where the number is a auto increment number
  • UITypeEditor and Factory Creation

    help tutorial
    1
    0 Votes
    1 Posts
    1 Views
    No one has replied
  • yes/no

    help question
    9
    0 Votes
    9 Posts
    4 Views
    C
    Yeah, I guessed that was the case. I don't use Access, except to drive my CD database, and even then, it uses SQL Server on the back end. Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
  • PropertyGrid FolderNameEditor

    css graphics design question
    2
    0 Votes
    2 Posts
    3 Views
    V
    Hi, you must add a reference to the system.design.dll file in your project. Best regards, Nicolas Cadilhac Smart PropertyGrid.Net @ VisualHint Microsoft PropertyGrid Resource List Free PropertyGrid for MFC Smart FieldPackEditor.Net / DateTimePicker
  • Time editor .NET Windows Forms control (Please !)

    csharp winforms help question
    2
    0 Votes
    2 Posts
    3 Views
    T
    see the datetimepeaker control in visual studio etretyertyery
  • properties of user controls

    csharp question visual-studio winforms design
    5
    0 Votes
    5 Posts
    2 Views
    P
    hi, so, it seems that you want to create your own property. it isn't that hard. try this: private Color _myColor;/*this will be your private member to store the color*/ [Browsable(true),Description("This property will set myColor")]/*this is not required*/ public Color MyColor { get{return _myColor;} set { _myColor=value; this.Invalidate();/*this causes the control to repaint so new changes are visible right away*/ } } if you do this, you will have access to _myColor and when used in VS, the property tab will display the color that the user can select from. hope this helps regards :)
  • Make child controls follow scroll.

    tutorial question
    8
    0 Votes
    8 Posts
    4 Views
    M
    Well I've done some searching and I can't find an alternative way of positioning the File Transfer control over the TextBox. I think a FlowLayoutPanel would be your best/only shot. If you want, you could send me a copy of your control and I could see if I could tweak it a bit, but that's up to you. Sorry I couldn't help more. Let me know if you need anymore help. Trinity: Neo... nobody has ever done this before. Neo: That's why it's going to work.
  • installer.log

    sysadmin tutorial question
    3
    0 Votes
    3 Posts
    2 Views
    K
    Hello, I haven't tried to install a windows service with a setup project yet. I always install them manually since there can be issues. Perhaps you should try to use the installutil manaully and see if the log files show up. I guess another option for the install logs would be where the setup.exe was run. The log files should have an extension of *.INstalllog or *.InstallState So you could do a search for those extension. The * is replaced with your exe name for your windows service. Hope that helps. Ben
  • Export data from UltrawinGrid to PDF

    tutorial
    1
    0 Votes
    1 Posts
    1 Views
    No one has replied
  • Theme and Skin in Window Application

    csharp asp-net tutorial question
    2
    0 Votes
    2 Posts
    2 Views
    D
    http://www.microsoft.com/events/EventDetails.aspx?CMTYSvcSource=MSCOMMedia&Params=~CMTYDataSvcParams^~arg+Name%3D"ID"+Value%3D"1032327669"%2F^~arg+Name%3D"ProviderID"+Value%3D"A6B43178-497C-4225-BA42-DF595171F04C"%2F^~arg+Name%3D"lang"+Value%3D"en"%2F^~arg+Name%3D"cr"+Value%3D"US"%2F^~sParams^~%2FsParams^~%2FCMTYDataSvcParams^ copy this to your address bar and watch the video or do a search on MS for ASP.NET 2.0 Themes and Skin.
  • Form1 Larger Than Screen, TableLayoutPanel ???

    design tutorial question workspace
    1
    0 Votes
    1 Posts
    1 Views
    No one has replied
  • Month

    question
    2
    0 Votes
    2 Posts
    3 Views
    P
    use the static DateTime Member functions int daysinMonth = DateTime.DaysInMonth(2007, 1)
  • Distributing Small Windows Apps

    csharp dotnet visual-studio tools question
    5
    0 Votes
    5 Posts
    4 Views
    K
    John Held wrote: Are writing desktop apps with c# a thriving concern Well, there seem to be quite a few jobs out there which ask for this. But I suspect that most of these are for corporate applications rather than the mass market. However, Microsoft have a number of such apps. floating around, e.g., XML Notepad, Paint .NET; and much of the UI parts of recent apps. are Win Forms based. Kevin
  • 0 Votes
    3 Posts
    2 Views
    G
    Thank you.
  • 0 Votes
    1 Posts
    2 Views
    No one has replied