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

Software Development Network >> Windows Forms

Windows Forms

New Question

Default Selected Item In A Combo Problems
transfer variables between forms
taking variable from Public Form1()
open a new window using javascript
[Reflection] Removing Handlers
Custom non-rectangular title for Form
Custom TreeView
Change file ownership of an output file.
DatagridViewComboBoxCell value is not valid
Single Key Shortcut for Menuitems

Top Answerers

EZ1976
Mateusz Rajca
KamiNoChikara
Emmanuel Huna
Fwank79
Dato0011
Matra
Rob Wheeler
redneon
libra08
A Web Services Primer
Only Title

Answer Questions

  • Adam Miles Quick Question - Showing a background image on a control?

    Visual Studio version: 2005 Pro Framework: 2.0 Ok, this should be simple enough... If I were to set the background of my form to an image, is there a way I could make it so that the user could see the image through a textbox, or a button I know you can make the control's opacity lower but that shows through to what's under the form, not the form itself... any ideas Edit: Oh yeah, and one more thing... is there a way you can resize that image so that the entire thing can be seen in the form (I mean at runtime not at design time) (The form's background image) Thank you once again, you have answered my question. This code project is representative for the k ...Show All

  • ahmed921983 Problem with custom datasource

    The datasource for my Datagridview is a custom class, one of the properties of this class is an instance of another class. How can I set the DataPropertyName of a column to reference a property of the inner class.ie Prop1 from classB is the value I want to assign to DataPropertyName objbindingsource.DataSource = ClassACollection DataGridView2.Columns(3).Name = "Prop1" DataGridView2 .Columns(3).DataPropertyName = " TheOtherClass. Prop1" 'this does not work Public Class ClassA Private nameValue As String Public Sub New(ByVal name As String) nameValue = name End Sub Public Property Name() As String Get Return nameValue End Get Set(ByVal value As String) nameValue = value End Set End Property Public Su ...Show All

  • Seiggy Updating Textboxes.

    How do I update a text box with new information everytime an action is made see for example.. the program that Im creating removes ip addr that does not have a hostname.. but for some reason the new textbox doesnt want to update with the new ip addrs.. :( here is what I got. void ReLocateControls() { txt = new TextBox(); txt.Location = new Point( 10, 340 ); txt.Size = new Size( 770, 30 ); for( int x = 0; x < pnl2.Controls.Count; x++ ) { CheckBox chk = pnl2.Controls[x] as CheckBox; chk.Location = new Point( 10, 30 * x ); IPAddress[] ipHostEntry = Dns.GetHostAddresses( chk.Text.ToString()); foreach( IPAddress addr in ipHostEntry ) { txt.Text += addr.ToString() + &q ...Show All

  • Parameswaran When Form.Load() will be called...?

    Hi… First I am calling Form.Show() function from my MDI application & then I am hiding that form using Form.Hide() so when next time if I call Form.Show() then will it call Form.Load() event again … When actually Form.Load() will execute exactly… I want to set default parameters of my form which I am setting on Form.Load() & I want my application should set those forms control parameters values whenever I’ll call Form.Show(). How I can do this… Thanks, Vinay Two ways. Close your form. Will mean the next time you Show it will call that. If you need to reset the values on a show you could just make an extra call to a public func ...Show All

  • Robert Kozak Automate PDF reading

    Hi, I am trying to use the acrobat reader to read and view the pdf file. When I am using the acroPDF it works fine except it doesn't have the function of searching text (that opens the search panel and do the search). I have tryed objects like AcroExch.AVDoc but it can't create the type defenition of it and it said that a class doesn't registered. I checked it in registry. It doesn't exist there. Here the example of code: <code> // Create an Acrobat Application object Type AcrobatAppType; AcrobatAppType = Type.GetTypeFromProgID("AcroExch.App"); Acrobat.CAcroApp oAdobeApp = (Acrobat.CAcroApp)Activator.CreateInstance(AcrobatAppType); // Create an Acrobat Document object; Type AcrobatPDDocType; ...Show All

  • Saurabh Kulkarni Deploying files with a click once application

    I have an xsx file that seems to relate to an xsd file. I need to include both in my applicaiton. I can include the xsd in my visual studio solution but when I try to add th xsx it doesn't appear to get added; yet it is in the source safe explorer. I need to have this file deploy with my click once application since it is needed for an editor component piece in the application. It uses the actipro script editor and I need the language definiton files so the editor can recognize xml syntax and other languages and highlight them appropriately. I get this same warning/error for what seems to be the xsx file since that is the only file that does not get created when the application is published; there is not .deploy file for it. I ...Show All

  • cpurick Full text search from VB

    I'm looking for a VB API call that will replicate the Windows explorer search facility. Check out this post to see if this is the code you are looking for to Recurse Window directories. Recursing thru the directories is one way to go. However it will be very slow specially if you want to also do some file level search. You also won't be able to use the OS indexing service. Windows Desktop Visual Studio 2005 Add-In http://msdn.microsoft.com/msdnmag/issues/06/07/CodeAndSeek/default.aspx WDSQuery.dll (implemented as COM, I think originally part of MSAccess) Forum Thread (contains the link to download site): http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=602563&SiteID=1 Sample ...Show All

  • Whoisit drag & drop

    How would one go about implementing drag & drop functionality with taskbar buttons as in allowing the user to drag buttons from the taskbar and drop them onto an application so it can determine what application was dropped there. Similar functionality is acheived in the program taskbar shuffle, and a few other programs like it. Have a look at the AllowDrop property on (System.Windows.Forms)Control... nd at the events DragEnter, DragOver and DragLeave... If i'm not mistaken you'll see a string that contains the path off the item that was dropped on the control... darn, thats not exactly the response i was hoping for.. you mention that this stuff is especially hard to do in .NET, is there a diff ...Show All

  • barkingdog Give me some feedback from this "rude" Drag and Drop

    I'm trying to make a drag and drop of a button from a panel to the form: private void button1_GiveFeedback(object sender, System.Windows.Forms.GiveFeedbackEventArgs e) { label1.Text = "TOBOGAN"; button1.Location = new Point(MousePosition.X-10,MousePosition.Y-47); } private void button1_MouseDown(object sender, System.Windows.Forms.MouseEventArgs e) { button1.DoDragDrop(button1,DragDropEffects.Move); a = new Point(MousePosition.X,MousePosition.Y); } It does the drag and drop no problem, to anywhere on the form but the mouse cursor when i press and hold in the button it goes to the upper left corner of the button but it makes the drag and drop. Would like some comments on this. Sorry the bad english Tiago Matos ...Show All

  • cipcip Multiple Instances of AxWebBrowser

    Hi, I have a csharp application, running multiple instances of AxWebBrowser at the same time. Each web browser requires the same cookie, set using InternetSetCookie. I used InternetSetCookie before I start navigating in each control. If one AxWebBrowser control is navigating, another control is not able to recognise the cookie. If I waited until the first control is complete navigating, then start navigating the second control, then it is able to recognise the cookie. Is this a known feature of the control Is there any way to get around it Thanks and Best Regards I would have thought this is normal and by design as the cookie won't be fully written until the navigation (documentcompleted even ...Show All

  • Mikhail Ryzhinskiy Fade

    How can I make a label "fade in" and "fade out" Preferably with a timer Thanks, You need 2 timers for this. You can Change ForeColor property from a specific range to a specific range in forward timer than stop itself and start the other. The other timer will do the same in Reverse order then will stop itself and start the other and so on. Best Regards, Do you have this in C# Thanks for your help! Warning: lots of code ahead. To fade a label, you would just have to smoothly change from the foreground color to the background color. Doing that smoothly is not easily done by changing the RGB components of the color. Converting colors to the HSL color space (Hue, Saturation and Luminosity) ...Show All

  • hey_ian Form closing Error...

    Hi.... In my application there are more than 10 forms .While application is running & if i am pressing the close button on the form form is getting closed. Next time if i want to open it again its giving the following error- System.ObjectDisposedException: Cannot access a disposed object. I dont want that form & its contents to be disposed... How can i do this... Thanks, Vinay Please post WinForms related questions to the WinForms forum. You will get better support there. I'm moving your posting to that forum. Thanks. When Close button is pressed, Form and all it's content is dosposed. There's nothing you can do. You ca ...Show All

  • cvajre Weird .NET Deployment Scenario

    Hi I've just payed for some bespoke development from a very large software provider and the way they have delivered it has me little bit confused and I'm not entirely sure that what they have done is legal. Basically they've given us an MSI to install their components. The install checks that the .NET Framework is installed and doesn't continue with the install unless it is - fine since the app is a .NET app. However if the .NET Framework is already installed they proceed with the install, but not only do they install their own files but they also install a bunch the of .NET runtime files (mscorlib.dll, System.Windows.Forms.dll, etc) into the same folder as their app. They don't properly install the .NET framework runtime using d ...Show All

  • Konstantin Frankov Binding to toolstripComboBox does not work

    Hi, I am trying to bind data from a dataset to a toolStripComboBox just like a ComboBox. Like the following: this .toolStripComboBox1.ComboBox.DataSource = this .bindingSource; this .toolStripComboBox1.ComboBox.DisplayMember = "Sirname" ; When I do this with a normal combobox it works fine. With this one it does not. Any ideas what is going on Am I forgetting something Regards, Ruud Wijnands Perhaps move the code from form load to menu activate event so the code is run when the menu is popped up. It could be the items are rebuilt from scratch when the menu is loaded. Having the combobox under a menu item seems to be the issue. If I move the combobo ...Show All

  • Lord Arokh Class Library (dll) On Network drive

    I'm currently developing a .net dll which I want to put on a network share and get various applications to use it - can anyone tell me the best/recommended way to do this I have something similar setup for a vb6 dll, I use late binding in the client apps and register the dll on all client PCs. Is there a better way in .net Thanks in advance Jon I’d suggest using ClickOnce to publish your application (and DLLs) to a central location and install it to client machines either from there or via a manual setup.exe process. Once deployed (and if your properly configured your ClickOnce setup) each client will from time to time (based on your settings) check the deployment server to see if their is a new vers ...Show All

525354555657585960616263646566676869

©2008 Software Development Network

powered by phorum