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

Software Development Network >> Windows Forms

Windows Forms

New Question

adding another setup to the installer and adding shortcuts to it
How can I check decimal point in TextBox ?
Locked up .
Form.InvokeRequired fails
Datagrid column width and row color.
Read and view PDF files like adobe activeX
Combobox items Adding!!
Deploy VB.Net application with Resources
Help needed :clickonce deployment
from string to form

Top Answerers

0xDEADBEEF
fly2moon2
imj
trogdor2323
Leaf.
Karthikeyan
h1
Woyler
EugeneB
Rabtok
ORBacus
Only Title

Answer Questions

  • shivali.sadavarte Need to abort uninstall based on user input

    Hi, I am creating an MSI using Visual Studio 2005, setup wizard. the install and uninstall are done silently. One of the uninstall custom action is to stop a service (using a VB script, i basically open up a shell and execute a net stop), the service name is given as parameter of the silent uninstall, i want to be able to abort the uninstall if the service name is invalid or null. Any suggestions Thanks Dinesh A cheesy way to do it is give the service name to a new watch process that kills the uninstall process if the service name is invalid. Since there is no commit it wont matter if the msi process die or not. A watcher process is a good way to get around msi limitations like not being able to run 2 ...Show All

  • MarkBosley How can I change the Font.Bold in Treeview Control

    Hi I have a Treeview Control that I load all root Nodes and its Child, but now I want the Root Node Font to be Bold and the Child to be Normal, How can I do this Your Help will be highly appreciated. PJ. van de Sande wrote: You can set the NodeFont property of your Root Node Font. Thanks, thats what I needed Ian Mellors wrote: Hi, Hope you all don't mind me jumping in on this thread, but I have a very similar question, I would like to change the font (maybe bold, maybe change the font color) of the CHILD node text. Is this possible (I guess it is!) You can set the ForeColor property of the TreeNode's you want to change. MisaSimic wrote: Hi Sibusiso, Before you Adde ...Show All

  • mkamka sorting a sortedlist

    Hi All, I have a problem in my windows application with C#.net. I have around 50 Id and Name pairs and need to sort them after putting into a SortedList. In my data, ID is not unique. SortedList< object key, object value> So I can't put ID in place of Key( Key must be unique in sortedlist). I have created a class with Id and Name variables, passing the object in place of value, and some integer index in place of key. Now the Question is, how to sort the SortedList on ID. Please me help out, Thanks. One of the constructors of the SortedList take a IComparer as an argument. You can use this to sort the list. Keep in mind if the icomparer returns a 0 you will get an error about adding a ...Show All

  • MrHorizontal Formatting Rows in Datagrid based on data in the coresponding row of datatable

    I want to format Rows in my Datagrid based on data in the coresponding row of its datatable (including columns in the datatable which are not displayed in the Grid). I have set up a DataGridTextBoxColumn class and it works. My problem is in the eventhandler that decides which colours to use I have the following code dgrid.CurrentRowIndex = e.Row 'select the row of the datagrid that is being formatted 'Now get the coresponding row in the source datatable Dim bm As BindingManagerBase = dgrid.BindingContext(dgrid.DataSource, dgrid.DataMember) Dim dr As DataRow = CType (bm.Current, DataRowView).Row 'now based on data in the row of the datatable (not necessarily displayed in the datagrid) format the row If dr.It ...Show All

  • MarikaT How to check Modulus 23 in the field

    Any one please send or let me know the VB (.net) code for the following. I have a form – one of the ‘field’ in the form must be validated as follows. 1. The modulus check as contained in Appendix B to this document must be done. 2. All of the first nine characters must be numeric. 3. The 10 th of the 11 characters must always be ‘M’. 4. The last of the 11 characters must not be ‘I’ ‘O’ or ‘U’. 5. UTRN cannot start with 5. AppendixB Modulus Check required to ensure validity of a specific reference number MSD Reference Validation The format Modulus check is derived as follows: Character Position 1 2 ...Show All

  • FassaBortolo How can I make update version for application which was signed with certificate now expired?

    If I change expired code signing certificate to new one and publish updated application, client will fail to launch. And code signing fails if I try to use expired certificate. How can I make update version for application signed with old certificate So, I'm not sure exactly where the ClickOnce runtime team is on this issue, I know we've had a few discussions about it. I've sent mail to the team to see where they are.  We do appreciate that this is a serious issue.  I'm sure you can also appreciate the challenge of this issue as well.  I'm not a certificate expert, but I'm pretty sure the technical relationships between XML Digital Signature content, 1-Year expiring certificates, and ...Show All

  • James A. Gayhart DataBinding and Listbox

    Hello All, I am having a bit of trouble with a Listbox and the display member databinding. Whenever I databind to the listbox, the only text that comes up is System.Data.DataRowView. Any ideas what I'm doing wrong Me .ListBox1.DataSource = myTable Me .ListBox1.DataBindings.Add( New Binding( "DisplayMember" , myTable, "Name" )) try that: Me .ListBox1.DataBindings.Add( New Binding( "DisplayMember" , myTable, "Name",true )) Thank you, I found the answer here http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=566005&SiteID=1 ...Show All

  • cues7a How do I: itemize a row in a DataGridView control (used to be the ItemData property)

    I've read through the FAQ, can't seem a way to do this: ....I'm bringing in hundreds of rows from an SQL Server .MDF file, and placing them into a DataReader (.ExecuteReader method does this).....Want to display those records in a DataGridView control........Also want to left-click on a record and have a handle to its underlying index (in this case, the CustomerID integer value). ...QUESTION: Is there a way to add an ItemData (obsolete) to each row of data ..Here is the way I did it in old VB6: control.Add datareader!CustomerID & datareader!CustomerName control.ItemData(control.NewIndex) = datareader!CustomerID ...Then, when you left-click on that row, you had the underlying CustomerID ready :) Any ideas how I c ...Show All

  • Jessica Alba Combo Box problem

    Hi There, I have simple form which has 2 combo boxes. Both combo boxed display list of account numbers from the database. Now the problem is......... when I change the account number in one combo box, account number in the othe combo box is changed automatically to same account number which I select in the 1st one. Here is the simple code : -------------------------------------------------------------------------------------------------------------------------------------------- using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; using MySql.Data; using System.Threading; using System.Configuration; namespace Ac ...Show All

  • UlliDK Creating my own TabPage class

    I have a tabcontrol on a form. If I add tab pages and add controls to them in Visual Studio the controls become members of the main form and the main form will also handle all events from all controls on all tab pages. I want to create my own TabPage class that handles everything that happens in the TabPage to avoid having all code in the main form. I created MyTabPage class by adding a new Component to the project and changing the base class to TabPage. I am able to drag stuff from the Toolbox onto my TabPage in Design mode. In the designer for the main form I added another tab page to the tab control and changed the type from TabPage to MyTabpage in the main form code. However, I am not able to see any controls in the tab when I ...Show All

  • Escobar4Life Why isn't CellStyle Format preventing alpha characters in Number format column?

    Hi all, I'm a bit confused here. I set the CellStyle Format for each column in my datagridview to be: 1) Number 2) Date 3) Currency 4) Just Text. So why are letters allowed to be typed into the Number column, or the date column If I'm using the wrong property, then what would be the correct one I don't want to use validation - b/c then it's too late. I want to prevent a non-legal character from ever being written into the cell. Thanks. See this thread . The design goal of the DataGridView was to create a flexible grid control with all the most common features, while recognizing that almost everyone will have special needs that can't be satisfied by the common features. The control had to cover ...Show All

  • Jonas Pranckevicius Form Hide triggers Form Closing, why ???

    Hi I am working on a legacy code [but managed, C++/CLI] project and I have add a popup dialog during the initialization process to show the initialization progress. The initializtion is one giant piece of code and must not be changed. Initialization series of events are fired for each component and the status popup dialog must listen to those events and disappear after the initialization is complete. Same thing for uninitialization. So i have created a thread just before the init starts and created the popup dialog [StatusForm]. That form listens to the events fired during the init process. DWORD WINAPI StatusFormThread(LPVOID threadParam) { try { System::Diagnostics::Trace::WriteLine("Starting the Status Form UI Host Threa ...Show All

  • jschumann.net VB .Net 2003 DataSet

    I have a VB .Net 2003 program that uses two forms. In the second form, I am trying to use ADO.Net to work with an Access database. When I add the OLEDBConnection and OLEDBDataAdapter objects to the second form, everything works. However, when I generate the DataSet, the project will not compile because of two references in the second form's code. The first form in the project is StartForm1, and the second is EventForm. I accepted the default name for the DataSet when I generated it, DataSet1. The following lines are the ones causing the problem, and they appear in the EventForm.vb file: Private components As System.ComponentModel.IContainer (other Friend WithEvents statements) Friend WithEvents DataSet11 As StartForm1.DataSet1 ...Show All

  • gafferuk How to Access Components from different Form

    I am a newbie to C#, I created a simple WinApp. in mainForm.cs has a spliterPanel1 and textBox1 in pannelSpliter.panel2. Then I added a userControl.cs, it has a button1 component with mouse Click even. However I got a compiler errors " The name 'textBox1' does not exist in the current context ". Could anyone give me some hints how to access component from different from Thanks in mouse Click even, private void button1_Click( object sender, EventArgs e) { textBox.Text = "text" ; } UserControl: namespace WindowsApplication1 { public delegate void UserClick(object sender, EventArgs e); public partial class UserControl1 : UserControl { ...Show All

  • svarghese Why does the ClickOnce 'Install' button generate an xml page instead of starting download?

    Hello, I just published my application for ClickOnce deployment to my web site. When I click on the Install button on the publish\publish.htm page on my website, the browser returns the contents of an xml file and does not start the download. Does anyone know what might be causing this Any help or suggestions would be greatly appreciated. Thanks! Jason already tried that to everything is set and all, works great with IE7 but still the same problem with IE6 users. So the conclusion is that there is a problem with it not working in IE6, someone said it has something to do with the Active XML i hope someone can come with a answer CyberOps, My ClickOnce applica ...Show All

535455565758596061626364656667686970

©2008 Software Development Network

powered by phorum