Software Development Network Logo
  • SharePoint Products
  • Windows Vista
  • Visual C++
  • Visual Studio
  • Microsoft ISV
  • IE Development
  • Game Technologies
  • VS Team System
  • SQL Server
  • .NET Development
  • Visual C#
  • Visual Basic
  • Windows Forms
  • Smart Devicet
  • Audio and Video

Software Development Network >> Windows Forms

Windows Forms

New Question

Client with Vista OS cannot download signed cab file containing J++ com
Sortable Column in DataGridView with Objiect based DataSource
App requires installation package after upgrade?
Implements ICloneable. form disappear .
Inherited User Control Question
C++/CLI Windows Form Designer bug in causing an event handler to disappear
Flattening entity collection for display in Grid
Updating parent grid based on the pop up form confirmation
Can not turn off automatic update
simple reinstall

Top Answerers

glavian
AndyMills
ThunderRock
VistaMaster
figo2476
Lejing
Ohio Mike
daniel.youlussusskind
Handschuh
Dmitry.K
Topix: Personal Audio
Only Title

Answer Questions

  • Wout Maximized form is visible on the screen before call to OnShow()

    Steps to reproduce: Create new Windows Application project Add control to the main form (e.g. ListView) Set form's WindowState to Maximized Override OnLoad() and OnShow() methods Set breakpoints on the calls to the base and run under debugger Note that the form is present on the screen when OnLoad() is hit (before call to OnShow()) Note that form's content (the ListView) isn't visible yet Repeat same steps for WindowState set to Normal and compare You're not seeing your form, you are seeing the "ghost" that Windows XP creates for unresponsive windows. Note the class name of the window when you look at it with Spy++, the generic icon and the "Ending program&q ...Show All

  • Forgon TreeView doesn't cancel user check

    Hi, I have a tree view which holds directories and the state if the content is installed or not. The user should not change the state of the CheckBox - this is done by code. But if the user clicks quick enough (first double click is the encounter of this behaviour) the checkbox changes its state. This is my code to test that: private void tvDirectories_BeforeCheck(object sender, TreeViewCancelEventArgs e) { e.Cancel = true; } With this code - I cannot set the checkbox with code. But the user can that (after first double click). What's wrong with this code Thanks in advance. Neither TreeView nor TreeNode have a ReadOnly property. Yah, code is a good idea. @LorMee You are r ...Show All

  • Nick_M123 Gridview Control error

    Grid view control is not supporting HTMLEncode function and HTMLDecode functions.Though we use any of these functionits not displaying acording to that its just displaying as the data came from the source.Please cehck it out. Thanking you Anil Example: Dim Archivedata As New Data.DataTable Dim i As Integer ds.Tables.Add(Archivedata) Archivedata.Columns.Add( "DateUser" ) Archivedata.Columns.Add( "Body" ) Archivedata.Columns.Add( "userid" ) 'Archivedata.Columns.Add("fromid") 'Archivedata.Columns.Add("toid") Dim drow As Data.DataRow For i = 0 To ds.Tables( "Archive" ).Rows.Count - 1 drow = Archivedata.NewRow() Dim ...Show All

  • milkis107 jpeg support of 12 and 16 bit images

    The jpeg codec in .Net 2.0 and 3.0 appears to only support baseline encoding. I've a requirement for extended (12 bit) and lossless (16 bit) encode/decode. Can anyone shed any light on what I am doing wrong or if I have it correct, point me to a library Thanks...Chuck Medical imaging Check out Lead Tools ... ...Show All

  • PiyuGupta extracting Info

    What is the best way to extract real-time data from a database using a windows app Is there a callback like feature that i can use or is the best way to put it on a timer Take a look at SqlDependency ...Show All

  • Leon Mayne How to iterate through Windows Forms list box

    To find the selected items in a mulit-selection list box, I have tried foreach(ListItem item in myListBox.SelectedItems) but "ListItem" is not recognized. How can I identify each of the SelectedItems in order to extract their value Thanks in advance Items of what type are you adding to the list Can you post some code Andrej If you bind a datatable to the listbox, the items in the list are of the DataRowView type. To iterate through them you can use something like: foreach ( DataRowView rowView in listBox1.SelectedItems) { DataRow row = rowView.Row; //Process row... } If you're using typed datasets you can also cast rowView to a typed row... ...Show All

  • kats Create Trace in my application

    Hi to all, i like to create a application, that will allow user to trace through out code runtime like f11, i will use reflection to open the methods in the user dll. how create a trace in a new window...... please help me........... is it possible, any ideas, i like to do that application in c#. Yes for example, i working on some method it through exception, i want to provide a trace button it will allow user to debug the code and find which will cause this error. thanks Amjath From the MDbg Welcome! thread: http://blogs.msdn.com/jmstall/archive/2005/11/08/mdbg_linkfest.aspx Hi Ritchie, THANKS For ur nice Work.. but i didnt get the ...Show All

  • ajaimes text under mouse pointer

    Hi, I want to get text under mouse pointer in C# but I couldn't get . How can i do this Have you got any idea is there any one who can use WM_GETTEXT Windows Api How can i use WM_GETTEXT api can you send a sample about this thank you I'm sure you can reword the question lots of different ways, my answer will not change. The most obvious solution, to me at least, is a screen capture and OCR. >> well, for example if i select a word in my word document , can i get it is it possible In this case, MSWord knows what is selected. Windows does not. As far as Windows is concern, a bit of the screen is dark. So, you have to figure out that your mouse is over a Word d ...Show All

  • Munira ListBox text alignment w/decimals

    Hello out there. Populating listBox easily with Tostring. However, my decimals do not align neatly. For example: Item name Item Number 100.22 item name2 Item Number2 100.0 Item name3 Item Number3 100 How can I align numbers with two decimal places in a listbox thanks cPrince Hi Thomas,   I tried all the above examples.  They all convert numbers to my required format of two decimal places, great.  However, values are all aligned  to the left. For example:         x = $10.50         y = $150.25         z = $ ...Show All

  • DLO_dk How can I disable a listBox item?

    Hello, I have a listbox with 5 items, how can I disable the third item only, in order to make it unselectable Please help. Thanks. private void listBox1_MouseDown( object sender, MouseEventArgs e) { if (listBox1.SelectedIndex != 1)//Only index 1 is allowed this .listBox1.Click -= new System. EventHandler ( this .listBox1_Click); else this .listBox1.Click += new System. EventHandler ( this .listBox1_Click); } } private void listBox1_Click( object sender, EventArgs e) { MessageBox .Show( "Index #1 allowed" ); } This post is off topic for the Visual C # General forum, moving to Windows Form ...Show All

  • Christian Frießnegg Control for docked "flyout" (unpinned) panels?

    I'd like to include a pinned/unpinned navigation window in my C# Winforms app that works like the docked windows in the VS05 IDE that are docked on the side with an icon and legend. In the unpinned mode it should open smoothly when you hover over the icon. I'd like to display a treeview in the panel and have the pin/unpin toggle icon as in the IDE. Is there a control that can reproduce this behavior in a Winforms app Edit: I found this: http://xceed.com/Docking_WinForms_Intro.html.  I was hoping to find a free version. Yes, I got the one from SF. I'll look for the patches. I plan to build a prototype with it this week for my client, then bang on it to see if the control is ready for production use. ...Show All

  • Eric Brinkerink AutoScroll question

    hi, if i have a form that has the AutoScroll property set to true and i have a control on the form that is located at say (-10, 10) then shouldn't i get a horizontal scroll bar i don't and i am wondering how i can get it aside from implementing scrolling by myself. thanks, scott Sorry, it's confusing to me what you're trying to accomplish and why you would use two panels. Just set the AutoScrollMinSize property to a value larger than the UserControl's size and the scrollbars will automatically appear. If you are using the Paint event to render your "virtual objects", offset the coordinates of those objects by AutoScrollPosition. And write a Scroll event handler that just calls Invalidate() to ...Show All

  • KitGreen Validating the treeview label change treeMnu_AfterLabelEdit

    I am having trouble getting this event to take place after the label of the treeview has been edited please Help I have no error showing when I build private void treeMnu_AfterLabelEdit( object sender, System.Windows.Forms.NodeLabelEditEventArgs e) { if (e.Label.Trim() == "") { MessageBox.Show("The tree node label cannot be empty", "Label Edit Error", MessageBoxButtons.OK, MessageBoxIcon.Error); e.CancelEdit = true ; return ; } if (e.Label.IndexOfAny( new char []{'\\', '/', ':', '*', ' ', '"', '<', '>', '|'})!=-1) { MessageBox.Show("Invalid tree node label.\n" + "The tree node label must not contain " + "fol ...Show All

  • NoSTaBoNN Populate listbox in window1 from window2

    Hi How do i populate a listbox in window1 from window2. Have a lisbox named "listbox1" in window1. Cant just write "listbox1.Items.Add()" to populate the listbox from window2 Regards Fredric You have two options: 1. in window1, change Modifiers of ListBox from Private to Public. So you can access listbox like: instance_of_window1.listbox1.acction_you_want 2. ListBox modifiers are Private and in window1 declare some public method - public void ClearListBox . public void ClearListBox() {     this.listBox1.Items.Clear(); } You can access this method like: instance_of_window1. ClearListBox(); Ok It is a window ...Show All

  • Minherz pack my program with visual studio 2005

    Hi all, How to pack my program to MS window installer with visual studio 2005 I tired serach some infomation with google, but the info not very good. Who can give good refer to me. Best Regards, [moved to setup forum] These are Visual Studio 2003 but still relevant: http://simple-talk.com/dotnet/visual-studio/getting-started-with-setup-projects/ http://simple-talk.com/dotnet/visual-studio/visual-studio-setup---projects-and-custom-actions/ http://simple-talk.com/dotnet/visual-studio/updates-to-setup-projects/ I'll add that setup projects are only in Std, Pro, and Team System sku's. They are not included in Express SKU's. ...Show All

282930313233343536373839404142434445

©2008 Software Development Network

powered by phorum