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

Software Development Network >> Windows Forms

Windows Forms

New Question

Order of event
add a Control as an Item in listbox
datagridview .net 2.0
C# program on Windows XP Pro
New Unable to view designer in vs2005 c#
Custom Action runs from version being replaced
Closing child modal form after calculations in parent form is complete
Need global reference to main form
How to See custom properties of CustomColumn in Editor window
DataGridView AutoFilter whitepaper and sample

Top Answerers

mark12345678
HoboZero
SCRunner
Arsal Usman
Aleksandar.V
Sam Hobbs
Ofer Gal
Batikit
Ankith
sathish_indian
Thorogood Associates Ltd
Only Title

Answer Questions

  • R.Tutus Gridview elements

    I have a gridview, and i would like in the code, when i check the NO radio button for it to display a text box in the next column. I am new at this and i do not know exactly how to do it. I set up a postback event on the radio buttons. I would appreciate your help Thank you Shot in the dark here, but instead of checking for it constantly, why not just have two events, one when your data is loaded, and one when the radio button changes, and if the new value is the right value, then you can do like myCell.OwningRow.Cells[column_number_of_textbox].Visible = true Does visible work right on a per-cell basis Wow thanks for your effort, much obliged ...Show All

  • Spangltk Really stupid question from frustrated VB4 programmer

    I've been using VB4 for 10 years. My new PC won't run VB4 - too much RAM - so I'm trying to rewrite a VB4 program that pulls data off an Access database. In VB4 I could pull a single piece of data off my database with "string = Data1.Recordset(column number)". I could navigate with "Data1.Recordset.MoveNext" and similar. In VBS I have built a dataset and populated it. 'Me.ArchetypesTableAdapter.Fill(Me.Npc3DataSet.Archetypes)' I can navigate with "Archetypes.BindingSource.MoveNext", but when I try to pull data off the dataset I get a variety of errors. The information on VBS tells me a lot about how to bind data to appear on the form - but I don't want that. I just want to read the contents of a cell into a s ...Show All

  • QWERTYtech Newbie - ToolStripMenu not displayed fully .NET 2.0

    I have eleven ToolStripMenuItem choices ( parents are a MenuStrip) that display horizontally correctly on my MenuStrip at a resolution of 1024x768. When resolution is changed to 800x600, only the five leftmost items are displayed. Is there a way to "scroll" the MenuStrip horizontally or some other best practice to allow the user to access to the other menu choices at the lower resolution Thanks Basically the default way menustrips and toolstrips work is they collapse down and don't display the full icon range, but if you hit a small dropdown button on the far right it'll show the obscured controls. Maestro wrote: ...but if you hit a small dropdown bu ...Show All

  • kevinzx How to tell (event) the user changed a bounded value

    I hoped to use CurrencyManager on a bounded table to tell when a user changes a value. (IsDirty state) Instead of having an event for each control bounded for the same table. Any one knows what the trick is current changed fires when you move from one row to the next. I am looking for the event that will tell me the user changed any of the current row's column values. In the .Desgner.CS I have lots of text boxes databinding tothe datatable   this .customer_BillToForEditBindingSource like this .customer_SourceDBTextBox.DataBindings.Add( new System.Windows.Forms. Binding ( "Text" , this .customer_BillToForEditBindingSource, "Customer_SourceDB" , true )); I used your example in C# (maybe I mis ...Show All

  • Jamie Thomson Open Directory Dialog

    I am looking for a way to have an open directory dialog, I was hoping to use the standard FileDialog and make a few changes but that is not a viable option. I was hoping not to have to create my own. Any ideas theTroll From the MSDN about FileDialog: " FileDialog is an abstract class that contains common behavior for the OpenFileDialog and SaveFileDialog classes. It is not intended to be used directly but contains common behavior for those two classes. You cannot create an instance of FileDialog . Although the class is declared public, you cannot inherit from it, as it contains internal abstract methods. To create a dialog box to select or save a file, use OpenFileDialog or SaveFileDialog ." ...Show All

  • Lucas Pasquali Tabs, combobox, and webbrowser interact(simple question) Viusal C# 2005 express

    hey, In my webbrowser program, I need it so thta the Urltext box(URLtextbox) will show the url of the current WebBrowser. So in the tab control's Selecting event I put this: private void tabControl1_Selecting( object sender, TabControlCancelEventArgs e) { WebBrowser thiswebpage = GetCurrentWebBrowser(); this .URLtextbox.Text = e.Url.ToString(); } What I am trying to do in this code is have the textbox show the URL of the webbrowser int he OPEN tab. So I think the Selecting event is what I have to use for this... ... ... But I get an error in this: this .URLtextbox.Text = e.Url.ToString(); It says: 'System.Windows.Forms.TabControlCancelEventArgs' does not contain a definition for 'Url' How do I mak ...Show All

  • Gumbatman Weird .NET Deployment Scenario

    Hi I've just payed for some bespoke development from a very large software provider and the way they have delivered it has me little bit confused and I'm not entirely sure that what they have done is legal. Basically they've given us an MSI to install their components. The install checks that the .NET Framework is installed and doesn't continue with the install unless it is - fine since the app is a .NET app. However if the .NET Framework is already installed they proceed with the install, but not only do they install their own files but they also install a bunch the of .NET runtime files (mscorlib.dll, System.Windows.Forms.dll, etc) into the same folder as their app. They don't properly install the .NET framework runtime using d ...Show All

  • Broomandan How to hide the taskbar ?

    In my project,It needs me to hide the system taskbar.I look up MSDN,but I can't find any useful information for me. Can you show me the way Thanks!     He's not asking to hide the tray icon from the taskbar. He wants to hide the entire taskbar. I tried the code above, but when executing, the program hangs. Any idea why Theres an easier way to do it. Just go to the form's constructor and add this as the first line: this.ShowInTaskbar = false; You MUST add this in the constructor, otherwise it won't work. [ DllImport ( "user32.dll" , SetLastError = true )] static extern IntPtr FindWind ...Show All

  • dalila [HELP]Placing code to move a component to an specific location does not working!

    Hi friends, I'm implementing a CustomControlDesigner class in an UserControl . The class ControlDesigner has a method called OnCreatedHandle () that provides an opportunity to perform additional processing immediately after the control handle has been created. So... I placed the following code to move "automatically" the component for a specific location into the hostdesigner: protected override void OnCreateHandle () {     base.OnCreateHandle();     // Implemented by [CFQueb] 9/6/2006, 9:42     if (base.Control.GetType() == typeof(MyCompany.Objects.QCutArea))     {         // especificamos el tamano     & ...Show All

  • stormwatch String.Format() problem

    Hi Is it possible to fill a remaning area of a string with a specific character For instance: String .Format ("{0,-15}" , "My Text" ) The output is: "My Text " I want the remaning of that string ( " " ), to be "---------" . Is this possible using String .Format() And instead of doing: for ( int i=0; i<10; i++) str += "-" ; Maybe this can be replaced with String .Format() somehow Kind Regards Haven't tried this yet. But you can refer to http://msdn2.microsoft.com/en-us/library/26etazsy.aspx . Hope this helps. Hi, why you are trying like this String .Format("{0,-15}", "My Text").Replace(" &q ...Show All

  • PublicError ListView Help

    Hello All, I need a little help with my listview. I have a list view with 5 columns that are being filled by 5 variables. I also have a while loop that updates the variables continuously and I want to update the listview at the same interval.... I know i can use : listView.Items.Clear(); (then re-add the item) listView.Items.Add(..) however i causes a severe flicker and will not allow the user to highlight a row... I have tried to use Update and Refresh, however this doesn't seem to update the row with the updated variables... Any Ideas Thanks, Andrew Hi Will this work for you - use async delegates for the changes you make and let the list view update at leisure, that should reduce the flicker. you can ...Show All

  • JimBim76 Folder Tree

    I'd like to get a listing of all folders contained on my "d" drive. Since I have thousands of folders, it's not practical to manually input them into excel. Is Windows XP equipped with a tool that does this Thanks for the help. peace To me this does not sound like a software development related question therefore I must ask you to post here: http://www.microsoft.com/windowsxp/expertzone/newsgroups/reader.mspx dg=microsoft.public.windowsxp.general&lang=en&cr=US if it is software development related, please tell us the .NET Framework version you are using as well as the language you are using to develop in thanks If you are looking for a programming way to do this then ...Show All

  • Tryin2Bgood How do I separate the UI from UI handling code? ( .net 1.1 )

    I have a rather complex form. I don't want the code to handle UI stuff in the form. I could get away with the with simpler programs, but this thing is turning into one monolithic beast. I want to have the UI event handler in the actual form code simply call a differnet object that has the logic of the code behind it. For instance: private void buttonClick( object sender, eventargs e ) { ui_handler.DoSomething() ; } That code is in the main form. So, in a different class, I have the ui_handler object. public void DoSomething() { // lot of code that messes with the original form } That's what I'd like to be able to do. But I don't know how to pass a reference to the UI I want changed, so the various components and such ...Show All

  • LastHope !!!HELP!!! Is ClickOnce useless? Publishing a Clickonce application after certificate renewal.

    I recently renewed my certificate through thawte and found out after signing our clickonce application that clickonce does not play well with the renewed certificate. The problem seems to be that during the process of renewal, thawte and apparently others require a new private key to be generated for the renewed certificate. So it seems there is a critical flaw in the ClickOnce architecture if it requires your code to be signed but can't handle the industry standard of renewed certificates. The only other option is to be your own certification authority but that requires distributing your CA certificate before clients install your application. If we have to have our clients uninstall our software and reinstall it because of this, then ...Show All

  • Mahender formatting a date in datagridview

    hi i have a datagridview and the foloowing code is working fine. but the data is bold and mm/dd/yyyy format. i want font as 'regular' and in dd/mm/yyyy format. the calendercolumn is working as i downloaded from microsoft. hw can i do it Private Sub Form1_Activated( ByVal sender As Object , ByVal e As System.EventArgs) Handles Me .Activated 'MsgBox(DataGridView1.Columns(0).Name) at designtime column 0 is ComRegDate If DataGridView1.Columns(0).Name = "ComRegDate" Then DataGridView1.Columns.Remove( "Comregdate" ) If DataGridView1.Columns(0).Name = "CompRegExpDate" Then DataGridView1.Columns.Remove( "Compregexpdate" ) Dim dt1 As New ...Show All

777879808182838485868788899091929394

©2008 Software Development Network

powered by phorum