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

Software Development Network >> Windows Forms

Windows Forms

New Question

how do i draw lines on a Panel?!
"the path is not of a legal form" error
Check versioning of client applications
ClickOnce Issues with Manifes and Signtool
App. runs on Win XP, not on Win 2000
Invalidate() Partial Paint
windows forms
ToolStripSplitButton BackColor does not work.
Datagridview - display row vertical
Handling unique column constraint errors

Top Answerers

NeW2VB
Justin-WNG
EmekaAwagu
AlucardHellSing
ahmedilyas
RogueProgrammer
sathish_sh
Sergiulica1
tuncali
supagu
Topix: Theater
Only Title

Answer Questions

  • re infecta Win Vista - Setup Project Deployment

    I have a Setup Project Deployment in VB.NET 2005 for my application In that project I use a Custom Action with a argument "\install" to install a Auxiliary Tool that my application needs in order to run It works fine in Windows XP...but in Windows Vista my setup crashes when it tries to install that auxiliary tool How can I fix this in order to be compatible with Vista another question : How can I change the custom action in order to install auxiliary tools by users choice I don't know, but it crashes when it tries to install a auxiliary program And now..I'm stuck again...I finally managed to get a custom dialog with a checkbox, but the installer doesn't do what I want ...Show All

  • bkana How to get same Dateformat to a textbox from datetimepicker?

    Hi I am using VB.net or VS 2005 to get the date display in a textbox from datetimepicker Datetimepicker1.Format = DateTimePickerFormat.Custom Datetimepicker1.CustomFormat = "yyyy-MM-dd" Textbox1.Text = Datetimepicker1.Value The above works fine. I have different question now. The format in the Datetimepicker is "yyyy-MM-dd" BUT I am getting the dateformat in the textbox is "yyyy/MM/dd". So how can I get the date format of ("yyyy-MM-dd" ) in my textbox. not yyyy/MM/dd You are alomst there.... use dateTimePicker1.Value.ToString( "yyyy-MM-dd" ); Hi Henock Thanks a lot. Vaish ...Show All

  • AlexBB Split string to datatable

    Hi, I have large string. I want to parse it by delimeter and input to datatable. All lines in string are ended by "\n" (vbcrlf) character. The delimeter is specified by user (like comma, tab, space or something else). So how can I do this Thank's Alexei Actually, you can add column to a DataTable using DataTable.Columns.Add method, for example DataTable dt = new DataTable ( ) ; dt.Columns.Add ( "Name", typeof ( string ) ) ; dt.Columns.Add ( "Age", typeof ( int ) ) ; dt.Rows.Add ( new object [] { "John", 25 } ) ; dt.Rows.Add ( new object [] { "Mary", 21 } ) ; hope that helps can you try this; define and create a datat ...Show All

  • shax in this function i want to get all buttons

    i want to get all buttons in the form and set the font color and forecolor. Public Function ButtonSetup( ByVal formName As Form) Dim btn As Button Dim ctl As Control Dim i As Integer Try For i = 0 To formName.Controls.Count - 1 For Each ctl In formName.Controls.Item(i).Controls If TypeOf (ctl) Is TextBox Then Dim Button As Button = ctl Button.BackColor = System.Drawing.Color.RoyalBlue Button.BackColor = System.Drawing.Color.Red End If Next Next Catch ex As Exception End Try End Function Public Function ButtonSetup( ByVal formName As Form) For Each ctrl As Control In formName .Controls If (c ...Show All

  • venkee Bootstrapping DirectX runtime with installation

    How can I include DirectX runtime with my installation and make sure it is installed on user machines while my app is being installed Thanks in advance you need to use the DirectX redistribution package. Take a look at this thread: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=731903&SiteID=1 Thank you. So I'm assuming DirectX 9 Augl 2006 is the latest runtime (52MB sheesh) http://www.microsoft.com/downloads/details.aspx familyid=a1788990-5e11-4ae2-b5e7-cc576822aed4&displaylang=en My question was more about the actual install. How to get my app to check end users machines and if DX9 is missing then install it as part of my app's installation. Has this got to do with ClickOnce o ...Show All

  • Geokri URGENT HELP - Binding Context for Combobox and TextBox

    C# - Windows Application --> VS 2005 OLEDB Connection (Combobox) (TextBox) CustomerID Customer Name C001 Name 001 C002 Name 002 ---------------------- Hi, I need help on binding combobox and textbox. I bind a combobox to Customer Code (select the customer code) and textbox to Customer Name. As shown above, when I select "C001" at the combobox, the text box supposed to show "Name 001" How do I bind the changes together this.editCust_Code.DataSource = customerDataset1.Tables["Customer Database"]; this.editCust_Code.DisplayMember = "Cust_Code"; this.editCust_Code.ValueMember = "Cust_Code"; this.editCust_Name.DataBindings.Add("Text", this.customerDataset1, "Customer Database.Cust_Name"); private void editCust_Co ...Show All

  • Alba Control visiblilty of main form component after the close of pop-up win form

    Dear All, My problem here is that first I have a combo box. Upon selecting a value of the combo box its visible set to false. Then at the same location the visible value of a text box is set to visible=true. The problem is that if the value which is keyed in the texbox is below a certain range then a pop dialog or winform will appear for confirmation of acceptance of the lower value. Upon making the confirmation via the pop-up win form the control gets back to the main form. Now I want the combo box to be visible=true and textbox visible=false when the control is pass back from the pop up winform to the main winform. Thanks. .net sukbir, the first parameter to ShowDialog takes the parent form, ...Show All

  • Badpig Labels Arghhhhhhhhhhh

    I dragged a query (data view) from the Data Source panel onto the design pane and then renamed two labels, associated with two check boxes. This form just show data so the idea was rather than show a check box make both the label an box visible=false and then if the checkbox is checked make the label visible=true. However VS no longer likes my labels. in Form1.Designer.cs... #region Windows Form Designer generated code private void InitializeComponent () { System.Windows.Forms. Label lblEmployee; lblEmployee = new System.Windows.Forms. Label (); lblEmployee.AutoSize = true ; lblEmployee.Location = new System.Drawing. Point ( 9, 96 ); lblEmployee.Name = "lblEmployee" ; lblEmployee.Size = new System.Dr ...Show All

  • db_guy Overriding IsInputKey causes Windows Default Beep

    Can this be stopped I created a textbox to detect when the user presses the arrow keys, tab key, or Shift+Tab, and it detects and handles the keypresses just fine, but after every press there is an annoying beep. I've been searching for the better part of an hour to find an answer before posting here. Hopefully it's a simple fix! This is the code I used for overriding IsInputKey: protected override bool IsInputKey(Keys keyData) { bool ret = true; switch (keyData) { case Keys.Left: break; case Keys.Right: break; case Keys.Up: break; case Keys.Down: break; case Keys.Tab: break; case Keys.Shift | Keys.Tab: break; default: ...Show All

  • project2n5e0o1 DataGridView wont show new entry..until i run it again

    Guys..i'm new here...and new with VB2005..im having this problem..that my datagridview wont show the new entry(i have a reg page) until i rerun the program...can anyone please look it up..tnx very much..could really use some help.. Form1.vb: Imports System.Data.OleDb Public Class Form1 Private AccountsDataSource As New BindingSource(My.Application.DAL.dbDataService, "Accounts") Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Me.dg.DataSource = Me.AccountsDataSource End Sub Private Sub dg_CellContentClick(ByVal sender As System.Object, ByVal e As System.Windows.Forms.DataGridViewCellEventArgs) Handles dg.CellContentClick End Sub Private Sub Fill_Click(ByVal s ...Show All

  • Twanks Creating image album/list

    Hi, I'm trying to create something like this: http://img390.imageshack.us/img390/6451/smilieshn6.gif Basically it would load all images from a folder I specify and create this image list. Should I dynamically create PictureBox elements or is there a better way to do this My second question is how to get Image format (jpeg, gif, png...) if I have image path but file extension does not match its type. For example: all files are named *.test. Thanks :) Thanks, but that wouldn't work with GIF animations, right Hi, You can use the ListView control in either small icon or large icon mode. It's really easy. Charles Load an image thu ...Show All

  • Soumya B how to share a folder with read only permission

    Hello I have to share a folder with read only permission while installing an application. Any idea how to do it. I tried write a Installer class and used NET SHARE command. But it is sharing the folder with full permission. Please help Matt Try the directory class in the frameworks. Be sure to read the general directory class for more info, but you can start the the SetAccessPermisssions method : http://msdn2.microsoft.com/en-us/library/system.io.directory.setaccesscontrol.aspx ...Show All

  • pratyusha kothi Launching ClickOnce applications

    hey, my clickonce application does not get installed from the server. A strange script pops up when I click INSTALL button.why does this happen Can u suggest some free web servers for deploying ClickOnce applications Hi, does this strange script look like an Xml For ClickOnce to work, application server should have the correct MIME types set up [see this thread for more info]. I believe all web hosting providers, offering ASP.NET 2.0 hosting, should support ClickOnce deployment... However, to be sure, check this with your hosting provider before uploading your application. Andrej ...Show All

  • sjschoenberger windows forms

    how come when i use this.hide on a certain event then when i load this.Activate() on the form_load event , it will not load back the form that i hide.... what want to do is when user go to the other form hide the current form and when user close the form show back the form that has been hide.. how can i solve this i try the show dialog it seems that it just close it and never show back the previous form below is my code: this.Hide(); Employees emp=new Employees(); emp.ShowDialog(); when it show the emp form and i close it, it wouldn't show back the previous form this means the current class or form, so to show another form, you must use its name instead of this , there ...Show All

  • DrLectEr ComboBox with List<CustomClass> Datasource problem.

    I have a combobox which is bound to a List<CustomClass> (i.e. list of objects of my own custom class type) through its DataSource property. When the datasource is initially set, the items are filled out as expected (i.e. reflecting the items in the list), however my problem is that if i then add an item to the list after it has been bound to the combobox then the combobox items arent updated to reflect the change. How can i solve this I have tried to refresh, update, invalidate etc the combobox, but they all just deal with the UI/drawing side from what i can tell. Thanks in advance Paul e.g. List<CustomClass> exampleList = new List<CustomClass>(); exampleList.Add(new CustomClass(0)) ...Show All

454647484950515253545556575859606162

©2008 Software Development Network

powered by phorum