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

Software Development Network >> Windows Forms

Windows Forms

New Question

How to stop an autoscroll event on a panel?
Parent and child form problem!!
Autocomplete
Click once install error 'value not within range'
how to create a custom control acting like a container in the designer?
PropertyGrid Reset context menu
Control for data lookup (high data volume)
updating label in main form from a thread
How to Photo Printing with Fullpage fax print and fullpage photo print programatically?
How can I make columns in listbox?

Top Answerers

HSBF Lewe
Lukasz Tarkowski
AlexBB
mohd sufian
renealejandrov
Ali Majdzadeh
bhavu
maliger
geovana costa rocha
mnavkum
sitemap
Only Title

Answer Questions

  • JoneLee cause a property to display "builder" button to browse for folder ?

    I'm writing a custom control. One of its properties is a directory name. I'd like the property sheet to display a "build" button that--when clicked, displays the standard Browse for Folder dialog. I have no idea how to do this. Any help getting started is appreciated. Good job Joey. I wasn't sure if that could be done. This is the real answer. :) I don't know if you can call the folder browser directly, so you might need to research that some, but you can do what you want by: Creating a custom editor for your property derived from UITypeEditor (Look at help for this guy for a good sample) public override UITypeEditorEditStyle GetEditStyle(System ...Show All

  • sveroa Text Color problem

    Hey, Below is the code I did to make the text color change, it does not give me any errors but it wont change the color of the text when I test it...here is the code: private void textColorToolStripMenuItem_Click( object sender, EventArgs e) { RichTextBox thisrichtextbox = GetCurrentTextBox(); colorDialog1.Color = thisrichtextbox.ForeColor; colorDialog1.AnyColor = true ; if (colorDialog1.ShowDialog() != DialogResult .Cancel) { colorDialog1.Color = thisrichtextbox.ForeColor; thisrichtextbox.SelectionColor = colorDialog1.Color; } } Thanks :) I believe that's because your ColorDialog1's Color is set (again) after dialog is closed. In the end,&nbs ...Show All

  • Xzarian Regarding changing Font size and the application getting crashed.

    Hello all, I am facing problem which is very strange.This is regarding the Changing the system language to Dutch(Netherlands) and dynamically chanfing fontfamily to "verdana" and fontsize to a floating point number then the application crashes.Can anyone help me regarding this. If font size is an integer it doesn't crash. Can you post the code that is causing the problem along with the details of the locale being used and the font information Additionally please provide any error messages and call stack information that is generated when the application crashes. Michael Taylor - 1/9/07 http://p3net.mvps.org ...Show All

  • Leedrick_ memory mangement in windows user control

    exposed for com interop The Application loads my control. When the user clicks on next page in Application, my control gets a release event and i call the dispose method and release all instances and set instances of objects to null. I then call System.GC.Collect() I assume everything is released from memory at this point and the user is on Page 2 in the Application. However if user decides to get back to PAge 1, my control does not even load and I assume it has to do that it has some incom,plete memory refercne to the first time it was loaded. What could i be doing wrong Is there anyway to chek the stack/heap/,memory after the user is on Page 2 Thanks GC.Collect() does ...Show All

  • SEC Steve 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 Hi Henock Thanks a lot. Vaish You are alomst there.... use dateTimePicker1.Value.ToString( "yyyy-MM-dd" ); ...Show All

  • prog.gabi ListView Items Question

    Hi folks, I'm wondering how to get a ListViewItem with just it's index. Can anyone tell me the method for this   -Zero Strange, but the code you folks quoted above doesn't seem to work: listViewFilters->Items[0]; Produces the compiler error, " c:\Documents and Settings\Zero\My Documents\My Visual Projects\LogCopy\dlgFilterList.h(268) : error C2845: '[' : cannot perform pointer arithmetic on __gc pointer 'System::Windows::Forms::ListView::ListViewItemCollection __gc *'" The project is in Managed C++ under Visual Studio 2003. Strange problem: private void button1_Click(object sender, EventArgs e) { ListViewItem ...Show All

  • jwagner20 Implements IBindingListView Problem

    Does anyone have a VB sample of a collection implementing the  IBindingListView interface. I need to make the filter option availabe from the BindingSource for my objects. Thanks Fair enough Ken, but what of the merit of my filtering delegate idea I'm not fishing for compliments here, or dishing out insults. I'm objectively trying to find a better, more flexible, alternative to parsing filter strings, crudely or otherwise :-) I'd like an example too. Thanks. I started working on such a beast yesterday, which resulted in me stumbling across this thread. This is my first post ever, so if someone already knows of a full&nb ...Show All

  • marcusadolfsson String with color

    Hi all, Anyone knows how to put some color to string output For example, I have this output in my listbox: string value1; string value2; myListbox.Items.Add(String.Format("{0} - {1}", value1, value2)); and now I want to color value1 red and value2 blue. How can I do that Idea/suggestion are very much appreciated. Regards. thanks guys, i guess there is no way i can format my strings with color. using ownerdrawn listbox is a way to do it. btw, thanks wang chi for the code. nice for my other apps. You need to make your listbox ownerdraw, list box items don't have colors, I don't think. Hi, The string itself will not record the information of ...Show All

  • neo1000 Set SingleMonthSize

    Is there any way to set the SingleMonthSize of the calendar control in C# I wish I can increase the size of the calendar but apparently I were not allowed to do that. You can not directly adjust the size of the monthCalendar, set the Font size of the calendar instead, it would auto-size the monthCalendar to fit the font size, by default the font size of monthCalendar is 8.25, set it to whatever you want. for example: Font f = new Font ( this .monthCalendar1.Font.FontFamily, ( float )10.2); this .monthCalendar1.Font = f; Thanks Zhi-Xin Ye. ...Show All

  • arturm TypeDescriptionProvider attribute is ignored with generic Form

    I am trying to create a generic form that can be designed in the VS designer. I found an article (http://www.urbanpotato.net/Default.aspx/document/2001) that fixed this for an abstract form and now I am trying to do the same thing with generics. But it seems that the TypeDescriptionProvider attribute is ignored when the Form is generic. The message box does not popup when I enter the designer (and of course the form cannot be designed). But when I remove the <T> from the generic form (and the <object> from the derived) the message box popup! Shouldn’t it always popup even if the class is generic or am I missing something Here is my GenericForm: [TypeDescriptionProvider(typeof(GenericFormProvider))] public class GenericForm< ...Show All

  • Keith Newton how to get the name of the image in Picture box

    Hi i have a small problem.I saving an image that is displaying in the picture box. i already has a default image in the picture box before capturing the image from a webcam name default.jpg my problem is i want to know the name of the image so that i will ensure whether i'm saving the newly captured image or the default image. hope i conveyed my problem correctly.looking forward for a solution -regards GRK You can store the file name information in the Tag object, something like this: pictureBox1.Image = Image.FromFile(@"D:\test.jpg", true ); pictureBox1.Image.Tag = @"d:\test.jpg"; Then the Image.Tag property can be retrieved as a symbol whether it's a default image or not, of course yo ...Show All

  • Esther Fan MSFT Combobox question

    How can I disable a combobox, while show it as normal instead of being gray Thanks in advance. You could add the items of the combobox using code, and only when you want the user to be able to access them. http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=768969&SiteID=1 Threads have been merged, please do not duplicate post. I have also given a response to the question hi there, The problem is when you set selectedIndex = -1, the combobox text will become null. I want the text unchangeable. Thanks. Hi Jun, You would have to use: this.myComboBox.readOnly = true; Good Coding! Javier Luna http://guydotnetxmlwebservices.blog ...Show All

  • bkohler Concurrency violation help me please

    hi i use vb.net 2005 and an access database i connect to one table and change many things on the table and then save it again i use the disconnected mode i disappointed i try to solve the concurrency violation like the msdn said (get a fresh copy of the table and merge it to the worked one)but it sometimes save and sometimes not !!!!! although im one user for the database help me thanks in advance. any body there !!! any help guys this problem some times ocuurs and some times not !!!!!! thanks. any help guys hi any help in this problem does any body heared about that thanks for reply the database is Access database xp 1- the table structure contains autonumber field and 4 string fields ...Show All

  • ManjuVijay Prerequisites??

    Thanks in advance for listening to this dumb question.  When I try to publish with the prerequisites set to  "Create setup program" and  "Download prerequisites from the same location as my application" I get the error message:   "Error 2 The install location for prerequisites has not been set to 'component vendor's web site' and the file 'DotNetFX\instmsia.exe' in item '.NET Framework 2.0' can not be located on disk. See Help for more information. Ophthalmology" Build is aborted. I don't know what to do or maybe I have the dotnetfx in the wrong place for install Frank On the Publish Prerequisites dialog (AKA Bootstrapper dialog) there are three options for deploying program prerequisites: * ...Show All

  • Omar Fawzi How to disable Virtual Directory Textbox in Web Setup project?

    Hi, How to disable the Virtual Directory Text Box in the Installation Address Dialog of Web Setup project as I do not want the user to change the Virtual Directory name during installation Please help me in the regard. Thanks in advance. Thanks a lot PhilWilson... This thread: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=1263534&SiteID=1 ...Show All

747576777879808182838485868788899091

©2008 Software Development Network

powered by phorum