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
  • 0 Votes
    3 Posts
    2 Views
    R
    You can use custom paging, just like in web application create the stored procedure which takes current page and number of recored to be displayed. On each button click bind the control with the new data.
  • VSS2005

    question
    1
    0 Votes
    1 Posts
    2 Views
    No one has replied
  • 0 Votes
    2 Posts
    4 Views
    O
    No everytime you make a change it saves to the local hard drive, the changes arn't put back into VSS until you checkin.
  • how to validate a textbox email validation

    csharp regex tutorial question
    3
    0 Votes
    3 Posts
    3 Views
    S
    Its pretty rude to post the same question twice, especially when people have taken time out to provide you with a possible solution. :^) If you dont agree with an answer just say so rather than re-post the same query. Id say your best bet is to google it because three people have given you the same answer so far.
  • Open Excel Chart in .net

    csharp question
    2
    0 Votes
    2 Posts
    3 Views
    R
    Not sure if this is what you want Process.Start("C:\\Data.xls");
  • 0 Votes
    2 Posts
    2 Views
    D
    kalpeshgedia wrote: Now i want Process List of currnt login user from my this printer driver WHY?? What on earth does a printer driver need to know about the processes running on a system? A printer driver has but a single mission in life. Convert drawing commands from GDI/GDI+ to a language used by a printer to describe the same image on a page and communicate status information from the printer back to the spooler. That's it. Nothing else. Are you installing this "driver" through "Add Printer..." or is this an .EXE your writing? If it's an .EXE, then it's not a printer driver you're writing. A guide to posting questions on CodeProject[^] Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic      2006, 2007
  • Email Validaton in Windows Application

    csharp asp-net help tutorial question
    3
    0 Votes
    3 Posts
    3 Views
    S
    Add the following using statement to your form: System.Text.RegularExpressions; Then use the Regex.IsMatch function like so: Regex.IsMatch(textBox1.Text, "your regular expression"); This will then determine if what the user has entered into textbox1 matches your regular expression. I hope this helps.
  • Datagrid paging in vb.net

    csharp css help tutorial
    2
    0 Votes
    2 Posts
    2 Views
    R
    I am guessing you are using ASP.NET wne you say paging?? If yes you can view this article: http://www.codeproject.com/useritems/Custom\_Paging.asp Even you are in Windows form, you can use the same Stored procedure techniques to get the data for paging. If you want to do Datagrid inbuilt paging, its easy, the worst part of it is it loads all the data at the same time. Just in DataGrid property say: paging = true and pageSize = ? That will do. I prefer custom paging, good for large data.
  • Button control

    question c++
    6
    0 Votes
    6 Posts
    2 Views
    V
    Set tooltip property at design time , if the button is created dynamically then user code to set tooltip property
  • Global Variable

    database
    8
    0 Votes
    8 Posts
    4 Views
    V
    If you want to use valid login name on another form after user authentication the you can create a public property on your another form and fill it with the value by accessing it before opening that form. Ex:--> if you are on "login.cs" and want to open "Admin.cs" then code for admin will have a public property say "UserNo" Private int userNo; Public property int UserNo { get { return userNo;} set { userNo = value;} } Now on login.cs after user validation Admin admin = new Admin() (( This depends opn your architecture)) admin.UserNo = login; admin.ShowDialog(); This way the user no will be available as per code optimization also. vims
  • 0 Votes
    1 Posts
    2 Views
    No one has replied
  • Open cash drawer using c#.net 2.0

    csharp tutorial com help
    5
    0 Votes
    5 Posts
    3 Views
    E
    Really? Thank you very much. :) Appreciated if you could share with me your code sample ASAP.
  • Reading Word Document Using OLEDB provider

    com
    4
    0 Votes
    4 Posts
    4 Views
    D
    I think I remember seeing a Beta for that about 10 years back. The launch party must have been a total secret! :-D A guide to posting questions on CodeProject[^] Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic      2006, 2007
  • Which button did the mouse click

    question
    3
    0 Votes
    3 Posts
    3 Views
    E
    Thanks it works great. Here is my final code. This greatly reduces the variables that have to be shared in the class. private: System::Void btnTmOut_Click(System::Object^ sender, System::EventArgs^ e) { ... Button ^btnLocalOnly = (Button^)sender; ... if(btnLocalOnly->Name == this->btnTmOut1->Name) x = IO_1; else if(btnLocalOnly->Name == this->btnTmOut2->Name) x = IO_2; else if(btnLocalOnly->Name == this->btnTmOut3->Name) x = IO_3; else if(btnLocalOnly->Name == this->btnTmOut4->Name) x = IO_4; else if(btnLocalOnly->Name == this->btnTmOut5->Name) x = IO_5; else if(btnLocalOnly->Name == this->btnTmOut6->Name) x = IO_6; else if(btnLocalOnly->Name == this->btnTmOut7->Name) x = IO_7; else if(btnLocalOnly->Name == this->btnTmOut8->Name) x = IO_8; else { //Error } ... } Programmer Glenn Earl Graham Austin, TX
  • Autocomplete assigment does not work

    help tutorial question
    1
    0 Votes
    1 Posts
    2 Views
    No one has replied
  • Populate Date time picker

    csharp css database tutorial
    1
    0 Votes
    1 Posts
    2 Views
    No one has replied
  • User-ordered list (C#)

    csharp help question
    2
    0 Votes
    2 Posts
    2 Views
    O
    Theres no control that will do this by default that I can think of. This is an article on how to modify a ListView to allow row reordering. http://www.codeproject.com/cs/miscctrl/dragdroplistviewreorder1.asp?df=100&forumid=16243&exp=0&select=662014[^]
  • Printing a Form -> Texbox is emty :(

    csharp graphics help
    2
    0 Votes
    2 Posts
    3 Views
    A
    Hi To print window form you have to use window API This may help you http://www.knowdotnet.com/articles/printform.html[^] Atul Kumar
  • how do i search a value using combo box in vb.net

    csharp help tutorial question
    1
    0 Votes
    1 Posts
    2 Views
    No one has replied
  • Import / Export of data from an Excel Sheet

    csharp help tutorial
    1
    0 Votes
    1 Posts
    1 Views
    No one has replied