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

Software Development Network >> Windows Forms

Windows Forms

New Question

Context Menu Strip
Form Scaling Problem
Master Detail in VS C# 2005 (Windows Application) !!!
Clearing the controls in Win Application.
Question about edit box
EndEdit: leaving edit mode in a datagridview
Can't disable a button
TextBox problem
Windows Form Dictionary
drill down datagridview

Top Answerers

msdobrescu
Ilan D
ronks
Vasanth TT
furjaw
bensterdev
Christian Sparre
LouisVanAlphen
edenxiii
leonidas than
Agee Software
Only Title

Answer Questions

  • Szdnez Info pls: Resource File Name property/managed resource compiler tool

    I'm sure you've all seen the warning in Form1.h (VS 2005 Express) about changing the class name of the main form. I'ld like to know how to solve the problem. This isn't hypothetical. I did change the class name of a form, and the Designer seemed to get quite upset. It would be good to know how to set that Resource File Name property May be the winform folks can help! Thanks, Ayman Shoukry VC++ Team @joeller, Thank you a lot for share with us the answer to this question.   Here is the answer. http://www.kbalertz.com/839298/error.message.after.change.localized.class.Visual.aspx I've moved this to the VC forum since it looks like ...Show All

  • _Michael_ Print Preview problem(Bug)

    Hey, I have this code in the PrintDocument control under the PrintPage event: private void printDocument_PrintPage( object sender, PrintPageEventArgs e) { RtextboxUC thisrichtextbox = GetCurrentTextBox(); //Start printing text and store last letter... checkPrint = thisrichtextbox.Print(checkPrint, thisrichtextbox.TextBox.TextLength, e); //Check if there should be more pages if (checkPrint < thisrichtextbox.TextBox.TextLength) { e.HasMorePages = true ; } else { e.HasMorePages = false ; } } There are no errors, but when I test it on my program and click print preview...when it opens the PrintPreview dialog It shows the dialog that is telling you how many pages it is det ...Show All

  • Sinh menuStrip1.Renderer.DrawSeparator problem(error)

    Hey, I am using menuStrip1.Renderer.DrawSeparator to use my own image for the seperator for the menu strip in my program. I tryed doing this: menuStrip1.Renderer.DrawSeparator = SurfScape1.Properties. Resources .seperator; But i got an error saying: Cannot assign to 'DrawSeparator' because it is a 'method group' How do I fix this Thanks :) ok, well, I tryed it and...I just took out the graphics clear part, but the seperator... ... ... It steached, but it became a 4 pixel hight and a gradient from it's color to the drop down list's background color(white)...actualy it starts getting it's own alpha, becuase the old default seperator you can see under it where it starts to get white, so it is getting transp ...Show All

  • davidg12 DataGridView Sorting Numerical Strings

    Hi, Have tried to sort the columns containing numerical strings in a DataGridView, seems to misplace the very first or very last row off by one index. For example in an ascent sort, the first row is the second smallest and the second row contains the smallest number. When, the rest of the numbers seem to be sorted properly. It seems as I need to set the colum sorting option to the programatical mode, and use a sorting algorithm to do this externally. Any suggestions, or any more straight forward way to do this Best Regards, Reza Bemanian right click on the grid,. if the column is autogenerated, then add a column and set the propertyname property to the name as the field in the database. if the col ...Show All

  • kmcclung Maximum width of a panel

    I find that the maximum value I can assign to the width property of a panel is 32,767 which implies that the parameter is a type short and not int . I have tried in both the designer and at runtime. Does anyone know how to make a larger panel Obviously, for the wrong reason! My application includes the drawing of a "timeline" which shows some simple graphical objects that represent events. I wanted the user to be able to scroll the timeline and zoom in and out the time scale. The technique that I used to do this was to put a large (in width) panel (double buffered) inside a fixed size panel which was scrollable. I would draw the entire timeline on the first panel and use the containin ...Show All

  • Cassiopeiaxy Multi language help please

    how can i add a combo box were people select the language they want and it will transform it al into that selected language any help is appreciated thank you hmm.. didnt help me any but im sure i know someone that might know what to do from there Hi you need to do a few things: - create a new windows project - add a combobox on the form - in the form load event handler, place the following code: foreach ( CultureInfo culture in CultureInfo .GetCultures( CultureTypes .InstalledWin32Cultures)) { comboBox1.Items.Add(culture); } - in the combox selected index changed event handler place the following code: CultureInfo selected = ( CultureInfo )comboBox1.Sel ...Show All

  • Carsten Kanstrup how to make a splash?

    I have a main_form which is MDI and I am using thios code in its Form_Shown: frmLogin LoginForm = new frmLogin (); LoginForm.ShowDialog(); in order to display a dialog form for login and I want to show a slash until the login form appears.. this entry might be helpful http://blogs.msdn.com/llobo/archive/2006/02/07/Creating-NonRectangular-Splash-Screen-using-Alpha-Channel.aspx i need to have a splash because I am creating log entries in SQL server during the startup In the Load event your main form is easiest... I can't think of a lot of reasons why a form with couple of labels and two text boxes would require a slash. Why is it takin ...Show All

  • Dharan Prakash Scaling of controls possible?

    Is it possible to scale a control in the same way that can be done with a graphics transform I have a control that contains a label and a treeview, and I would like to be able to zoom in and out on this control. I have managed to scale the control itself, but the label and treeview do not scale. I would want the fonts to scale as well. Is this possible There is something I am still not understanding, which I guess is separate from the idea of zooming. I will be creating an editable class diagram - users will add new classes, create relationships between classes, etc. Now I can code the rendering of a class by hand, including the class name (which should be editable by double-click), and a tree-view o ...Show All

  • Sriram Rajamanuri how to call value of one form to another form

    Hi I am a new bie to c# i am designing a c# window application.i have a login form. so how can i access thin login name or login id in all other forms. as their is nothing called as session or cache in windows applicaton. please suggest a suitable solutions. Waiting for the reply Thanking you either make a static class to hold the values so any form can access it, without making an instance of this class since its static, or pass a reference of each form to the other forms and access it via that however making sure that the properties are public so you can access the property you want to access. http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=729974&SiteID=1 again, everything is ...Show All

  • pawelek Draw on top of Image

    Hello. I have a custom control that loads a large image and displays it on screen (using scrollbars). The problem is that I want to draw on the visible part of the image (the part that is currently on screen) and I want to be able to modify the things that I'm drawing (i.e. if I draw a line on top of the image, I want to be able to remove that line later). I did something like this, with the help of this forum: (where Image image = Image.FromFile("picture.jpg"); ) protected override void OnPaint( PaintEventArgs e) {    e.Graphics.SmoothingMode = SmoothingMode .AntiAlias;    Rectangle src = new Rectangle (-AutoScrollPosition.X, -AutoScrollPosition.Y, this .Width, this .Height);    Rect ...Show All

  • Ogulcank MDI and TopMost...

    I have an MDI Form that has 4 child forms that have TopMost = true; However when I set TopMost = false; These windows still stay on top within the MDI Form. Is there any other setting that could cause these forms to stay on top Thanks for your help! Mandragon If you're showing these dialogs with the MDI parent as the form parent (e.g. Dialog.Show(Parent) as opposed to Dialog.Show()) they will show up on top. I'm assuming here that they aren't MDI children. HTH Your question put me onto the answer, Thanks! The MdiParent was being assigned using a function that was in some unmana ...Show All

  • bchan where can I find the publishing wizard

    I was following a walkthrough and it said I could use the publishing wizard if I right click the project and select properties. In my case I can't find the publish option, and after some research, I think this is only a feature of Visual Studio Professional, whereas I have the Standard version. Is this wizard available in any other form, to download and install thanks I'm pretty sure Standard SKU has ClickOnce publishing, the Express SKU's do! Try selecting your project in the Solution Explorer. Right-click, and select Publish from the context menu. If you are looking for the properties, you might not see the publish tab since it's near the bottom of the list, if your screen resolution is ...Show All

  • Avatar_Tsai Picture Resizing

    Hi everyone who is a lot better at programming than me, I have a couple (5) radio buttons that the user uses to select different dimensions and a text box that has a file path for an image. I need a code that will resize the image to whichever radio button is selected and change the extension from the existing one to PNG. Can anyone help me not at all, I believe I have given (feel free to correct it, make me understand better) the code to do the job. I understand have you a file chosen to open I understand you have radio buttons which represent perhaps the width/height dimensions I understand you wish to resize the image, and perhaps save it, according to the dimensions chosen the abov ...Show All

  • remedios_ OnRenderToolStripBackground...

    Hi, I have a ToolStripDropDown button in a toolstrip. I am trying to draw rounded corners for the ToolStripDropDown button and ToolStripDropDown menu using ToolStripProfessionalrenderer... I am able to get the rounded corners..but a flat rectangle is always beneath the dropdown menu...i am trying to override the ToolStripBackground event to avoid drawing that base rectangle.. protected override void OnRenderToolStripBorder( ToolStripRenderEventArgs e) { GraphicsPath _roundedEdge = new GraphicsPath (); _roundedEdge.AddLine(_topLeftEdgeRadius, 0, e.ToolStrip.ClientRectangle.Width - _topRightEdgeRadius - 1, 0); _roundedEdge.AddArc(e.ToolStrip.ClientRectangle.Width - _topRightEdgeRadius - 1 - _topRightEdge ...Show All

  • dni listboxes, bindingsources & many to many relationship

    hello, I am working on a problem tracking winforms smart client application (vs2005). I have a form to add a new problem. A problem can affect many customers and a customer can be referenced in several problems.(many to many relationship) i would like to add 2 listboxes : one that would display all available customers, and one for selected customers for the current problem. i would like to use bindingsources for the two listboxes to manage the edits. using NetTiers, I have entities representing the Problem & Customer tables. How can I implement this thanks noone ever done a dual listbox based on a many to many relationship this is the code for the ADD button ...Show All

383940414243444546474849505152535455

©2008 Software Development Network

powered by phorum