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

Software Development Network >> Windows Forms

Windows Forms

New Question

Connection String
Using the PropertyGrid class
About Threading
Using BindingSource to filter and sort a "Generic" List in DataGridView
Custom Updates Problem
correct identification Node and building treeview
Controls inside a user control resize automatically
How can I change the Font.Bold in Treeview Control
Filtering data listed in a combobox in a datagridview
How to work with crystalreports in dotnet2.0?

Top Answerers

Al Christoph
Ben Santiago
rwbogosian
Alpehans
TooTallSid
Dave Jenkins
Chicken Leg Willy
Jim Thompson
Crane101
Code Chief
El rinconcito de
Only Title

Answer Questions

  • Danny Tuppeny Read data from App.config

    Hi how can read data from the configuration files, in VB2005 and VB2003 Are yout talking about reading your own custom data If so, you need to have a <configSections> with a <section> definition tag that defines your custom section and the class that will handle this section. Your own custom section is then mapped to a class in your code that derives from ConfigurationSection and during startup .NET will create an instance of this class when it's time to process that section. For example: <configuration> <configSections> <section name="customStuff" type="MyApp.CustomStuffSection, MyApp, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null" allowDefinition="Machi ...Show All

  • Tanzir Deploying/Publishing my VB express application issue

    Hi I get pretty confusing about what the Publish button do to my application. After looking thru the deploy-related posts on this forum I managed to publish my application with MS Installer and .net framework 2.0 buddled on a CD-ROM/DVD. The project in my case is deployed to C:\myProject Now there are folllowing filess in the myProject folder: myProject_1_0_0_1 [folder] --- inside has the xyz.dll.deploy , myProject.exe.deply and database.mdb.deploy <-- how come they are end with .deploy dotnetfx windowinstaller3_1 autorun.inf myProject.application myProject_1_0_0_1.application Copy of myProject.xml setup.exe I logically ran setup.exe and expect my application will get installed on my PC (same pc I use to develop softwar ...Show All

  • Barron Gillon typed DataSet not loading relations from DB

    I've literally had this problem everytime i've tried to use Typed DataSet I have just a default database made in VS, in it i have 2 tables relating to each other. (Lets say Member Table, and Association Table, ie Members would have 1 association, related by PK in Association and FK in Member) i then drag those tables (with the relation) into an xsd, which creates the relation and tables in that. I then compile the Typed Dataset, and get the generated classes. So then in my application, I load the information using a DataAdapter and get lets say a MemberRow object For the life of me, the AssociationRow property of the MemberRow (ie the parent row property that the dataset defines) NEVER has a value, It's always ...Show All

  • Acco1953 How to I call mytoolbar button collection recursively using enum?

    Experts, I have a custom toolbarbutton called 'lstoolbarbuttons' and a few of the buttons are added on the toolbar programatically. I need to call each of the button recursively and close the remove the buttons from toolbar. How to I call mytoolbar button collection recursively using enum Following code gives error: System::Collections::IEnumerator* e1 = __try_cast <LSToolBarButton*>( this ->TABToolBar->Buttons->GetEnumerator()); while (e1->MoveNext()) { Control* c = __try_cast <LSToolBarButton*>(e1->Current); this ->TABToolBar->Buttons->Remove(c); } error C2440: 'initializing' : cannot convert from 'Myform::LSToolBarButton __gc *' to 'System::Collections::IEnumerator ...Show All

  • Sergey Jmacov saving the contents of richtext box to an xml file with formating

    hi there, i am wondering how can we save the conent of rich textbox to an xml file. i have many richtextboxes but i need to save all those to one file. thanks prasanth Try saving the richtextboxes rtf property in the xml file. Imports System.Xml Public Class Form1 Private Sub Form1_Load( ByVal sender As System. Object , ByVal e As System.EventArgs) Handles MyBase .Load RichTextBox1.ForeColor = Color.Red End Sub Private Sub btnLoad_Click( ByVal sender As System. Object , ByVal e As System.EventArgs) Handles btnLoad.Click RichTextBox1.ForeColor = Color.Black Using reader As XmlReader = XmlReader.Create("test.xml") ' Parse the XML document. ReadStrin ...Show All

  • Angel38 PropertyGrid: Disable CollectionEditor without changing the Object

    My Question I would like to disable the CollectionEditor inside the PropertyGrid. I'm not able to change the business object which is set as propertyGrid.SelectedObject. How can I do this Background information I use the PopertyGrid to create a generic user interface. This application should be able to show any object properties. The big disadvantage of the collection editor is that it opens a new modal dialog. If the object structure is more complex the user has to open several CollectionEditors inside their parent CollectionEditor. Bad usability :-( That's why I created a new UserControl which combines a TreeView with the PropertyGrid. The TreeView shows the hierarchies of the collections. So far it works fine :-) ...Show All

  • Alexandre Defalque OS hides shortcut key

    I'm using VS2005. I've built a form with a main menu. In the editor, I defined the keyboard shortcuts using the & character. The underlined letter shows up in the form editor properly but when I run the application (debug or release) the shortcuts do not display. Thanks alot!! Never noticed that. Ran into this one myself...it is hidden by the operating system. When they are hidden hold down the alt key and they will appear. To make them always appear do these steps Right click on the OS desktop. Choose Properties . Choose Appearance tab. Click Effects Look for check box Hide underlined letters for keyboard navigation until I press the Alt key and check it. Apply ...Show All

  • godzilla9 How to bubble down a mouse event

    I got a panel that has one control A inside it. I need to catch the MouseEnter event while i am in the panel and over A. Anyone knows how to do that You will be knowing the x and y axis or ( Left,Top) for your panel, so once the mouse is with in that x, y (Left, Top ) region then you can change the color and once it is out of that region (x,y) u can once again change the color back to normal. Hope this would help you..     Hook up the MouseEnter/MouseLeave event of the panel's child controls. You could even subclass Panel and have it as a self-contained control with your desired behaviour. That way you will know when the mouse is still within the confines of th ...Show All

  • ToddKitta VS.net 2005 Installer: Not enough storage is available to complete this operation

    Hi All, I have created a VS Deployment project in VS.NET 2005. I added 75 files. Some of which a re large (>600megs). The total project size is anticpated to to be 2.2 gigs for the setup file. Upon building the project, i get the "Not enough storage is available to complete this operation" error. I have 30 gigs of space on my computer and 1 gig of ram and the install will not come close this. I have checked through the other forums and didn't find anything other then an MS expert saying is a known bug with files over 400megs. That post is 3 years old. I am hoping there is a resolution to this problem. Anybody Thanks, Steve Sinclair Hi, Thanks for the response. There are ...Show All

  • JanMichaelTe RichTextBox - raw rtf appending problem

    As RichTextBox doesn't implement all posiibilities of text formatting itself I'm trying to write simple method which will insert a table into my RTB control, but have problems while trying to append new formatted text into Rtf property of RTB. Here's an example of my problem with source code and result from debugger. Let's say that we have newly created RTB richTextBox1.Rtf = "{\\rtf1\\ansi\\ansicpg1250\\deff0\\deflang1045{\\fonttbl{\\f0\\fnil\\fcharset238 Microsoft Sans Serif;}}{\\colortbl;\\red0\\green0\\blue0;\\red0\\green0\\blue255;\\red0\\green255\ \blue255;\\red0\\green255\\blue0;\\red255\\green0\\blue255;\\red255\\green0\\blue0;\\red255\\green255 \\blue0;\\red255\\green255\\blue255;}{\\stylesheet{\\fs20 \\snext0Normal;}}{\\in ...Show All

  • Didac Pallares Transfer data to another form

    I try to transfer data from a DataGridView from one form to another form. I have the following code. When I try to run it, it doesn't appear with any errors, but it also doesn't transfer the data I want it to do. Where in my code do I do somethin wrong Faktureringssystem.cd (form1) code: private void dgrKunder_CellDoubleClick(object sender, DataGridViewCellEventArgs e) { // Find den aktuelle row der er selected nar der dobbeltklikkes. CurrencyManager cm = this.BindingContext[dgrKunder.DataSource, dgrKunder.DataMember] as CurrencyManager; if (cm != null) { DataRowView rowView = cm.Current as DataRowView; if (rowView != null) { fakturasystemDataSet.KunderRow row = rowView.Row as fakturasy ...Show All

  • Philipp Konradi Grouping radio buttons

    I'm stuck on radio buttons in C# alas. I can group them by putting then in a Group box, that falls into place. But I want to treat them in code as a group too. I want to be able in one line of code to get the button which is selected, not have to scan through them all one by one. Can this be done Is the group of radio buttons itself available as an object that can be queried with regards to the status of the current seelction in that group nobugz, Thanks, this is great. I already whipped one up experimentally, but the tjhing that stumped me then was how to integrate it with visual design. If I create this custom control I can create it in code, but not with the visual designer. Do you have any tips on how to do that (yes, I'm a ...Show All

  • Brad.K package for multiple applications

    Hello, I have developed several apps and would like to put them in the package of deployment or publication. I also want to give the user the choice to choose which app(s) they wanna install on their machine. I know how to deploy one application. but still very cloudy about multiple app packaging. Any suggestion Thank you Phil for the reply. At this stage either solution is fine with me. my main intention is to package all the applications and when setup run it will install all of them. what do you mean by launcher If VS2005 doesn't anything to support multiple apps deployment, do you know any other independ tools Regards, Visual Studio setups don't do much compared to ...Show All

  • Jehan Badshah How to create an instance of System.Windows.Forms.AxHost.State ?

    I am writing an user control, it would add the ActiveX control by checking the installed version of Office Web Component SpreadSheet (currently there are OWC11, OWC10, OWC components). After checked the installed version of OWC, I create the instance of the axXXX library which generated by vs.net 2003 & add this instance to UserControl.Controls. If I do nothing more then it would be OK, but I wish to set the CSVData property of the instance after the constructor of the UserControl finished. I got an error said that OcxState of the OWC instance is valid. I noticed when I drag & drop the OWC control into the UserControl, the designer would generate the code such as : owc.OcxState = ((System.Windows.Forms.AxHost.State) ...Show All

  • Cyber Sinh Recordset problem

    Dim Dbase as Database Dim tmpRec as Recordset Set Dbase = OpenDatabase(DbasePath) Set tmpRec = Dbase.CreateRecordset(SqlSelectString) DesiredValue = tmpRec(DesiredField) How can I achieve this in 2005 without having to create and fill TableAdapters, BindingSources etc There are many times when I need to access a single field from the database to ascertain the current VAT percent for example and it appears that this once simple task has been made far more complicated than ever before. Can somebody please give me a simple method of doing this like the simple 5 line VB6 method above. I don't want to create a bindingsource for every table in the database just in case it needs to be queried at some point and I can't fin ...Show All

232425262728293031323334353637383940

©2008 Software Development Network

powered by phorum