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

Software Development Network >> Windows Forms

Windows Forms

New Question

How to call a web page as Post method from Windows Form Application?
Tab Contol Help...
Working with TreeView and ListView
Display a specific item from a DataGrid
combobox
Standard images in ToolStripButton.
Problem with Open/execute file.
Drag Drop Outlook MailItem onto Form?
RichTextBox question
Expandable columns in DataGridView

Top Answerers

johnnyboyc_uk
Svennis
Santor
MrZap
awj100
Julian V
Dmitry Medvedev
Dan Scott
AaronBrock
murph___
Blenk Software
Only Title

Answer Questions

  • Big Cal ToolStripStatusLabel properties

    I'm using a ToolStripStatusLabel and it doesn't seem to have all the properties that a normal label does. For example, AutoEllipsis. I need that property for the StatusLabel control. Am I just not looking for the right property If the text is too long, I need to add an ellipsis and I'm hoping I'm not going to have to figure it out manually. Any help is appreciated. Thanks! Ya-Tin Yeah, but I need the label to be fixed size and to have an ellipsis at the end for longer strings. I ended up replacing the ToolStripStatusLabel with a standard Label, and it seems now that the letters are squished after a certain point. Has anyone come across this The statuslabel control does ...Show All

  • KevinKerr How to make certain variables global to all forms? (C#)

    I have this problem.. my main form class (MainForm) declares some variables that should be global, in a sense. Let's say my app, at startup, loads a bunch of user data.. into a list (List<UserInfo>). I want that list available application-wide. So if a preferences dialog opens up, and it needs to populate a ListView with that List<UserInfo>, it can. What is the best way to achieve this, in C# http://www.codeproject.com/csharp/model_view_controller.asp The example should help you solve most of your question; however, I disagree with the author of that code that it's a true model_view_controller architecture. To have a true MVC, only the controller should know that a model and a view exist. ...Show All

  • arogan Ascii File Save Problems

    Hi, In my game I am saving the data in an ASCII file using the Streamwriter function. The data is saved automatically during play (every X minutes of game time) and also when the player exits the main display form. (The user is never prompted during file save and the data is saved to a fixed file name and folder). The ASCII files can range in size from a few KBytes to 3-4 MBytes. During game play there are no problems with this file save. However, some players are experiencing intermittent problems with the file save triggered by display form exit (I call the file save during the FormClosing Event). Always when there are problems then the data written to the file is incomplete - perhaps as much as 10% can be missing. The data does ...Show All

  • Paul Gerald 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

  • VGIN Dynamically choosing a UI library

    Hello All. I'm working on an educational app that is targeted for ages 6 and up. I've got two versions of the UI library, simple (for the youngsters) and normal (for the not-so-youngsters). Both libraries are self-contained and localized, so UI upgrade is simply a matter of file replacement. The user can switch between normal and simple at runtime simply by selecting a menu command. The way that I'm doing it now is by maintaining a persistent UIState variable and checking it each time I need to open a form. That's the problem. I'm wondering (can't find anything on the forums or in MSDN) if there isn't a way to make the check once, initially, and responding to the user changing the option, and not having to check again. Basically, ...Show All

  • Tru_Messiah problem using reg free com

    i'm testing some click once features, so all i have is a simple windows form, that clicking it's button invokes some com object method. my com object is unmaneged, it's added as reference with properties: isolated = true, copy local = true. when publishing the click once app, app starts to run , and when calling this com, it fails with error: retrieving the com class factory for component with CLSID {my obj clsid} failed due to the following error :80040154 (=class not registered) details: ************** Exception Text ************** System.Runtime.InteropServices.COMException (0x80040154): Retrieving the COM class factory for component with CLSID {294EF868-B27B-4496-BEDA-7DB169A1321E} failed due to the following error: 80040154. ...Show All

  • Quinn01 Add Multiple controls to a datagridview

    Hi Is it possible to add multiple controls to a cell of a DataGridView Or a single control that spans across multiple cells I'm trying to develop a scheduler application and when the user clicks the cell content it creates an appointment. They can have 1-4 appointments within a cell and I want to display those four appointments as four separate labels within one cell. It is something similar to OutLook Calendar. Can this be done using a DataGridView. Or do I have to use some other control I will appreciate your help. Thanks I'm afraid the datagridview doesn't provide such feature. You may inherit it and create your own class. Check out this thread http://forums.microsoft.com/MSDN/Show ...Show All

  • briggins5 Datagrid column width and row color.

    VS 2003 VB .NET I am currently trying to accomplish two things. 1. In Code, trying to set the column width 2. Trying to change the color of the row based on the value of one cell. For the width, I thought I could do it like this: Dim ts As DataGridTableStyle = New DataGridTableStyle Dim daGrid1 As New SqlDataAdapter(Me.SqlCommand1) dsGrid1 = New DataSet dsGrid1.Clear() daGrid1.Fill(dsGrid1, "top") DataGrid1.DataSource = dsGrid1.Tables(0).DefaultView DataGrid1.TableStyles.Add(ts) DataGrid1.TableStyles(0).GridColumnStyles(1).Width = 5 This does not effect the grid at all. 2. I don't know where to start, can't find a walkthrough or article on just this. I am needing to do both of these at run time, n ...Show All

  • Christoffer Skjoldborg User control with some parts drawn translucent

    Hi, everyone! I'd really like to hear (or read ;)) some help on solving my problem. I want to create a custom user control. I'd probably derive it from Control class, I want to draw everything on the control by myself (it's actually not going to be really complicated). The problem is that I want to draw some kind of a shadow that drops onto the background of this control. Obviously, it has to be translucent. And I would maybe make some other parts of the control translucent. So I tried to draw the shadow using brush colored as Color.FromArgb(100, Color.Gray), for example. I do my drawing in overridden OnPaint method. This did NOT work. I started to look for the solution on the web. Everything I found was one method of creating such a beha ...Show All

  • Amol Pophale create a "masterpage" in winforms

    Hi, When you create a website you can use masterpages with contentpanes. Now I want to create that on a winform application. So let us say that you've got on the left and top a navigationpane and that the contentpanes are the forms. Is this possible Grtz Annihil8 Hi Annihil8 I'm not sure if this is what you're after but it may serve as a nice starting point. Try creating just a basic form with navigationpanes setting on panels on the top and left. Once you have the form exactly as you like it you can save it as your own master form and then create new forms which inherit from it using visual inheritance. It won't provide any automatic navigation capabilities but it should help to give you a ...Show All

  • sobo1 Dropping project components onto a form

    Is it possible to drop components, via the Windows Forms Designer, which are in the current project but not in the toolbox, onto a form The answer is no, unfortunately, because the designer needs a compiled assembly to get the component from (because if it doesn't build, for example - how can the designer run it It being compiled already lets the designer be sure it is (mostly) correct). Also, I'm not sure why you'd want to. All you need to do is build your project once and the component should appear in your toolbox. If the issue is, you need it dropped on your form before your application CAN compile.. you might have to comment out everything that uses it, compile, and then uncomment. CTRL+Z (undo) sh ...Show All

  • dr.grumbles Windows installer launch condition

    Hi Guys, I am trying to create a setup and deployment project in VS 2005 for a windows form project. A couple of dependencies for my application are - 1) .NET framework 2) ActiveState Perl 5.8.8 I have been able to successfully add the .NET 2.0 framework check to the launch condition. I've also added the Active Perl check but its not working right. I mean, I get a "perl not found" error even on systems where the perl is installed. How should I correct this behavior Its probably something in the Condition check that I'm messing up. Here are the properties I have for perl launch check - (Name) ActiveState Perl Condition Installed InstalllUrl <url> Message Perl could not be found. Please install ...Show All

  • Buddhist How to have no image for some nodes in a TreeView with an ImageList?

    Is it possible to set some nodes within a treeview to have no image My treeview is bound to an underlying imagelist. I know that you can hack this by adding some sort of blank space image, but the imagelist constrains this to a certain size so you're left with a big space -- not ideal. JRQ wrote: You will have to use an owner drawn treeview if you need to do that. Thanks -- any websites or books that anyone can recommend for this I don't believe this is possible. The TreeNode inherit their imageList from the underlying TreeView so there is no way to decide on a node by node basis whether or not and images should be attempted to be drawn. You can set the Image ...Show All

  • MShetty call form.show() in a thread that doing an unfinished loop

    HI, I have a thread in my application that go through a loop. I want to make another form appear while the loop working, when i do it the form dont appear correctly and program hangs. please any help Are you using Control.BeginInvoke() or Control.Invoke() Required. So I think it woud be better if you add code at the begin and end of the loop form1.show() loop{......} form.hide() then it make your form1 visiable when the loop run,,,,, but sometimes is your loop is too long and during the waiting time nothing refreshed,,, so may be you can change it to form1.show() delegate the loop {...... when finish form.hide() } So , what is the differe ...Show All

  • thussain Control.FromHandle is returning nulls

    Hello all, I am trying to get to the hidden textbox in a combobox with this code: <DllImport("user32", CharSet:=CharSet.Auto)> _ Private Shared Function FindWindowEx(ByVal hwndParent As IntPtr, _ ByVal hwndChildAfter As IntPtr, _ <MarshalAs(UnmanagedType.LPTStr)> ByVal lpszClass As String, _ <MarshalAs(UnmanagedType.LPTStr)> ByVal lpszWindow As String) As IntPtr ' Function body should be empty. End Function 'FindWindowEx ' Control is a ComboBox. Public Shared Function GetHiddenTextBox(ByVal control As Windows.Forms.Control) As Control Dim handle As IntPtr = control.Handle If GetType(System.Windows.Forms.ComboBox).IsAssignableFrom(control.GetTyp ...Show All

91011121314151617181920212223242526

©2008 Software Development Network

powered by phorum