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

Software Development Network >> Windows Forms

Windows Forms

New Question

Localize messageboxbuttons
Custom User Control (drawing outside the parent Region)
KeyPress is handled before KeyDown?
list box Items
TableAdapter Select Command
Adding icon inside TextBox
update
Save a file???
Resizable form without borders
deploy nonav uninstall silently

Top Answerers

Brian Kramer
MooseNSquirrelz
ThE ViKinG
sagan69
PeteJM01
Caioshin
Julenka
avfarci
Z3rep
Boulderdude
sitemap
Only Title

Answer Questions

  • Goran _ Windows Forms Connection String Encryption

    I think we were talking about window application here, not web app. In web app, there are tools available to do all these steps. But for Windows app, we have to do it ourselves if we would like to use Enterprise Library 2.0. The thing is, if you want your application to be able to connect to the database directly at all, there is no way to stop anyone from getting the username/password. Either it will have to be present somewhere in memory unencrypted, or at the least decryptable using some standard algorithm which will have been cracked and documented somewhere (unless you write your own, and then that's still only security by obscurity - there's a chance someone will still be able to get at it). If you ...Show All

  • StevenR2 How to create and Invisible Groupbox

    I am creating an application for a Tablet PC that has a flash movie playing in the background and looks for input from the user (from a writing area I have defined in a groupbox on the main form). I am curious how to make this groupbox invisible but still usable so that I can show it and unshow it without anyone knowing the difference and it will still collect the pen input. Thanks! In thinking about this a little more, you will probably want to create your transparent form with a title bar and the same border style and window controls (close, maximize, etc.) that your main form has. When you've done that you can just make your transparent form the same size as your main form. This will give you a way to capture the user's interact ...Show All

  • Peppermint Combo box

    hi, I hav a combo box..........wen the users types in dat.....i will compare the data typed by the user to a list i hav...............but wen the chars matched in the list the whole string is getting displayed.....and the cursor goes to the last char in the combobox..........but i want the cursor......after the char typed by the user, even if the string matches to list i hav and gets diaplyed. THNX in ADVANCE Sudhakar i want it in vc++ you have get the current cursor postion in the combo box. and then use it SendKeys.Send("{left " & combobox1 .Text.Length - Buffer & "}+{End}") //// here buffer is the position of the cusor in the ...Show All

  • osamaT Calling a Dialog Button Control

    I have a dialog box that has an OK and Cancel button. The OK button returns an OK dialogresult to the calling program. I want the Doubleclick on the datagrid to send the same result the OK button. How can I call have the Doubleclick event do this I would like to use the same code as the OK Clicked event if possible. Thanks Hi, I guess in this case it might be best to invoke OK button's Click event by calling it's PerformClick() method [e.g. okButton.PerformClick();] from your DG's DoubleClick event. Andrej Hi, You can set the forms dialogresult from within the DoubleClick event: private void dataGridView1_DoubleClick( object sender, EventArgs e) { this .DialogResul ...Show All

  • chrisc12345 Publish Failure message generated on Failed Build - Logic of it?

    Question I am trying to shore up my click once deployment knowledge and one hole is when I have a failed build due to a code error, the task list has these two warnings Warning 1 Files could not be downloaded from http://{My machine}/PAS%20Viewer/. The remote server returned an error: (401) Unauthorized. 1 1 PAS Viewer Warning 2 Unable to view published application at http://{My machine}/PAS%20Viewer/publish.htm. 1 1 PAS Viewer Two issues to set me straight: Why is the IDE telling the user that it cannot publish on a failure; isn't that obvious Is it actually publishing on each successive builds I thought the user had to manually publish Platform .Net 2 C# IIS6 advTHANKSance ...Show All

  • PDCS trigger an event

    HOw do I trigger an event from coding thanks. Regards Alu In most situations like this it is better to not trigger the event but to instead move the code into a procedure you can call from anywhere, event or other procedure. Otherwise you are going to have to pass each of the event parameters and end up with quite messy code. Here is a more complete example from the documentation: http://msdn2.microsoft.com/en-us/library/w369ty8x.aspx Michael Blome Visual C# Documentation Team Here's an example: class Test { public event EventHandler SomethingHappened; private void RaiseSomethingHappened() { if (SomethingHappened != null)     SomethingHappen ...Show All

  • Paul Stovell How to Create a Download Update Form?

    Hello, I want to know how to use the System.Net.WebClient in my application. Here is the part of the code: System.Net.WebClient client = new System.Net.WebClient(); client.DownloadFile("http://updates.com/index.xml","c:\\update.xml"); That would download the file "index.xml" and save it in the local computer in drive C under a new name "update.xml". I would like my application to determine the file size of the file to be downloaded. I would like to make a progress bar showing the percent downloaded in the file in relation to its file size. Then after, when the download finishes, a MessageBox will appear stating that the download is completed. Even if the progress bar is not included, that wou ...Show All

  • Krutika listing files whose folder is in selected directory.

    private void button1_Click( object sender, EventArgs e) { string s, p; s = textBox1.Text; listBox1.Items.Clear(); listBox1.DisplayMember = "FileAttribute" ; foreach ( string p in System.IO. Directory .GetFiles(s)) listBox1.Items.Add(p); } I can have a list of the file names in adress of string s.(folder of string s) But I want to have a list of files whose folders are in string s's folder. simply do: .. . string [] filesInCurrentDir = System.IO.Directory.GetFiles(currentDir); foreach ( string currentFile in filesInCurrentDir) { this .theListBox.Items.Add(currentFile); } or foreach ( string currentDir in System.IO.Directory.GetDirectories(path)) { for ...Show All

  • Pockey Control dynamically added to panel is not generating events

    I have a splitter container (SC) that has 2 adjacent panels (P1) and (P2). P1 has a DeviceTreeView control that generates events that are handled by the top level easily.However, in P2 I want to dynamically create different views so I create panels (Px) dynamically that I can switch back and forth from (works fine - events to change panels are triggered from the tree in P1).The problem arises when I put controls into the different panels, Px. The controls are not handling events that they have been configured for. The events are being handled at the container level and never get to Px.This is a windows application written in c#. The events for the controls are being associated with handlers that are in Px and are added (+=) directly after ...Show All

  • kinpin9 Add values in DataColumns rows

    I have a Cost column that is part of a DataTable....And when i add values to the rows I want to add them up and return the result but i am getting stuck...this is where i began...can anyone help me out //Globals System.Data. DataColumn _column2 = new System.Data. DataColumn ( "Cost" , typeof ( decimal )); private decimal _cost; public decimal AddCostColumn() { foreach (System.Data. DataRow row in _column2) { for ( int x = 0; x < row[_column2]; x++) { _cost = row[x].ToString(); } } } not quite... from what I understand, you want to calculate a field value in the datatable correct if so, we use the name of the field in the datatable to calculate the field. ob ...Show All

  • Christian Sparre Stopping a form appearing on the taskbar

    Whenever I open Form1, Form2, etc - each form shows an icon in the taskbar. How can I prevent this from happenning Thanks ! Ahhh, thanks very much Hi, You need to go to the Form in Designer view and change the value of a property called ShowInTaskBar to false. Alternatively you can change it via code by doing this.ShowInTaskBar = false; Hope that helps, Amol. you could set the form's "ShowInTaskBar" property to false. Does this work for you ...Show All

  • DarrenARBell Get Rid of Warning Screen in Setup Program

    If I use the setup.exe that comes with the publish, a warning dialog comes up saying that "Publisher cannot be verified. Are you sure you want to install this application " Is there anyway I can get rid of that screen If you clicked 'More information...', then you saw description of your colored shield icon and UAC's description for that item. Only way you to overcome the 'warning dialog' is disable the UAC alltogether, what I don't recommend. More UAC informations is in the Windows Vista: User Account Control Regards Peca There are two things going on here: 1. If you sign the program with a certificate the message will show the name associated with the certificate, typically a company name. 2. ...Show All

  • Phonics3k text field date formatting.

    Hi, Currently the below text box prints the date 12/13/2006. But it should be MM/DD/YYYY. Could some one please show me how to change the formatting. Thanks. TextBox txtArrival = (TextBox) (e.Item.FindControl("txtArrivalDateAdd")); if(txtArrival != null) arrival = Convert.ToDateTime(txtArrival.Text); if (startdate != null) { ((Label)dvSponsorship.FindControl("lbldate")).Text= string.Format("{0 d-MMM-yyyy}", startdate.Text).ToString(); }Hope this will work I'm confused as 12/13/2006 is in MM/DD/YYYY format as there is no 13th month! ...Show All

  • lachlanj MDI Client should manually register in menu without beeing instantiated

    I build an MDI Application. Each different kind of MDI Child should be able to selfregister in a global menu bevor a concret Instance is created. Is this possible, and how. The best form me would be a base class for all MDI Childs where this functionality is covered. I am looking forward for your help. Thanks. thanks, that' s completely what i mean. I dont wanted to hardcode it, because i thougt it was a better way to build the system in that way. Can you give me some advice of how i can implement this solution with a sepcial Interface. Can i create a basic class for my ChildForms which implements this Interface or is it better to create the ChildForms like "public class SomeClientTestForm : Form, ...Show All

  • Lawrence Parker Custom Control Click Event

    I Have created a custom control which has a couple of labels on it and a progress bar. When i use it on a form, i want to assign a click event to it, so that if you click anywhere on the control, its registered as a click on the control. Adding the control.click event to an eventhandler doesnt seem to work. What am i doing wrong What do i need to do to get it to do what i want Cheers This is exactly what i've spent a long, long time looking for, however, could anyone tell me of how to achieve exactly the same in VB I thank you in advance for any information (or even pointers) you can give me. Sorry, should have mentioned that i'm using c#. I dont use vb, so have n ...Show All

525354555657585960616263646566676869

©2008 Software Development Network

powered by phorum