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

Software Development Network >> Windows Forms

Windows Forms

New Question

text on ListView isn't rendering correctly
Form validation - Please help
ListBox drag and drop
C# open a new form, and close a form...
datagrid columns details in new window
Using global variables to keep original items in a listbox in C#??
Proper way to invalidate using a Region
Can I generate a managed resource DLL at run time?
Dragging stored procedure into dataset not creating datatable
datagridview with dateedit column

Top Answerers

Voodoo45
Joseph Moraise
kimhoskin
av_ster
ando
Wilk06
Dnieto23
M. Simioni
Aaron Spilman
AndersBank
sitemap
Only Title

Answer Questions

  • Joe Buys want to share the same instance of a user control on separate tab pages of a tabcontrol.

    i have a c# user control being used on a tab page within a tab control in a vb.net winforms project public class SplitterViewControl : System.Windows.Forms. UserControl { Is there a way to reuse the same instance of that control on each separate tab page If I drag the usercontrol onto each separate tab page, I get what I would expect. SplitterViewControl2 then SplitterViewControl3. How could I access the SplitterControl1 from across the tab pages I hope the question makes sense. Thanks, -Greg What do you mean by "reuse the same instance of that control on each separate tab page" As long as the SplitterControl1 is in your namespace, you can simply access it dire ...Show All

  • JVJ textbox and AutoComplete

    hi how can use dataset as source of AutoComplete (in textbox control) (Moderator: Thread moved to this forum for better responses) From what I can gather, you will need to load it from the dataset by hand. See this post on a similar issue Incremental autocomplete . ...Show All

  • MicMit OnSizeChanged called twice when changing the property Size on a UserControl

    Hello! I have created a UserControl and load it in the constructor of a Form. UserControl c; public Form1() { System.Reflection. Assembly assembly; assembly = System.Reflection. Assembly .LoadFrom( "File with UserControl" ); Type t = assembly.GetType( "The type of the Control" ); c = ( UserControl ) Activator .CreateInstance(t); c.Location = new Point (0, 0); Controls.Add(c); } I then set the Size of the control doing something like this: int NewHeight = System. Convert .ToInt32(textBoxHeight.Text); int NewWidth = System. Convert .ToInt32(textBoxWidth.Text); c.Size = new Size (NewWidth, NewHeight); In my UserControl I have the eventhandler ...Show All

  • GStevens GUI question

    Hi all The application has two windows (frames) for two different tasks. Only one window is shown at a time. Both frames use the same menu bar. How would you implement this Create two frames with the same menu and then hide one Create one frame and exchange panes Thanks you Thanks! I want to to have a frame for playing/editing video streams and one to record. When recording it is not possible to play a stream (frame/panel for playing is hidden, deactivated) and vice versa. Yah, I would think your origonal idea should also work. Or maybe you can implement these function in one form by using the Tabcontrol, one tab for recording ...Show All

  • olakara AxWebBrowser/mshtml: how to calculate physical page breaks position

    Hi, I need to calculate the exact position of all page breaks (according to the printer layout settings) in a document in order to show them while editing. I though to simulate somehow the rendering performed during the printing of a document in order to calculate these positions precisely, but I couldn't find a way. My tests included: 1. using IHTMLRenderer interface 2. calculating the absolute position of all the elements in a document through the offsetTop property and comparing it with the printed document height 3. trying to use the IE:LAYOUTRECT elements outside of the context of a print layout template Any help appreciated. Regards ...Show All

  • Aliaa Program uninstaller

    How do you create a "uninstall" option for programs I create in VB 2005 Express without the user having to go through the control panel Thanks in advance! No can do. Express and ClickOnce do not give you that much control over the installer you create. You may want to consider using a different kind of installer system and you can find some options for that here . ...Show All

  • Fusion54 Filling images in a datagrid dynamically

    Hello eveybody, I have this peculiar problem of inserting images into a data grid. I have searched quite a lot for a suitable and understandable code. Even though i did try out a few suggestions suggested by the mebers of this forum especially this url http://www.codeproject.com/dotnet/DataGridEdtAlmostAnythin.asp df=100&forumid=157727&exp=0&select=1228979#xx1228979xx. I found it a little tough to understand the code. All i want is to display images from a xml file or a database into a datagrid. My xml file looks somethin like this. <game category="adventure" id="2" name="Godzilla" cost="100" description="god of all games" vendor="Xdfgames" ...Show All

  • Richard Warlow Detect if IE is running

    How do I detect if IE (or any program) is running on the target machine from a Visual Studio Setup Project I want to check this as a launch condition prior to starting the setup. Thanks. You can't really do this with Visual Studio because there's no support for running custom actions during (or before) the UI sequence, although you can with other tools. Custom actions don't help because despite names like "before install" they in fact run towards the end of the installation. well you would have to create a custom action, something like beforeInstall then check the processes running using the System.Diagnostics.Process class, getting the list of processes which are internet explorer (i ...Show All

  • VijayVeera Consuming a VS2005 Web Service that returns a data set

    I am writing my first web service in C# and I am trying to consume it in a windows app which has a simple form and a combo box. The web service selects a single column from a SQL express table and returns a data set with about 10 records in it. In the windows app I put a button on the form and I want to fill the combo box from the web service. I added a web reference to the web service and created the proxy and I can see my data in the data set when I debug the code but I can;t get it to bind to the combo box. What do I need to do Web Mothed: [ WebMethod ] public DataSet LoadLayers() { ConnectionStringSettings cs = ConfigurationManager .ConnectionStrings[ "UnitedCircuitscn" ]; string connString = c ...Show All

  • vins1972 question of DoubleClick on ListView in C#,need help!!!

    Hi, does anyone know to write the C# codes on how to create a double click event for ListView to delete/remove the item that i select from ListView control The following event methods and Timer should do it. It detects the second click (was made for DateTimePicker which doesn't implement the Click or DoubleClick events. It is not 100% conserning the time of detection, but you may figure that out yourself. It does detect the second click: /* The events */ void DTTime_MouseDown(object sender, System.Windows.Forms.MouseEventArgs e) { if (dblclickTimer.Enabled) { txtSecondClick.Text = "You clicked twice within 1 second"; } } void DTTime_MouseUp(object sender, System.Windows.F ...Show All

  • darthziv I can't see de Data menu, in order to add new data Source

    Hello everybody. Well, basically is all what the subject says. I can't see de Data menu, in order to add new data Source. I want to add a new object data source and try to create forms based on it. But I just can't see the Data menu. I know it must be something really easy, but I've tried for hours (sad, yes) Please help Hi, What type of project you have created If its windows form project then when you select project from Solution Explorer or any forms etc, the Data menu will be available in main menu bar having "Add New Data Source..." menu item. For web project, you will need to add some data list control first in a web page and then you can choose Property and then Select DataSourc ...Show All

  • KitWest Self-made RichTextBox

    Hello, in my application I have to display large documents with formatted text and many pictures. For this purpose I want to write my own control. My question: How do the RichTextBox and the Internet Explorer display big textes and internet pages How do they calculate the length of the scroll-bars How do they wrap the textes I had many ideas and even got quite good results, but they are all lazy and slow. I hope someone has a little idea for realizing such a control. I would be very grateful. Best regards, Randy Nurnberger ...Show All

  • RICH525234 DataGridView and BindingNavigators

    Hello, When I click the Add button on a BindingNavigator (bound to a BindingSource) I cannot get the DefaultValuesNeeded event of a DataGridView to populate a cell with a default value. Has anyone else encountered this issue before Is there a work-around Cheers, sfx1 Sorry, I was mistaken... If your DataGridView allows adding new rows then you can set the AddNewItem property of your BindingNavigator to (none) and try this: Private Sub BindingNavigatorAddNewItem_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BindingNavigatorAddNewItem.Click      MyDataGridView.CurrentCell = MyDataGridView(0, MyDataGridView.Rows.Count - 1) End S ...Show All

  • AravindaBV Windows Forms Connection String Encryption

    I think we were talking about window application here, not web app. In web app, there are tools available to do all these steps. But for Windows app, we have to do it ourselves if we would like to use Enterprise Library 2.0. qbao wrote: I think we were talking about window application here, not web app. In web app, there are tools available to do all these steps. But for Windows app, we have to do it ourselves if we would like to use Enterprise Library 2.0. hi qbao, you can certainly protect configuration sections of your application config, using the ProtectSection method using the SectionInformation class. Sample from(MSDN) static public void ProtectSection() { // Get the current configurati ...Show All

  • qrli How to run application after setup is completed ?

    Hello all How an application will be launched after setup is completed and user click close button is there any way to do this saurabh Hi Saurabh, Are you talking about regular setup or clickonce In clickonce it starts automatically after the install. Thanks. HI i am using Setup wizard of .net 1.1 not click once There is no way to tie a program execution to a button click in a Visual Studio setup project. You can cause the app to run with an install custom action, code that uses the shell or some other asynchronous way of launching the app then exiting so the install can continue. The app will typically be at [TARGETDIR]myapp ...Show All

555657585960616263646566676869707172

©2008 Software Development Network

powered by phorum