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

Software Development Network >> Windows Forms

Windows Forms

New Question

VS-Like sliding window!
Strange form behaviour
opening exe through link in an email
Possible to remove "SHIP" option from ClickOnceUpgrade?
I can't update with GridView
Display text in an ownerdrawn listview - again.
How to call custom action on button click
How can code short cut for CTRL+Enter in VS 2003.
Preserve Modal Form Values
adding single records to a gridview

Top Answerers

deViance
gregaug
DaPosh
TimElvidge
Shodin
xbrady
Smitha Ajay
Tobbe2
dct-val
Avi_harush
XQuery 1.0: An
Only Title

Answer Questions

  • Eswans2000 ListView column header height in .NET Framework 2.0

    When I increase the font size of ListView, the height of column headers keeps fixed and is smaller than the height of header text. In .NET Framework 1.1, there is no such problem. How can I solve it Thanks, Chester Got it. Don't run Application.EnableVisualStyles(); can solve the problem. But why Chester Hi Chester, This is a known issue, it have logged in our database. This issue is caused by the underlying Win32 listview Control when enable theme. So far our product team is investigating the issue. Thanks for your feedback. If you still have any concern, please feel free to post here. If the issue is urgent, you may want to ...Show All

  • AlexBB problem with adding controls to a tablelayoutpanel

    Hello, I'm trying to create a tablelayoutpanel and to add some items to it. This is my code: Dim tabel As TableLayoutPanel Sub tekenen()        'Tabel         tabel = New TableLayoutPanel         tabel.Location = New System.Drawing.Point(30, 100)         tabel.ColumnStyles.Clear()         tabel.ColumnStyles.Add(New ColumnStyle(SizeType.Absolute, My.Computer.Screen.WorkingArea.Width - 180 - 300 - 30))          tabel.ColumnStyles.Add(New ColumnStyle(SizeType.Absolute, 300))        &nb ...Show All

  • EWSommer openFileDialog

    How can I open a txt file(I mean copy index of selected txt file to my textbox) with openFileDialog. if (openFileDialog1.ShowDialog() == DialogResult.OK) textBox1.Text = System.IO.File.ReadAllText(openFileDialog1.FileName); ...Show All

  • Mike Lapierre Error in Data Source Configuration Wizard (VS2005)

    When I try to bind an object with the wizard I get the following error popup: An unexpected error has occured. Error message: Object reference not set to an instance of an object.   It works fine for other projects in my solution. I have references to Infragistics assemblies.   Thanks for your help. Hi, Can you provide more details about how you got this error When you said it worked fine for other projects, do you mean you could reference to other projects' assembilies without error, but only got error with this assembly Thanks. Aiwen Guo VB Test Team By the way, if your project contains any invalid references, the "Data source configuration" wizard will also bomb out wit ...Show All

  • MigiTheGuru Focus in textBox

    Hi, I have two textboxes on a form. If I force the focus to textbox2, the focus remains in textbox1 itself. this.textbox2.Focus(); doesn;t help! Thanks, You can't set focus on the textboxes until after the Form_Load event finished. If you are using .Net 2.0, put the code in a Form_Shown event handler instead. Independant of the index Focus() will work. The problem must be something else, that is why I asked you to paste some more code. Max Where you are calling this code Make sure to call textBox.Focus() only after a form is shown or visible. Some people get cofused with this when they call it from Form's Contructor or Load event. If you are doing the same then do call this fu ...Show All

  • Pipz Design guidelines C# windows forms

    Hello, I have written a console application doing various tasks. Now I would like to port this console app to a Windows application. I have grouped classes and stucked them into a library. The problem is, that i would like, that windows form will be able to write out some status reports (labels) while library process running. For example. I have a communication between two clients in a library. I wish, that clients will be able to show messages, received via communication, in labels on a form. What is the best way to do this Option, with reference to a form in the communication library is not very elegant. Thanks in ahead. Hi, one way would be to use delegates and events. You could create an EventHand ...Show All

  • Adnanans78 Urgent... Stuck in iimplementation Custom Save File Dialog

    Hi All, I want to implement my own custom file save dialog. I have 2 options : 1) Use WinAPI and use GetSaveFileName API. 2) Inherit commondialog and make it according to requirement. I am using Windows API. GetSaveFileName. and implementing HookProc in that. I m getting every message in that. But I have problem in that. First problem is lparam value for particular event like folder up and back to folder is not constant. Second is even if I return nonzero value Folder doesn't ignore the message. actually it should according to documentation. Below is a sample code. public class DialogHelper { #region Private Variables public delegate int OFNHookProcDelegate( int hd ...Show All

  • Matthew Roper System.Windows.Forms.Timer not firing

    I have a C# Windows application which displays a status window. I'm trying to use a timer to close the window a given number of minutes after a certain message is displayed in that window. I've set up a timer control as shown below, but it never fires. Does anyone have a clue as to why Note that the same thing happens when, trying to emulate examples I've seen, I change the declaration from: private System.Windows.Forms.Timer tmrCloseTimer; to: private System.Windows.Forms.Timer tmrCloseTimer = new System.Windows.Forms.Timer(); Thanks in advance for any help you can give. ***************************************** public class StatusBar : System.Windows.Forms.Form { ... private System.Windows.Forms.Time ...Show All

  • yongsan TreeView in User Control does not display initialized data

    Hi - I've been working on this most of the morning... I've created a Windows Form User Control that has a TreeView control. This user control is dropped onto a tab control in my main form. I initialze a TreeView node in the main form constructor as follows ... MyUserControl myControl = new MyUserControl(); In the user control constructor, I create a node as follows... MyUserControl() { treeView1.Nodes.Clear(); treeView1.BeginUpdate(); treeView1.Nodes.Add(new TreeNode("Hello, node")); treeView1.EndUpdate(); } The node that I create - "Hello, node" - does not display in the treeView of my user control on my main form. I did two "sanity" checks... First, I can populate the user control ...Show All

  • smtraber How to place one more Datagrid in Nested Datagrid

    hi all I succeeded in placing a Data grid in another data grid(Nested Data Grid).Also i can perform add,edit,delete operation on both grids.But i got synchrinization error when i tried to place another data grid in this nested grid. Error i got: Type 'System.Web.UI.WebControls.DataGrid' in Assembly 'System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' is not marked as serializable Exception Details: System.Runtime.Serialization.SerializationException: Type 'System.Web.UI.WebControls.DataGrid' in Assembly 'System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' is not marked as serializable. Stack Trace: [SerializationException: Type 'System.Web.UI.WebControls.DataGrid' in A ...Show All

  • Avi_harush ClickOnce Fails with "Value does not fall within the expected range."

    I have a ClickOnce-deployed application installed in offline mode across a range of Windows 2000/XP machines on my network. I now receive an 'Application cannot be started. Contact the application vendor.' error message when I attempt to run the application on my development machine. (It works still on the production machines.) I've run mage -cc, and renamed the '2.0' directory to '2.0x' to ignore its presence. Add/Remove Programs still shows it, and clicking Change/Remove pops up a window for a moment, but otherwise does nothing apparent. I've changed the installation path to be a network path instead of a website, and it still fails. The following is the error log: PLATFORM VERSION INFO Windows : 5.1.2600.131072 (Win32NT) Comm ...Show All

  • Alex974 Databinding to textboxes on form using SQLExpress

    I am having trouble getting table data from my SQLExpress connected databases to bind to the textboxes in my form. I can perform a grid view of the tables data just fine. Any suggestionson what am I missing in the form design I don't have any code to show. What I am interested in is why, in the devleoper environment, I can't just bind a datasource to a textbox in a form like I do in MS-ACCESS.  This SQL Server Developer Edition is making it way too hard to do a simple task. I am saying when you elect view all the table data to a grid, that works. I want to add text boxes to a form and it complains of a binding errror when I do this.   could you please show your code,it is hard to tell you where is ...Show All

  • Zadoras Keypresses in picture box

    i have a small app where users can draw shapes in a picture box using the mouse. I want the 'delete' key, when pressed to delete the current shape. But there is no way (that i can see) to be able to listen to key events for a picture box. Any ideas around this Hi speedie, There is a property called “KeyPreview” for a Form which determines whether keyboard events for controls on the Form are registered with the Form. Please set it to “True” and try again so that the events work correctly. “KeyUp” or “KeyDown” events will determine if “Delete” button is pressed (KeyPress event didn’t get fired in my app). Thanks, JDee Thanks alot, ...Show All

  • JR Lyon What control is it??

    Hi With the code below i can access each component. Is there a way to test what control is it Is there a way to determine whether it is a text control What type of control it is   for ( int  I = 0; I < HandleToForm.Controls.Count; I++) {   HandleToForm.Controls[ I ].Enabled = true;   }   Thanks in advance you can try the GetType() to return you back the type of the control: MessageBox.Show(HandleToForm.Controls[ l ].GetType().ToString()); Hello All. LV: You could try this:    if (HandleToForm.Controls[j] is TextBox )       MessageBox .Show("It's a TextBox!!");   HTH. TextBox textBox ...Show All

  • kadabba Creating icons with image editor

    Hi, I tried creating icons with image editor that ships with vs.net, but after saving the icons ..it shows a default image rather than the one i created .. Thanks, Jamshid. Hi: 1. select solution explor, find properities folder, double click it. 2. in the select Application tab of properities page. 3. In resource part, have a dropdown list can change icon the project use. you can set it to your own icon ...Show All

94959697989901234567891011

©2008 Software Development Network

powered by phorum