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

Software Development Network >> Windows Forms

Windows Forms

New Question

Suppress Ctrl key + Mouse cell selection on DataGridView.
DataGridViewCell value is updating but new value is not displayed on screen
Odd Control Painting Behavior
MenuStrip Accessibility Problem
Flash objects on c#
simple question
Late binding issue
Extracting Columns Values from Dataset (Visual Basic)
dataview count doesn't shows properly.
Changing NoNullAllowedException when editing via a DataGridView ?

Top Answerers

Escape
Vijay Chegu
CodeButcher
CodeBrahma
JanBaan
pajamo
luben111
KirkHaselden
Mbauser
Dylan Barber
Schema-Aware Queries and Stylesheets
Only Title

Answer Questions

  • Noorul Ahmed getting rid of textbox "flicker"

    I have a textbox that I constantly update. And to do so i use: textConsole.Text = message; //message is the string i want to set it to textConsole.Select(textConsole.Text.Length, 0); textConsole.ScrollToCaret(); But it updates too often that it flickers when it is updated. I know about the AppendText() method but for what I am doing I havent yet found a way to use it properly (im still trying). So if anyone knows if it is possible to reduce the flicker let me know Thanks SuspendLayout() stops the controls from being repainted. ie changed. ResumeLayout() allows painting to continue. nahguam wrote: It may help to call SuspendLayout() before you do your updat ...Show All

  • Liu Hua Which form have I to use to make an analogic instrument?

    Hi, I need to make an analogic instrument (e.g. an analogic voltmeter) that reads the input valeu from a variable. How can I draw the instrument How can I change the mobile indicator Should I use a picture as indicator and rotate it, or exists a dedicated form Hi, What you can do is to create a control project, this will allow you to easily reuse the instrument that you want to create. Once you have the project you can do two things as you well said, or draw the control from scratch, or use bitmaps and rotate them. I will say that it depends what do you want to achieve, a market standard control or a simple control just to meet your expectations. Drawing your own control Is a time consuming o ...Show All

  • markovuksanovic Setting the first item in a combo box to empty/null

    Hi, I have a combox box which is bounded to a data table like this: private void bindingDataToComboBox() { cmbChkin.DataSource = dtblComboBox; cmbChkin.DisplayMember = dtblComboBox.Columns["frs_user_name"].ToString(); cmbChkin.ValueMember = dtblComboBox.Columns["frs_user_id"].ToString(); } This method is called from the form_load. I need to set the first item of the combo to empty or null, so if no item is selected from the combo box it would set a boolean flag to false on button_click. But the issue is the combo box always defaults to the first "user_name" loaded automatically, is there a way to force the combo box to keep its first item as null or empty so then allow the ...Show All

  • Jason D. Camp Need Help getting image to show up in PictureBox

    I have a program that has an openFileDialog and some pictureboxes that I want pictures to show up in according to the images you choose in the openfiledialog from the local harddrive. But I don't know what to type in the GetThumbnailImage(); private void openToolStripMenuItem_Click( object sender, EventArgs e) { if (AddPic.ShowDialog() == System.Windows.Forms. DialogResult .OK) pictureBox1.Image.GetThumbnailImage(); } That didn't work, I don't know why though. Let me Reexplain my project... I have two forms, "Form1.cs" and "Expand.cs". I already have an openFileDialog in my "Form1.cs" and I have it set up so that according to which ever image I choose it shows up in pictureBox1 in ...Show All

  • exulted Handling maximization of windows

    Dear all, I am working on a business framework with very strict rules in C#. Currently, I am dealing with custom handling of window maximization. In WndProc I capture WM_SYSCOMMAND and look for SC_MAXIMIZE flag. In my handler, I then set the size and the location of the maximized form. WM_SYSCOMMAND is also replaced with WM_SIZE command, like this: switch (m.Msg) { case WM_SYSCOMMAND: switch (m.WParam.ToInt32()) { case SC_MAXIMIZE: ((IGUIFormProperties)form.Container).FormState = FormWindowState.Maximized; form.OnCustomResize(); m.Msg = WM_SIZE; m.WParam = (System.IntPtr)SIZE_MAXIMIZED; break; } // switch break; // Remaining messages. } // switch Now, I am almost sat ...Show All

  • Fritzenhammer How to produce Windows Forms Control Library?

    When I do according to Walkthrough: Creating a Windows Forms Control, please see the following address. http://msdn2.microsoft.com/en-us/library/ms235628.aspx It has the step of "In the Project Types pane, select CLR in the Visual C++ node, then select Windows Forms Control Library in the Visual Studio installed templates pane." But in my Project Types pane, it only has 4 type in the Visual Studio installed templates pane of CLR , there are Class Library , CLR Console Application , CLR Empty Project and Windows Form Application . They all can't produce the Windows Forms Control Library. What's the problem Anjin, were you able to get the Windows Forms Control Library to show up under ...Show All

  • adibza Gridview w Custom Controls?

    First of all.. I dont know if this is even possible. I have created a custom control to easily display dropdownlists (many repetative in my project) from a central location. The control is only a dropdownlist with properties InfoType, ItemId, and ItemName. InfoType is specified to know what info is in the list and ItemId and Itemname are used to get and set. I am trying to edit records in a GridView, using this customcontrol. I am having issues populating and setting the usercontrol in the grid... which it works fine outside of the grid. (I know there is no code there to setting the ItemId, as I have not gotten close to getting it to work that way yet.) Anyone have a clue ----------------------------- < asp : Templ ...Show All

  • Gchris Need to get the .MainWindowHandle

    I am trying to get the mainWindowHandle and store it for later; however, i can not seem to get the handle back from the new process. Before someone suggest , i will let you know that i have also tried the p.WaitForInputIdle(); however, this not only does not work it will throw and error..   private IntPtr mainHandle = IntPtr .Zero; private void button1_Click( object sender, EventArgs e) { Process p = new Process (); ProcessStartInfo ps = new ProcessStartInfo (); ps.FileName = "explorer.exe" ; ps.Arguments = "" ; p.StartInfo = ps; p.Start(); mainHandle = p.MainWindowHandle; } Can someone tell me how to get the mainWindowHandle   Erik If you will notice in my first p ...Show All

  • smileyke Window class name is not valid

    When I create a new WindowsApplication project, add any control to the main form and run the project - I get the following exception on Application.Run(new Form1()); I am using VS 2005 beta2.050215-4400. This haven't happened until now. What went wrong Any help will be appreciated Gabriel The exception data follows: System.ComponentModel.Win32Exception was unhandled   Message="Window class name is not valid."   Source="System.Windows.Forms"   ErrorCode=-2147467259   NativeErrorCode=1400   StackTrace:        at System.Windows.Forms.NativeWindow.WindowClass.RegisterClass()        at System.Windows.Forms.NativeWindow.WindowClass.Create(String className, In ...Show All

  • Prabu. Help: Multiple forms vs MDI Application in VS 2005 express

    I'm a bit confused. I'd like to use different windows forms to show different views of a database. Would I use an MDI application, or many (main) forms in a "normal" windows application I assume that having many windows, means that one has to be displayed from another or from menu. Therefore many forms must be able to be open at the same time. Will that work The other benefit to MDI is that all of the other forms will be "within" the MDI parent. This allows the end user to minimize all app forms just by minimizing the MDI parent. Thanks for your help.I'll go with the MDI application. Just a few more questions: 1) Is the MDI type fundamentally differe ...Show All

  • Adriaan W adding a user control to the Toolbox

    I am having problems adding a user control to the Toolbox in the .NET environment. How do I do this Thanks for any help. Bruce Hello All. Bruce: If I recall correctly, that's the original Visual Studio .NET . The way you're doing it is probably the only way to do it. MS has since fixed a lot of the pain-in-the-neck stuff, but I guess that doesn't help you much. HTH. Hello All. Bruce: What version of VS are you running For some reason, in my .NET environment, I do not have the "Add Item ..." option when I right-click on a tab in the toolbox. The only way I have found so far to add a user control to my Toolbox is to right-click on a Toolbox tab, choose "Customize Toolbox ...", ...Show All

  • Chris Langsenkamp DateTime picker

    This control is starting to give me fits.  I am finding more and more reasons not to use it except in the most simplistic ways.  The first problem is the control doesn't allow nulls.  I know the checkbox work-around, but that requires more code and more user interaction. The second issue I am having is when writing the date value to the database, even though I end edit on the bindingsource and validate the form, the date retains the previous value until you tab out of the control.  For instance, if you use the arrow keys to change the date, and then click a save button (on my toolbar), it writes the previous value. Anyone know why this occurs.  I would use a textbox and validate a user-entered date but havin ...Show All

  • xyzt Datagrid results not emptying

    I have a datadridview that is being used to return the results of searches. However, I am having trouble with the datagridview not clearing the previous search results. For e.g. if I was looking for the name SMITH previously, al the SMITH will get displayed again even when the current search is for JOHNSON. I tried using combination of dataGridView.DataSource = Nothing dataGridview.Refresh dataGridview.Rows.Clear() etc. but it only clears the datagrid temporarily. The next time I do a search the previous results still get displayed. Should I clear the adapter How would accomplish this Thank you. Clear the datatable before you refill it from the database Thank you. It works. ...Show All

  • rod_r possible changes to Computer settings

    I think that my daughter may have altered the computer settings. I have Guardian software and it did not record for 1 day. I also noticed that I has a bunch of Security Event Logs (special priveleges to new logon, A trusted logon process registered with LSA, etc.) Also, I think there may be new drivers Is there a way to scan for system changes This forum is devoted to developers and specific questions regarding creating windows applications. I suggest you try the Microsoft Support Site in researching your problem. Good Luck. ...Show All

  • hye_heena How do I create an object from a row in a DataGridView / BindingSource?

    I would like to create an Object (say Client) from the currently selected row in a DataGridView. The DataGridView's DataSource is a BindingSource, for which the DataSource is a DataSet containing a single Table of Clients. I have been advised to use the BindingSource.Current property to get the selected item (or row), rather than the DataGridView. I have tried the following: DomainClient c_client = (DomainClient)c_bindingSource.Current; which results in an exception. How can I get around this Thanks in advance, JackStri. Hi, I guess I replied more than year after you posted this. I was facing the same problem, until I found this solution DataRowView rowView = ( DataRowView )e ...Show All

474849505152535455565758596061626364

©2008 Software Development Network

powered by phorum