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

Software Development Network >> Windows Forms

Windows Forms

New Question

cancel navigator add new on double add -using no null allowed exception
AddHandler - pass info
Events and interfaces
Relative paths and ClickOnce problem
RTF jpegblip and jpeg image are not displayed in RichTextBox
Windows::Forms::Timer doesn't re-enable
Has anyone made a native DirectX bootstrapper package yet?
Binding Complex Business Objects to a DataGridView
Radiobutton can't get checked??
Using Bootstrapper Setup for .NET 2.0 install creates two files

Top Answerers

Acco1953
Andy Mil
vonlinkerstain
rxg
ReneeC
jiterbug
DeanB61
flyte
Tarana
HD Land
IBI Enterprise Data Access
Only Title

Answer Questions

  • Gabriel Méndez How to change Text property of label control from a thread

    Hi Can anybody help me to change the text property of label control from a thread.(when a thread is running I need to change the Text property of Label) Thanks vizai Hi, Check the below code.. this would solve the problem... Private Sub Button1_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim objThread As New System.Threading.Thread( AddressOf changeLabelText) objthread.Start() End Sub Private Sub changeLabelText() Label1.Text = "New Text" End Sub Thanks Mark. Hi Mark, I am new to .net framework 2.0.. i couldnt find "InvokeRequired" property in .net framework 1.0.... can you pls brief on the "label.In ...Show All

  • rpskumar Late binding issue

    Hello, I've got a tricky little problem. I have a 3 forms that are very similar and I want to check 10 textboxes to see if the numbers entered in them are out of bounds or not. Now, only one form can be visible at a time and I only want to check the visible one. The code tend to be quite long but I give a short example, here's some code: Private Sub D0Limits() If Form1.Visible Then If Convert.ToDouble(Form1.textbox1.Text) < incISOLow Then Form1.ListBox1.Items.Add( "Value too low" ) Form1.textbox1.BackColor = Color.Red ElseIf Convert.ToDouble(Form1.textbox1.Text) > incISOHigh Then Form1.ListBox1.Items.Add( "Value too high" ) Form1.textbox1.BackColor = Colo ...Show All

  • lyc Problem calling event from control

    Hi, I have a control, SimpleSplitter , that derives from Splitter where I override the OnMouseDown , OnMouseUp , OnMouseSplitterMoved and OnSplitterMoving . I do this because I don't want the Splitter to handle these for me since it will draw what I call a shadow splitter when handling these events. So I wanted to still handle the event but not call the OnMouseDown of the Splitter , instead, I wanted the parent of the Splitter , that is the Control . I'm not seeing how I can do this. If you don't understand what I mean, you have the code here: http://n0n4m3.gamedev-pt.net/ pag=managed_component2&language=en The solution I used was to create a new event, MouseDown2 , but I don't like this solution and I think there's a better one. Tha ...Show All

  • Misiacik7 Progressbar in Managed C++

    Hello! I found this link http://www.codeproject.com/miscctrl/text_progressctrl.asp about a Progressbar with text in it. I am programming in Managed C++ and I was wondering if there is a similar progressbar out there somewhere that I can use in my managed applications I am trying to code my own one but I cant figure out how to get the text to behave like it do in example in the link. Is there any tutorials about this in managed C++   JeroGrav wrote: well one of the advantages of .NET is that you can take something written in VB.NET and plug it into your C++/CLI application or your C# app. The only requirement is that it must be in a separate project. So you could have a C++ exe that uses a VB DLL. Once its c ...Show All

  • Kristian J&amp;#246;rgensen Removing Componets (exp Checkboxes )

    If I wanted to lets say... have a few checkboxes right... and I wanted to remove the ones that are checked... how do I do that Like.. remove the checkbox right along with its value. The second method won't work as you can't modify a collection that is being iterated over. Neither of the posted examples attempt to modify a collection that's being iterator over Both use two separate collections, which is why both have two loops. Hi Dont forget that foreach isn't only loop what we have: int i = 0; while (i < panel1. Controls.Count) { CheckBox cb = panel1. Controls as CheckBox ; if (cb != null && cb.Checked) panel1. Controls.Remove(cb); else i++; } ...Show All

  • tribal How do I include my data files into my installation exe?

    I am using a Setup project to deploy my app. I would like to have my data files included in my installation exe. How do I do that Hi W J / Phil Wilson I am trying to use click once to include data files for a Windows application not a Web deployment. How to I get to the view you talked about using Visual Studio 2005. I am right clicking on the project and I cant seem to find the View menu item Is the deployment project you are referring to a Web deployment project We are using Windows Application not Web deployment. Does any one know how to include data files for a Windows application using click once and using Visual Studio 2005 I used the link below but gives me errors and its a very manual ...Show All

  • andreas s KeyPress is handled before KeyDown?

    I thought that the KeyDown event was handled before the KeyPress event, but it looked like I was wrong. Can someone please confirm that KeyPress is handled before KeyDown By the way, why the Delete key doesn't get trapped in the KeyPress event (it does get trap in KeyUp/Down events though). Thanks. Hi Under the covers KeyDown is analogous to the WM_KEYDOWN message, KeyUp is the WM_KEYUP message. Key Press is a .net event that's fired after the key comes up. The easiest way to figure this out is to over-ride WndProc in your form with a few Debug.WriteLine / Print statements to see what is happening. Something along these lines: protected override void WndProc( ref Message m) ...Show All

  • Marcus3V ComboBox - Losing binding

    Hey Guys&Gals my combo box is never empty it always have the text from the first member of the table... Plz help my code: this.cbo.DataSource = SearchData.Tables["Name"]; this.cbo.ValueMember = "ID"; this.cbo.DisplayMember = "Name"; this.cbo.SelectedIndex = -1; this.cbo.Text = " "; Sunny Hi ken Thanks for the reply. I don't have this problem only. i am developing a auto filter and autocompletion for the combobox. its been a nightmare till now. I am using .NET 1.1 and cann't move to .NET 2.0. The solution you told me is a hack not solution to the problem. If you know anyother way to do i ...Show All

  • IrisFresco How to Fill 1st textboxcolumn of Datagrid...

    hi, In my application...I have a datagrid on my form.My datagrid contains a textcoxcolumn & a comboboxcolumn…so I want to know how I can put values in textbox column on form load event…. Say I have 5 rows & I want those 5 rows to have 5 strings in the textbox column. Strings are(string1, string2, string3, string4 & string5). So how I can put it in that datagrids 1 st textboxcolumn (in form load event ). Thanks, Vinay Thanks, But i want to use a single cell of my one column which is of ComboBoxColumn type as a TextBox ...means i want user to enter text in that Cell by typing text in it...that cell should not be of type ComboBox... Can we do it like this... ...Show All

  • J Russo Ambiguous match found

    On an inherited windows form I am getting this error, and I have no idea where to start to try to fix it. It has happened to several, but not all of my inherited forms. Sometime I get this in my error message box, but not always. Warning 1 The service System.Windows.Forms.Design.IEventHandlerService already exists in the service container. Parameter name: serviceType 0 0 Any help not having to redo my screen would be great. It compiles, and runs just fine. Thanks Will Have a read at this thread . ...Show All

  • mclagett Populating ListBox with data from Access database

    Hi, I have an MS Access 2003 database and I need to populate a ListBox that I have in my form with data from a column. I already know how to write and read from the database, I'm just having some trouble with this particular ListBox case. How can I get all the values of a column and list them in a ListBox I know there is a way but I can't seem to remember or find it. I have created a temporary solution that actually works but I know there is a normal way to do this. This is the code of a button_click event: For i = 1 To count ' The number of lines of the table sql = "Select FIELD From TABLE Where ID = " + i.ToString con = New OleDbConnection( "provider=microsoft.jet.oledb.4.0;Data Source=C:\DataBase. ...Show All

  • HellsChicken sample code for programmincally install the "correct version" of .net framework?

    Hi, I wrote a very simple window form app, all it has is a label and couple buttons. When I send to exe file to another machine, it pops the famous error message: The application failed to initialize properly (0xc0000135). Click on OK to terminiate the application. Then I learned, the target machine needs to have .net framework install and the version of the framework must match where my app was built. My question: Does anyone have sample code for my program to determine if the target machine has the correct version of .net framework installed, and if not then my program would automatically download from msdn and install for user...etc etc etc Or if there are better ways to handle it (such maybe using the deploy option from vs. ...Show All

  • cwlaualex Leftover pixels From DrawReversibleLine

    I am creating a drawing program...  When I draw a line I am capturing the mouse, and drawing a reversible line, which I store and redraw (to erase the line) if the mouse moves to another point.  The last line will be the the one I capture on mouse up. This works, except there are a few remaining jagged edges created during the process.  They all disappear after mouse up, but they are anoying anyway. Does anyone know how to fix this   When I have done this in the past against the Win32 API, it was very clean, and I am looking for that cleanliness. Do I have to use the API calls Thanks, Bob As for the bug question. I am going to look at it again today. I do not see a bug ...Show All

  • progames25 Winform inside a SplitContainer Funny Behaviour

    Hi, I have a split container with the left panel having the navigation menu and the right panel displays the required winform. When the form is displayed inside a splitcontainer panel, the textboxes behave a bit funny. There is no way I can have the mouse cursor placed inside a textbox in the position I want to. The complete textbox gets selected on entering the textbox. Also, I can only place the mouse cursor at the extreme left of the text in the textbox. Any ideas why this is happening. If I run the same form outside the split container (that means the form is not docked in the split container panel, then the textbox behaves normally. thanks Hi, Did you check for if you are ...Show All

  • ducmis How do I access the main form?

    Hi! I've got two forms, MainForm (which is my main form) and LoginForm. And I would like to be able to get access to a method in the MainForm from the LoginForm. How can I achieve this If it helps, my main method looks like this: static void Main() { MainForm myMainForm = new MainForm(); Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); Application.Run(myMainForm); } Thanks in advance. The most appropriate mechanism is to expose a property off your global application object that contains a reference to the main form. It would be set in Main before calling Application.Run . Another approach would be to expose a static method off the Mai ...Show All

858687888990919293949596979899012

©2008 Software Development Network

powered by phorum