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

Software Development Network >> Windows Forms

Windows Forms

New Question

Need Help!!!!!! URGENT
ComboBox reverts to valuemember data not displaymember data.
dialog window looses modal state when the main form is resized
need tool to search AD from a text file
how to change the color of control bar in vb.net
Custom Sorting on DataGridView with Databound Source
How To Auto-Launch Secondary Exe after Main Application Installs?
Why does all properties get pushed into bound controls when only one property is changed?
can i dynamic create context menu item
Datagridview and checkbox

Top Answerers

walsher
OOT_In_Atlanta
Electronic75
BitShift
Helen999888
DINESH CHAUDHARI
Jaime Stuardo
search and deploy
bstoker
ChrisMoje
Borland, s.r.o.
Only Title

Answer Questions

  • Gil Strauss disabled text color

    I have a Panel that contains Labels, TextBoxes, and DateTimePickers. I would like to "Enabled = false" this Panel without changing the text color of its components to a lighter color. What is the best way to do this Thanks. No, this is not posible. This i've seen this alot in the newsgroups and the best suggestions I've seen is to replace your controls with Labels when you want to disable them. It sounds a little bit dirty, but you don't want to implement you own painting by overriding the OnPaint method and paint the control yourself when it is disabled and you can't change the disabled collor. Creating your own control with GDI+ will be to much work for this problem, so that is the reason I think the best suggestion ...Show All

  • zx5000 Problems handling "VarBinary" field.

    Hi,   As I could read that "image" fieldtype would eventually disappear from next SQL version, (Ref: http://msdn2.microsoft.com/fr-fr/library/ms187993 )  I started using in one of my SQL table a "VarBinary" fieldtype in order to hold an image ( .bmp, .gif, .jpg, .jpeg).   My problem here is that, even after searching infos on the web on "VarBinary fieldtype", I still don't have a clue on how I can assign that "VarBinary" field value to the "Image" control I have on my form so it can display corresponding image.  Any trick   By the same way, any trick on how I can store my "Image" control's picture back to my "VarBinary" field Many thanks in advance, Stephane &n ...Show All

  • Pirooz Javan (Old) How to change cursor position bar size in text box?

    My users are complaining that the flashing thin bar that indicates the cursor position inside a text box is hard to see. They ask if I can widen the bar. I imagine it has something to do with the font, but I cannot see where I can change this in the properties of the textbox. Is there a way to widen the cursor position bar inside the text box Thanks. Thanks, nobugz. The solid caret looks like what I would want to do. Do you know how I would create a solid caret in C# The application is coded in VS 2005 C#. Thanks Check my code in this thread . It works for a TextBox but not a RichTextBox. I don't like posting C# code because the event handlers are ini ...Show All

  • Davve Restore combobox items

    I've got 2 comboboxes, cmbStatT and cmbEndT respectively, both with items added manually at design time. These comboboxes have the same number of items that are of the same value, these are time values to be precise. Depending on the index of the selected item in cmbStatT, I would like to remove a range of items in cmbEndT. If a user selects an item at index 3 (09:00 AM, starting from 07:30 AM till 16:00 PM), cmbEndT should only show items from index 4 (09:30 AM, starting from 07:30 AM till 16:00 PM). Meaning remove items in cmbEndT starting at cmbStartT.SelectedIndex back to index 0. This works just fine the first time. 09:30 AM of cmbEndT is now at index 0 and the user decides to change the value in cmbStartT say, to 10:00 AM which ...Show All

  • Jeremy Grand version of MSDE

    HI, How to check which version of MSDE is installed on a system. through my c# code Please answer bye You may want to switch to SQLExpress since MSDE will never be supported on vista. But probably best to probably check for MSDE version before the installation. That can be done through target file search and launch conditions. Just have the search look for the MSDE files and version that are identify the unique version you want. ...Show All

  • HForN HelpProvider / HelpButton

    I included a HelpProvider object in my Windows Form application and enabled the HelpButton (so my caption bar has a " " and an "X" on it). My question is, is there a way I can trigger an event or set a property such that when I click a button, the HelpButton enables and my cursor changes from an arrow to a " " icon What I'm trying to do is provide a bigger button (for a touch screen) that is associated with the " " icon up in the caption bar so users have a second means of accessing pop up help. Thanks for any insight you can offer. kjh7r wrote: I included a HelpProvider object in my Windows Form application and enabled the HelpButton (so my caption ...Show All

  • MaliGogi TypeConverter - Exception - Unable to cast type x to type x

    All: I have a VS.Net 2005 solution containing 2 projects. A Windows Control Library A Windows applicaiton test client Whenever I make changes to the objects in my custom control library and return to the test client application...The TypeConverters for my custom controls throw exceptions when I access the custom object properties of the controls... Unable to cast type 'MyLib.Namespace.Object' to type 'MyLib.Namespace.Object' This error is driving me crazy! I have to restart the IDE after each change to my control library...This is making development slow and painful to say the least... Any insight will be greatly appreciated! -------------------------------------------------- TypeConverter code ------------------ ...Show All

  • alexbot Adding an Executable to a Deployment Project

    Hi, When I add a file to a project, a .exe in this case. If I would like to add a switch to the .exe, such as fileName.exe /Q. Is there a way to do this in the installer, maybe in the files properties Thanks for any help. Jeff Hi Phil, Thanks for the help. I read your articles which helped alot also. Jeff I think maybe what you mean is that you want a shortcut to the exe to have that switch, and you do that in the Arguments value in the properties of the shortcut to the exe that you create in the setup project. ...Show All

  • JohnLi Controls appear attractive in design but not runtime

    Hello, I have recently upgraded a number of VS projects into 2005 and I have noticed that for each of these applications the user controls appear different at runtime. When using the designer in 2005 the buttons appear rounded, and more user-friendly (like the buttons in IE) however at runtime (or during debug) all controls appear a ugly, grey, windows 2000 style appearance. If I create an Windows Forms application from scratch in 2005 I get the attractive controls in all cases - It just seems to be the upgrade. Any ideas Regards, Luc Pettett Hi Luc, please check your buttons' FlatStyle property value - it should be set to Standard. Also, their UseVisualStyleBackColor property should be set to True. ...Show All

  • pennyfish AutoScroll for Panel control and refreshing while scrolling

    Hi, I'm writing a small app using VS2005 in C#. I put Panel control onto my form and, as child control, another panel inside it. I'd like to see as the content of 'container' panel changes its position during scrolling, but when I set AutoScroll property to 'true' the effect is only seen when I stop scrolling the content (it depends on 'show window contents while scrolling' settings of operating system, on my computer it's set to false). So, to do that, I consumed Scroll event from the container and set location of the child panel using ScrollEventArgs values. Everything works fine until I stop scrolling. After that, scrollbars of the container change their sizes and 'everything breaks', colloquially speaking. I've tried to do something wi ...Show All

  • lsb_lsb Exporting data to excel sheet

    How to export data to excel sheet from datatable for windows application using VB.NET. Try to give the exact code or solve the asap. see this thread http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=1115801&SiteID=1 ...Show All

  • Learning VB How to access another forms members

    Hi all, I have a form called: Form1 (Form1.h) and another form called: add_key_Value (add_key_Value.h) Now I want to show the form add_key_Value: So I include the header file add_key_Value.h in the Form1.h And perform the following code: add_Key_Value^ form2 = gcnew add_key_Value; form2->Show(); Now in the add_key_value form I want to access the members of Form1: So I include the header file Form1.h in the add_key_Value.h And perform the following code: (ERRORS) Form1^ mainform = gcnew Form1; mainform->edtTextBox->Text = "Just testing"; Errors: Error 3 error C2065: 'Form1' : undeclared identifier c:\documents and settings\qx55246\my documents\visual studio 2005\projects\cnfedtctrl\cnfedtctrl\add_key_Value.h 2 ...Show All

  • mindstorms PropertyDescriptor, IsBrowsable and the PropertyGrid

    I have seen this question asked sporadically but have never seen any answers. The abstract PropertyDescriptor class defines an IsBrowsable property that would seemingly be called by the Windows Forms PropertyGrid control to determine whether to display the property or not. This seems reasonable because it is the pattern followed by other PropertyDescriptor properties like IsReadOnly etc. When IsBrowsable is overridden and breakpoints are set in the debugger however, I (and others) have discovered that IsBrowsable never gets called! How then shall we proxy the behavior of the BrowsableAttribute in a custom PropertyDescriptor Are there any workarounds the propertygrid uses a child class of the propertydes ...Show All

  • NP Rudra Dialog Editor for Windows application setup Project

    Hi, Can i use my own created form as a dialog editor in Visual Studio 2005 setup project or can i show and does not show the dialog editor conditionaly while installing setup. Unfortunately you can't do either very easily at all with our Setup projects. It's an area we haven't had an opportunity to improve quite yet. Thank you for your feedback. This is definately something that is on the list of enhancements we would like to do sometime. It's a fairly expensive feature to develop and test properly and it is our perception that it doesn't benefit the corporate internal scenario significantly, which has been our target to date. We really do value feedback and input and it affects our product planning decisions! Tha ...Show All

  • Marco9976 Tool Tip Disappearing

    I have a button for which I set a tooltip using the ToolTip class after finding out that there isn't a ToolTip property for button controls. Here is my code: ToolTip procDescriptor = new ToolTip (); procDescriptor.SetToolTip(newProcessButton, "text" ); procDescriptor.ToolTipTitle = processName; procDescriptor.Active = true ; procDescriptor.ShowAlways = true ; The tool tip works fine until the button is clicked or hovered over for more than 5 seconds. After either of those things, the tooltip never reappears. What's the deal -allen yes Where is the code snippet located Even if you already click something else or hover out of the button ...Show All

343536373839404142434445464748495051

©2008 Software Development Network

powered by phorum