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

Software Development Network >> Windows Forms

Windows Forms

New Question

simple reinstall
GetPositionFromCharIndex(int index) in RichTextBox v.s. TextBox
Working with a MDI and ToolBar
Enabling Menu Strip in Main form from child Form
How to make certain variables global to all forms? (C#)
AmbiguousMatchException
Populating a datagrid
Browser Control Questions.
how to use picturebox
Bindingsource.Filter fails

Top Answerers

thomas f
digitalslavery
Alan M.
rako77
Steven Rosenthal
ravi_nilesh
Douglas Nakamoto
Andrew XYZ
Goat Spirit
_Quimbly_
sitemap
Only Title

Answer Questions

  • Peter_Ellis Can I store a bitmap file in a globally accessable file, instead of a form's imagelist?

    Hello, I am aware of the methods for storing images in an imagelist that resides on a form. But sometimes my tree node does not have the form's pointer. I would like to store some of my bitmaps in a globally accessable singleton object. Has anyone done this Thanks for the help! Bob For example: Drag an ImageList from the ToolBox on to form (this only associates the object as one of the forms components, not as the Form's ImageList). Add images to your image list by editing the Images property, this pulls the images into the resources. Select your TreeView and assign your new ImageList to the TreeView's ImageList property. Edit the Nodes collection of the TreeView. Cre ...Show All

  • Aleniko29139 Custom Control Error

    I have created a custom control, and added it to my toolbox. I have then used it on a form in the same project, and it refuses to compile. I have made no modifications to the cutom control, using only trhe default code from the add item wizard. The error i recieve is The type name <my custom type name here> does not exist in <form name.form name> When I say form name it may be the namespace as they are the same.If i click it to take me to the problem, I get directed to the aut genearted InitializeComponent method. Whats going on Any help much appreciated, Mike I am unsure of what you mean sorry. I have not modified any properties of the control, just left it as the default generated by the w ...Show All

  • mrLarry1975 HTML Editor (WYSIWYG)

    I'm looking for a HTML (text) editor for a WinForm application. Do these exist THanks for the reply Glenn, I found one yesterday in the "purgatory" section of CodeProjet. It works fine (it was written in spanish, which is why it was probably there), however there's an un-signed DLL in it (htmlEditor) and I can't figure out who wrote it... or what else it might contain so I'm not sure I want to use it for our commercial application :( I'll give the others a lookee. Yes, if I wasn't overworked and had some time to actually play with this I would, but alas, i'm only human :D Been looking for for the past 3 hours and haven't seen one that fits our needs :( Too bad the Telerik R.A.D. editor wasn't compatible with ...Show All

  • Forgon Changing default control spacing used by snaplines

    Hi, Is it possible to change the spacing parameters used by snaplines I've been getting a lot of complaints that textboxes have to much of a vertical gap between them... Thanks Actually, the "proximity" version of the snapline is based on the control's Margin setting, which is default 3. If you want your textboxes to stack more closely (or farther apart), you can adjust that number and the proximity snap will automatically adjust. Unfortunately you cannot change the snaplines for the controls that ship with WinForms. Martin ...Show All

  • Bo Yu Database install question

    I was wondering how the datafiles get copied and updated. I came across a link and that looks good. In that there is a psuedo code and I have a question on it, if someone can help me http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=116568&SiteID=1 In this code, there is a variable called customMigrationOrMergeNeeded, I couldn't find it in ApplicationDeployment.CurrentDeployment namespace. Where is it I checked microsoft web site and I couldn't find any either. I can check and see if .pre folder exists in the data folder, but is it still true Thanks in advance. Couldn't find the customMigrationOrMergeNeeded so went to check the folder logic. If any one knows better way please let me know. Thanks. ...Show All

  • jimgong Do i understand Beginedit()?

    Hi, I am trying to edit a row in my database, but the value doesn't want to stay. When I close the program and reopen it the row just reverts back to it's original value. I'm not sure if I am using begin and end edit correctly. Are they meant to save the new edited row Here's my code: Step.Email.FindByID(0).BeginEdit(); Step.Email.FindByID(0).Text = SuccessString; Step.Email.FindByID(0).EndEdit(); Step.Email.FindByID(1).BeginEdit(); Step.Email.FindByID(1).Text = FailureString; Step.Email.FindByID(1).EndEdit(); Step.Email.AcceptChanges(); (Step is my Dataset) Ah things are starting to come together now. The problem is that you have a constraint violation. You are ...Show All

  • RogerRV Problem with publishing in VB 2005 Express

    I have seen some other posts where the user gets the message "Application cannot be started. Contact the application vendor" I am having the same problem. I thought this might be connected with the SQL database I was using (I hadn't copied it into the project directory). So, as a test, I created a new form, consisting of one button which displayed a MessageBox in the click event. When I publish this, I get the same error message when I run the .exe file. The exception details are listed below. Also, I am unable to use the File.Encrypt method and get an error that suggests that my file system is not NTFS although it claims that it is NTFS. Could there be some kind of problem with my .net installation Any thoughts ...Show All

  • cedubose Autoupdate only when Build-Nr Changes

    Hello I have a clickonce application, which is used by different people. the issue is the following, when adding new features, i just want to release this to a few ones. so my idea was, to deploy the new version with the new revision to the server. the autoupdate shouldn't take that version, as long the build, minor or major nr does not change. so the testusers can go to the page, and manually install the latest version, but as long now new build is released, no autoupdate is done. for me it's also ok if I can do this with minor/major instead of build. Is there a solution for this Thanks ...Show All

  • desijatt How do I search through a multidimensional array?

    I tried the following, and it breaks because it expects a one-dimensional array: somearray(0,0) = "some" somearray(0,1) = "where" somearray(1,0) = "test" somearray(1,1) = "1,2,3" Dim Idx As Int32 = Array.BinarySearch(somearray, "test") Anybody know the equivalent for multi-dimensional arrays Thanks, Denvas What is your array. Can you post your entire code What does this array consist of Array.BinarySearch: Searches a one-dimensional sorted Array for a value, using a binary search algorithm. Here is an example of what you want to do Dim x, y As Integer For x = 0 To 1 For y = 0 To 1 If somearray(x, y) = &qu ...Show All

  • Trevor E Hilder Change Opacity of form...?

    Hi... I want to change the 'Opacity' property of my form when i move my form using mouse from one place to another while application is running. I want same effect as we can see when we get an exception while debugging any application in VS2005. We get one form & if we try to move that form its opacity chnges & that form becomes normal when we stop moving that form. Thank & Regards, Vinay Dear vinay! As I know the opacity property is not working on child forms! Ron Hi Dan, Thanks... i tried your code...but its not giving me desired effect of Opacity on moving the form... As Ron has suggested Opacity propert ...Show All

  • Shamdogg Dynamic Combobox - refresh list items on the fly

    I have a main form where the user selects a customer from a drop down box. On this form is also a button that opens another form as a dialog that allows the user to enter a new customer. The user clicks "Save" on the new customer dialog and the customer is saved to the database and the main form becomes active again. I can't figure out how to update the combobox so that it displays this new customer in the list. The combobox is bound to a datasource. I know the code to create and save a new customer is working since the change is reflected in the database. The new customer also appears in the combobox BUT only after I close and run the application again. // if a new customer was added to the database/dataset refresh ...Show All

  • r3ganc Getting bindings for a control bound at design time?

    I have created a simple demo to learn design-time data binding. Basically, I configured a data source using the Data Source Configuration Wizard, and bound a DataGridView to the resulting BindingSource control. Here's my question: How do I get a reference to the Binding objects created for the DataGridView control I've tried the DataBindings property for the grid, but it shows a count of zero bindings at runtime (no matter when I test it), even though the grid is successfully bound to the data source. I looked at the form's designer code, and I don't see any calls to DataBindings.Add(), or any Binding object declarations. How can data binding be working without Binding objects I'm confused, to say the least. How do I get the grid' ...Show All

  • WHats wrong best place to store user information

    Hi! Suppose you have a clickonce deployed application. Where would you store some user specific files (like settings and other user configuration) Would you use the Local Settings\Application Data folder or the Application root folder, since this folder is also user specific and not machine specific Thanks For regular windows specific setting, you could use setting tab under project properties and for all others I would store the information in a user class and store it as a serialised object in the current directory itself. Let me know if you have more questions. ...Show All

  • ocelot663 unzip & zip w/ SharpZipLib... plus ListBox Q?

    Hi all, [C#] I need to unzip a folder structure & save it to a location then zip it up again after the changes.  Is SharpZipLib the best option for the following. using ICSharpCode.SharpZipLib.Zip; FastZip fz = new FastZip();        fz.ExtractZip(zipFile, targetDirectory,""); ListBox question: So there may be a zipped directory with 2+ folders containing subfolders in it that has the file I need (foobar.xml...etc) ... how do I unzip these to a specific location (C:\WorkingFolder\) and add all the required files to the ListBox [WorkFolder] | Folder01   | SubFolder00     | SubFolder01        | SubFolder02    &n ...Show All

  • jgillin MDI child form to maximize to the size of parent free space

    Hi When you create a mdi application. You will have your mdi parent. Then you have the child forms. But when you maximize the child form it sort of merges/overlaps with the toolstrip on the mdi parent. is there a way to make sure that the mdi child maximum size is the size of that available dark space in the mdi parent. Not to merge or overlap the toolstrip!! Thanks in advance  Nope, looks all perfectly normal to me and I don't see any overlap. You're possibly complaining about the menu strip moving down, making room for the maximized MDI child's icon and max/min/close buttons. That's normal MDI behavior and can't be altered... Wow - thats frustrating. Would be nice if there could be a property like Hi ...Show All

323334353637383940414243444546474849

©2008 Software Development Network

powered by phorum