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

Software Development Network >> Windows Forms

Windows Forms

New Question

stopping a oneclick install from running on setup
DropDown Tree Control
Validate Field - Help
Graphics are being erased by other windows or off screen movement...
How to change the color of textbox after set enable to false?
deploying Office 2003 via group policy with Winflp
selecting display/screen device for form how?
Single Key Shortcut for Menuitems
DatagridViewComboBoxCell value is not valid
Disable TabControl Using C#

Top Answerers

MarcvdW
LurkinDurk
Andrew Buyan
LotusExigeS1
Primate101
Bnjneer
franky0101
ytandeta
Jeyaraj N
Trevor E Hilder
Hayden, David
Only Title

Answer Questions

  • SimonOng [SOLVED] color empty cells method?

    Hi all, [C#] I need a method to call and goes through all the DataGridView cells & changes the color of the empty cells to say grey for example. The cells only contain text/string values. private void EmptyCellColoring() { if (dataGridView1.RowCount != 0) { foreach (DataGridViewRow rows in dataGridView1.Rows) { if (dataGridView1.Cell !!! ) // how do I check to see if it's empty & then change it's color : } Thanks for the help. there are a couple ways to check if a cell is empty. He is if the style of the column is a string. If your gris is multi dimentional, you can do a nested foreach on the columns foreach (DataGridViewRow rows ...Show All

  • MarioBR UserPreferenceChangedEventHandler

    Here's my code, what am I missing Dim UserPref As New Microsoft.Win32.UserPreferenceChangedEventHandler( AddressOf HandlePrefChange) Public Sub New () InitializeComponent() UserPref. Don't know how to begin receiving events End Sub Private Sub HandlePrefChange( ByVal sender As Object , ByVal e As Microsoft.Win32.UserPreferenceChangedEventArgs) If e.Category = Microsoft.Win32.UserPreferenceCategory.Screensaver Then MsgBox( "Screensaver Settings Changed" ) End If End Sub Here is my code: Option Explicit On Option Strict On Imports Microsoft.Win32 Imports System.Windows.Forms Public Class MyFor ...Show All

  • Michael Bailey Dialog form is hidden sometimes

    Hello all. In my application I have some form that I show modally. DialogForm frm = new DialogForm(); frm.ShowDialog(); So what's happening sometimes.... frm is "hiding" before the main applciation form. And it looks like that application is frozen (its because frm is active now but does not have focus). Is it a bug in .Net If you open that dialog from a method of your main form, pass the this pointer as parameter to ShowDialog. That makes it modal to your main app. -- SvenC Thanks a lot. Looks like it's working. When is this other form being shown ...Show All

  • mccpres Set Datetime Value - Datepicker

    Hi, I have a datetimepicker control, that when I define a value to save in the datebase it's save correctly, but when I get result to set to the control, it does not shows the value that I selected but the default value ! I've already get the value that is query from the database and it's getting correctly in datetime type How can I solve it Thanks (PS: Sorry for my english) Is it possible your function is exiting at one of the return statements, before the value is set Mark. Yes, I accessed it manually, and its ok,.....If it was wrong it will also appear in the messagebox.... Do you have MSN I can share my desktop with you so you can see it.... No, It's strange isn't it I tryied to go step ...Show All

  • Dr.Virusi how can i bind List<Sale> to DataGridView and bind Sale.Item object to DataGridViewComboBoxColumn

    Hi All , I want to bind Sale object array to DataGridView . this sale object has Item object , so i use this item object for DataGridViewComboBoxColumn. how can i connect object with comboBox I bind List<Sale> to DataGridView. Sale object has ( SaleID , Item object ) ... Item object has ( ItemID , ItemName ) So , i use DataGridViewComboBoxColumn for Item object . At FormLoad() function dgvComboBoxColumn.DataSource = GetItemData(); // populate all row for items. dgvComboBoxColumn.ValueMember = "ItemID"; dgvComboBoxColumn.DisplayMember = "ItemName"; how can i bind itemID of this combobox with Sale.Item.ItemID field... Please help me . if not clear what i mean ...Show All

  • St&amp;#233;phane Beauchemin Question about Logical containers

    What is the best control or method to use when you want a label & combobox to always display, but a third-party control to occupy whatever the rest of the drawing surface might be (dependent on whether the user resizes or moves it about etc.) I used to know this, but wrestling with some fairly arcane object models has caused me temporary amnesia. Thanks in advance! You can Anchor or Dock the third-party control ...Show All

  • Christian Hecht + Value does not fall within the expected range

    I have been doing Clickonce deployments with this project for a while now. All of the sudden I am getting the attached Error.... Any help would be great..... PLATFORM VERSION INFO Windows : 5.1.2600.131072 (Win32NT) Common Language Runtime : 2.0.50727.190 System.Deployment.dll : 2.0.50727.42 (RTM.050727-4200) mscorwks.dll : 2.0.50727.190 (QFE.050727-1900) dfdll.dll : 2.0.50727.42 (RTM.050727-4200) dfshim.dll : 2.0.50727.42 (RTM.050727-4200) SOURCES Deployment url : file:///C:/clickoncetest/Inhallation.application Application url : file:///C:/clickoncetest/Inhallation_1_0_0_6/Inhallation.exe.manifest IDENTITIES Deployment Identity : Inhallation.application, Version=1.0.0.6, Culture=neutral, PublicKeyToken=fd99b4f334ad8b7 ...Show All

  • mikul Text invisible in textbox

    I have a text box to which I'm sending strings to output, but I notice that the text box displays blank and all the text is invisible. How do I make the strings visible / No replies Come on guys, I could use some help here!! Can you post the code you are using. It sounds like perhaps the text is NOT being sent to the textbox, as once a textbox's text property is set, the text will be shown (unless there is some buggy code at work, like on clearing the text on the text change event or something) Matt MSMVP - Visual Basic Its pretty straightforward. Function disp() will be called from Form1 when user clicks a button. // test.cpp : main project file ...Show All

  • Izzz Detect ENTER and TAB keys

    How does one detect if the ENTER or TAB key has been pressed by the user in VB.NET I'm using VS2005. because it's a event argument, not a property ;-) you can implement the keydown event I believe and then look at the KeyEventArgs being passed in. Now, which control is it you are wanting to detect the keypress a textbox or some other control More specifically, Get the KeyCode member of KeyEventArgs. the ENTER is represented by Keys.Return and TAB is represented by Keys.Tab. To answer ahmedilyas' question, it's a textbox control. I actually used the KeyPress event that's why I couldn't get it right, thanks ahmedilyas. And thanks to you too gqlu, you could also use Keys.Enter as ...Show All

  • jaomello Help starting "excel like" app

    I first started programming with VBA in excel and am having a hard time going from that to VB express by itself. Can anyone give me advice on how to start creating an app that works like excel I want to create a layout like excel and enter information into the "cells" and then store that info into SQL. what is the best way to get started, (datagridview, etc...) thanks for any help. Jeff indeed, a datagridview is what you would require to have that kind of a cell grid view, where you can add/remove/edit data and finally update the database for example with the use of a dataset/datatable as a binding source and with a dataAdapter. I hope this gets you started: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=75 ...Show All

  • Argenta Using the button control

    Hi I know this is a extremely simple question, but could you please help me anyway - I am a programmer newbee so I don't have that much experience...but I am a hard working leaner. I have a form (formA) with a buttoncontrol on it (btnOrder) and I want this btnOrder to open another form (frmOrder) when clicked. I know I have to write an eventhandler but no matter what I do, it won't work. Could you please give me tip - I'd be ever so gratefull Kind regards Tina Do you get an error message In VB.NET all objects need to be instantiated including form unlike in VB6 where a form (designer) definition is a static object. frmOrder Form2 = new frmOrder() Form2.Show()  ...Show All

  • badrinarayananv Undo option not working.

    Any changes I make in the designer do not seem to allow me to use the Undo feature. (IE: Edit -> Undo). So for instance if I create a tab control, then delete it, I can't undo that delete action because the undo option is not enabled or allowing me to use it. Is there a way I have possibly disable the undo feature or a way I can enable it again for the designer I restarted Visual Studio a few times and now it seems to be working. Weird behavior though. ...Show All

  • Mark Macumber i want update SQl statment for updating all dataset manually

    hi i want sql statement to update all of the data manually what the statement will be i know the update method in ado.net but i need to write te update statment itself manually which looks like update table1 set ....... i want to update all of the data from this statment how can i write it thanks in advance. I hope this thread & this will help you, http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=169697&SiteID=1         Update TSQL Weaning Developers for Command Builder ...Show All

  • Sandra_bl how to activate back and forward buttons in c# project

    i have developed the project using c#. there i am having back & forward buttons. how to activate that buttons. like in asp.net i can get the options response.redirect(), but here how to do plz give me a example for activate the back & forward buttons. I would assume you made a form for each equivalent web page. So, in the back and forward button, you'd want to display another form. The generic code is: private void btnForward_Click(object sender, EventArgs e) { Form2 f2 = new Form2(); f2.Location = this.Location; f2.Show(); this.Close(); } You'll need to do something with the startup form. If you close it, the app stops running. That is easy to handle in VB but not in C#; try just hiding it... Thread ...Show All

  • paulpayne Setting propertygrid attributes at runtime

    I've been looking for a very simple, straight forward C# example of how to set propertygrid attributes at runtime.  It's the readonly attribute that I'm mainly concerned with.  All of the examples I've come across are just way to confusing for my little brain.  Basically, I want to turn the readonly bit on or off for a particular property depending on what another property value is set to.  So, if property a == x then property b should be readonly. Any and all help will be greatly appreciated. I have done this by implementing ICustomTypeDescriptor on the component and return the desired PropertyDescriptorCollection with the altered attributes (Browsable, etc.) I don't know ...Show All

414243444546474849505152535455565758

©2008 Software Development Network

powered by phorum