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

Software Development Network >> Windows Forms

Windows Forms

New Question

Web Services VS 2005 Calling to Populate DropDownList
Free Visual C# Web Browser by Tpshimo Soft.
Typed DataSet and CommandTimeOut
Closing dialogs C#
How can i to share my own assembly?
Problem with control docking
IIS FrontPage extensions required for deployment?
ControlStyles.DoubleBuffer and memory allocations
How do I programmatically add checkboxes to a form at runtime
Drawing multiple circles

Top Answerers

Kamen
Josh Smith
Mongsreturn
tohams
okaban
Ori'
dba123
Jesper Ekenberg
Mark Garner
piportill4
sitemap
Only Title

Answer Questions

  • Alexander_Monday Is there any property to keep a form on top but within an application?

    Top Most property of the form keeps the form on top of everything that's running. I want to keep a form on top but only within my application. Is there any easy way to that I know if a form got the focus from form_actiavted event. How can i know if my applciation got the focus. Regards Mani Hi Prasant, Perhaps you have not read the question fully. Top most property keeps the form on top even if you switch to another application such as internet. What I want is when my application is in focus, the form should be on top of all my other forms and when my application is not focus, life should be normal Regards Mani Visual Studio is an MDI application. The text editor windows (etc) are MDI children. The Find/Re ...Show All

  • MichaelSam2006 design question - re dynamically creating controls

    I have to create an interface (vb.net 2005) similar to the visual studio tools -> options I quite like that interface - use selects an item from a tree and on the right hand side the appropriate controls are displayed... My question is how do you think the programmers did it in Vis Studio - I'm after best practice here... I'm guessing that they create the controls dynamically - and it looks like they create them dynamically on demand - and keep them hanging around in case they need to be displayed again any insight welcome - and are there any clever code samples showcasing this thanks Bruce Yes, the controls in design mode are actual controls created dynamically, and subclassed by the ...Show All

  • Rattlerr hex display

    HI everyone, i have a value that i want to show in hex. I use : textbox1.Text = "0x"+value.ToString("x"); I get the results right, but if the value is 0x06, it only shows me 0x6, is there a format that i can use to get 0x06 Thank you "value" must be some integral type since the OP used x to format it to a hex value, therefore you can't just print it out because if the value is 13 then we want to display 0x0d not 0x13. Mark. Hi, whoops - mistype: i.ToString("x5"); will give you 5 characters, sorry about that - time for coffee. Mark. OK, what about use: hexValue = value.ToString("x"); if (hexValue.Length < 2)     &nbs ...Show All

  • zerocle user control event

    I have my HardwareManager point to current hardware user control. So from my HardwareManger class, how can I call the event from current hardware user control This hardware user control will raise an event when something happens but I don't know how to get this event from my HardwareManger. Thanks in advance, Tammy The HardwareManger just points to the current hardware user control, does not contain the hardware user control. The reason for this is: other classes can call this hardware user control. The Hardware user control always has the event. Following is what I have: public class OptoMetrix_ LSM_1002A : DefaultCameraImpl { private HardwareControl myOptoH ...Show All

  • dima_ua Drag and Drop between my application and windows explorer

    Hello Gurus, I have an application developed in C# ,drag and drop option implemented within the appication. In fact, I am able to drag the files from external windows explorer and drop em on my application. Now I want to drag the files from my application and drop em on external windows explorer or desktop and my application should be able to copy them. Could you please give me some suggestions or sample code that does similar thing BTW, I am using Visual Studio.NET 2003 version. Thanks, Sathish Kumar Implement the DragOver event. You can see a code sample in this thread . Yes, it is just a string. Here's a sample app: using System; using System.Windows.Forms; namespace Windows ...Show All

  • Selva kumar My .NET form goes behind others after COM goes away

    I have a .NET form written in C# (VS2005 SP1) that instantiates a COM object. That COM object brings up a VB6 form. When I close the VB6 form, my .NET form disappears behind any other forms that happen to be open such as Windows Explorer windows for example. I have to click its icon on the taskbar in order for in to come back to the front. EDIT:  It appears that its not that the form is going behind, but that the window where the task was launched is brought forward, and given focus.  If I run from the debugger, VS2005 gets the focus, and if I run the EXE from a Windows Explorer, then WE gets the focus. Is there a way to keep my .NET form in the foreground Thanks! Any other suggestions out there Thanks! a workarou ...Show All

  • Ultrawhack Listbox and SelectedItems

    I searched for some information regarding listboxes on this forum and saw the following code: Dim items(ListBox1.SelectedItems.Count - 1) As String Dim index As Integer = 0 For Each item As Object In ListBox1.SelectedItems items(index) = item.ToString() index += 1 Next 'for test For Each item As String In items MessageBox.Show(item) Next When I tested this, the message box showed "System.Data.Datarowview". Why wouldn't it show the actual items that I selected in the listbox. Try changing your loop to: For Each item As System.Data.DataRowView In ListBox1.SelectedItems You'll now ask a DataRowView object to provide a string ...Show All

  • DotNetFireball Designer Generated Code: SizeF

    What does the 'F' accomplish or stand for in designer generated code for form ' AutoScaleDimensions' this .AutoScaleDimensions = new System.Drawing. SizeF (6F, 13F); Immediately following this code in designer generated code: this .AutoScaleMode = System.Windows.Forms. AutoScaleMode .Font; this .ClientSize = new System.Drawing. Size (292, 262); Why have 'SizeF(6F, 13F)' when the size is explicitly declared as 'Size(292, 262)' The Designer then adds the hidden methods: this .ResumeLayout( false ); this .PerformLayout(); ... attempting to create a new library class. Floating point doesn't "do" anything. It's a data type, just like int or bool. System.Drawing.SizeF is the floating-poi ...Show All

  • Zero_ highlighting

    i'm building this app, a code editor (educational purposes) and I have the GUI ready and I can save, load and do much more with it, so i'm not a total noob at C#. but i try to highlight some of the code and it works quite well. I select the code and color it. but the problem is when I try to type some more the app selects it again . so my question is: How can i make sure that the RTB deselects the selection and so that is does not select it again. here's the code: string echo = "echo"; int index = richTextBox1.Text.IndexOf(echo); if (index != -1) { richTextBox1.Select(index, echo.Length); richTextBox1.SelectionColor = Color.Blue; index = richTextBox1.Text.IndexOf(echo, index + echo. ...Show All

  • Eric66 need to use cell.errortext in datagridview

    hi, I need to use cell.errortext in datagridview in a particaulr column. Like when a type a non numeric value i need the error to be displayed in the particular cell. I tried using dataerror event . If i have a messagebox it is diplaying. but error text is not displaying immediately. after typing a numeric value error is displaying. help me with this. thanks venp ...Show All

  • xr280xr Form show problem...

    I create a simple form with a label in the center that is visible in the designer. The form basically says "Loading system, please wait..." I construct it and show it then load other code that takes a while to run. Once the code has finished loading I hide the form. The problem is that the form shows, but the label in the form does not show. So I just get a blank form. Why is this please Thanks in advance, Devin Great! that fixed it. Thanks, Devin Hi Devin, this is probably because your loading code prevents the main thread from updating your forms. Take a look at the BackgroundWorker component , which will help you run long-running p ...Show All

  • NedNed Progress Bar

    HI I am a beginner at C# and found the following code on this website but when i buld it the progress bar does not fill up could someone please help using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; namespace WindowsApplication2 { public partial class Form1 : Form { static int count=5; //time count public Form1() { InitializeComponent(); this .timer1.Interval = 1000; // set timer to tick each 1000ms this .label1.Text = "LOADING ..." ; //"Loading ..." text } private void timer1_Tick( object sender, Even ...Show All

  • GlennZarb Serial Number Generation Avoiding Duplicates

    hi i have a datagrid, and i have binded it to a dataset, i have a column called srno and its autogenerated, it works fine, the problem is when i enter the data for the first time in a row the srno is 1, after entering the data i navigate to the second row, at that time srno is 2, before entering the data in the 2nd row do some alterations in the first row, after finishing alterations in the 1st row i return back to the 2nd row, and suprisingly the srno is now 3, need help thanks Prasenna I would use the currency manager's position changed event to figure out the Id. When the event fires if the user is not on the new row I make the default value for the id column the next number. ...Show All

  • Steven Syfuhs Button Image Transparent Background

    I am adding a .bmp image to a button. The background of the image is transparent. However, on the button it is displayed with a white background. I tried saving the same image as a .gif graphic and I had the same issue. How can I get the image to be displayed with the transparent background Thanks in Advance. I 've recently created an application in which I have maden my own buttons and my own icons and I have had the same problem. If you want the button's image to be transparent, you need to create ".ico" files. I will learn how to do it easily in this page http://msdn2.microsoft.com/en-us/library/ms997636.aspx One more thing. In that page, explains you how to make a dinamic icon ...Show All

  • ferdesceline Generating Update/Insert/Delete Commands with JOIN Query

    I have encountered a documented limitation with the autogenerated TableAdapters where if your SELECT query has a join to another table for some extended information e.g. retrieving an Invoice's CustomerName, VS2005 won't generate the INSERT/UPDATE/DELETE commands for the TableAdapter. This is documented in the section entitled " Choose Methods to Generate " from the following URL: http://msdn2.microsoft.com/en-US/library/dex7k4dw(VS.80).aspx I guess since its documented I have no right to whinge about it, but this seems like a big functionality gap here. Is my only recourse seriously having to have separate Datasets/TableAdapters for all my related fields Does anyone have any workarounds here I have t ...Show All

858687888990919293949596979899012

©2008 Software Development Network

powered by phorum