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

Software Development Network >> Windows Forms

Windows Forms

New Question

Graphics Issue
how can i use hscrollbar?
BackgroundWorker problems
WebBrowser Control Plus Dynamic HTML Using AJAX
How to set the Grid View Column Header text non visible
Shortcut Assignment Not Diplaying On Button Controls
How to use row error with tableadapter
DataGridView comboBox filter with two DataTables
Treeview adding nodes problem in Framework 2
MDIChild Login Form

Top Answerers

katesune
Robert-UTS
shadyi
Sébastien Nunes
Shirvo
Jurciks
Bart Elia
Jeanne P
superjoe30
sqlster
Info 3000
Only Title

Answer Questions

  • Avi_harush Problem with updates

    Hi! Is there any way to update child records in a master detail form without using datagrid view control. It is working fine with a datagrid view control but I want to implement it through text boxes. Do you use two forms to implement the master detail requirement And More details please. . I think it is absolutly possible. what you should to do is to add a sql query which contain the use id(for example) to show the user's detail  in the textbox. ...Show All

  • mahima Exception of type ExceptionCollection thrown when a form is attempted open from VS2005's IDE

    The Exception : Exception of type ' System.ComponentModel.Design.ExceptionCollection ' was thrown when the form is attempted to open from VS2005 IDE. The form contains an implementation to allow a Host Designer at run-time. Someone knows a solution to this issue . The form can't be opens until the VS2005 is closed and the solution is re-opened and rebuild process is executed again . Thank you in advance.   OK, I think I have found the problem by myself - and you can add this to the knowledge base: The problem was being caused by a user control that internally was creating a reference to an assembly using reflection. To be clear: there is a project ProjA that contains cer ...Show All

  • Batikit C# Windows Forms ListBox - Aligning Text to the right

    I am trying to align text in a C# Windows Listbox to the right and I can not seem to figure this one out. In MSDN I saw this HorizontalAlignment.Center but it is not an option I can find for the ListBox. Can anyone help me on this Thank you. You can use that example for the owner-drawn listbox. In order to draw the text right-aligned, you'll want to use the e.Graphics.MeasureString method to calculate the width of the text, and then subtract that width from the right side of the drawing area to get the x-coordinate for the e.Graphics.DrawString method. Thanks sirjis. Work perfectly... See my code below --------------------------------------- SizeF stringSize = new SizeF (); stringSize = ...Show All

  • Rafael Mores resize the datagrids?

    I have two datagrids on a form. Sometimes the top one contains for rows, sometimes the bottom one. Is there a way that the user can grab the bottom of the top datagrid and move it up so that it becomes a smaller window, then grab the top of the bottom datagrid and slide it up so it becomes a larger window Thanks If you're using .NET 2.0, the SplitContainer would be the right tool for the job. Put it on the form, set its Dock property to Fill an Orientation property to Horizontal. Put the first grid in the upper panel and second grid in lower one. Set both grid's Dock panel to Fill. If you're using .NET 1.x, the Splitter control will help you achieve a similar solution. Just dock it between both grids. ...Show All

  • Mr_Z How to set the setup info of SQL Server Express Prerequisite

    In MSDE, I can edit the setup.ini to control the setup parameters like InstanceName, sa password..etc.  How can I do this if I install SQL Server Express as a prerequisite in VS 2005 Thanks Hello, there is a way to control the parameters to SQL Server Express as deployed as a program prerequisite. When you run the Visual Studio 2005 Generic Bootstrapper (setup.exe) and have SSE installed as a prereq 'how' that package is installed is described in that prerequisites Bootstrapper manifest. You can access the package manifest for SSE at: [VS Install Dir]\SDK\v2.0\BootStrapper\Packages\SqlExpress\en\product.xml In that XML document you will find several 'Command' nodes, which are how the Bootstrapper will install SSE. ...Show All

  • LTD Problem using Invoke to update UI from secondary thread

    Hi all, I have a small application that performs a time consuming process (resizing multiple images in a directory) so i am executing in a separate thread but i want to update the UI thread with the status of the process. I'm trying to do this in the standard way of defining a delagate and a method in the UI thread but i'm getting the following error messages: Error 1: An object reference is required for the nonstatic field, method, or property 'ImageResizer.Form1.listbox_delegate' C:\...\Projects\ImageResizer\ImageResizer\Form1.cs Error 2: An object reference is required for the nonstatic field, method, or property 'System.Windows.Forms.Control.Invoke(System.Delegate, params object[])' C:\...\Projects\ImageResizer\ImageResizer\Form1 ...Show All

  • dixonbraden Gridview Control error

    Grid view control is not supporting HTMLEncode function and HTMLDecode functions.Though we use any of these functionits not displaying acording to that its just displaying as the data came from the source.Please cehck it out. Thanking you Anil Example: Dim Archivedata As New Data.DataTable Dim i As Integer ds.Tables.Add(Archivedata) Archivedata.Columns.Add( "DateUser" ) Archivedata.Columns.Add( "Body" ) Archivedata.Columns.Add( "userid" ) 'Archivedata.Columns.Add("fromid") 'Archivedata.Columns.Add("toid") Dim drow As Data.DataRow For i = 0 To ds.Tables( "Archive" ).Rows.Count - 1 drow = Archivedata.NewRow() Dim ...Show All

  • mpetanovitch DataGridView Column Header Style

    Hi,all I was building a .NET 2.0 Windows application which contained a DataGridView object. I was attempting to modify the column header styles to fit better in the application but none of the settings I was applying seemed to be taking effect. so , can u help me thanks a lot in advance ! In order to use styles in your DataGridView control for your .NET 2.0 Windows application, you must specify dgvMyDataGridView.EnableHeadersVisualStyles = false. Example of the code: //Instantiate new DataGridViewCellStyle System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle(); //Define Header Style dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGri ...Show All

  • Mystagogue Changing location and size of another application in C#

    I am writing a C# app that starts another application (say WordPad). Once it starts, I want to change the location and size of the app. How can I get the Control object of the other app (WordPad) so I can set the size & location Do I need to make Win32 SendMessage() calls since it is a separate app The following code using FromChildHandle returns null since it is outside of my C# app. Process processEditor; processEditor = Process .Start( "Wordpad.exe" , "c:\\Test.txt" ); processEditor.WaitForInputIdle(); Control ctrlProcessEditor = System.Windows.Forms. Control .FromChildHandle(processEditor.MainWindowHandle); you can set the WindowStyle in the P ...Show All

  • Anarchy Preventing Form refreshing while resizing

    Is there a way to prevent a form from repainting its contents while it is being resized or moved Thanks for any help! Thanks a lot that helped me out! Try modifying your form's constructor like this: public Form1() { InitializeComponent(); SetStyle(ControlStyles.ResizeRedraw, false); } ...Show All

  • SunilN DataFormatString in GridView

    I wonder if someone else is suffering the same problem. I found DataFormatString in GridView not work very well when I try to display currency. In VS 2005 Beta version, it works fine, but after I use stardard version, it never display correct. For example: integer 3 always display like 3.0000 but in the beta version, it display like $3.00 which is what I would like. By the way, I assigned datasource, dataadapter and sqlcommand manually, everything else is good, even date format string works, but currency format just NOT work. Not sure if this is a bug DataFormatString  {0:c2} Shouldn't this have been the other way around: First apply the format string, THEN you do the HtmlEncoding It would see ...Show All

  • Fekih Mehdi Custom Folders in Click Once

    Hi, I want to use clickonce deploymnet. I have application where, inside bin folder I have folders which are required at run time. e.g. I have Reports Folder like \bin\Debug\Reports where I have stored all the RPT files which I called at run time . So I want that , this Reports folder should also get created at the same path where my exe will be installed. Is there any way through ClickOnce, along with exe, my custom folders also get created On Publish tab of project properties, there is option of ApplicationFiles, but it is not allowing to edit/Add. Can anyone suggest the way out of it ...... Thanks Vyanki Hi Vyanki, I was also using Click Once for Deploying Windows Application. I am ...Show All

  • Peter Marshall Showing an animated waiting dialogue while invoking a remote method

    Hi, I’ve developed a smart application that uses .Net Remoting. When calling a remote method, the system hangs up till the method returns. It will be nice if I can find a way to provide the user with an animated dialog telling him that there is information being requested from the server. Any help Following link should help you achieve that - http://www.simple-talk.com/dotnet/windows-forms/asynchronous-processing-in-.net-part-1-fundamentals/ Thanks alot Mr. Sriram Rajamanuri The last article you have provided to me was so helpful. I've understand the topic, now I am developing a form that uses those ideas. I may provide u with the source code… to check & to use Thanks again! ...Show All

  • Cyber Sinh Which is the equivalent of ColorDialog() for pictures ?

    I searched PictureDialog, ImageDialog, I can't find such a dialog. I want something like the one used when you want to choose the Image for a PictureBox (the preview is quite important) yes, like a OpneFileDialog filtered only for images, but with a small preview area when I click the image. you can create your own, which is currently what I am doing for you for fun. Basically you create a form, add a PictureBox control, then maybe a treeview or something to select the path/folders located with image files, then you can select the image you want and once selected, it will show a preview of that image in the image preview picturebox control. To load an image into ...Show All

  • ljames28 Control Array

    Hello to all if i create multiple controls (10 buttons for example), how is it possible to address each control individually usin g indexes button[0].text = "some text"; button[1].text = "some other text "; ... 10x danych wrote: i mean can i have a single function instead of 8 trackBar_ScrollChanged (...) functions Yes sure you can do so, Create a function which's signature's Match with ScrollChanged event handler delegate and for each scrollbar's ScrollChanged event attach the same handler. Just a simple sample: Button b1 = new Button(); Button b2 = new Button(); b1.Click += new EventHandler(ButtonClick); b.2Click += new EventHandler(ButtonClick); ...Show All

363738394041424344454647484950515253

©2008 Software Development Network

powered by phorum