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

Software Development Network >> Windows Forms

Windows Forms

New Question

Hiding tab pages
Reference Collection TypeConverter?
using one click deploy for vb.net
the progress bar didn't changed when the progresschanged occur of the BackgroundWorker
Combobox is not updating when row is added to DataTable
Combobox question
DGV, EditOnEnter and Error Icon
User and password in code
DataRow or DataGridView & XML Q?
Using ClickOnce deployment for Windows Forms with SQl Server Express

Top Answerers

langalaxy
CHolmes
Brown_Jeff
LasseJ
Sune Henriksen
Gravy
Michael Hesselbach
CodeMan7777
simsen
Kunal Sharma
Programming the Be Operating System
Only Title

Answer Questions

  • Avner Kashtan windows forms controls render as red colored Xs

    Hi, I have a very peculiar problem with my windows application made in C#. All the controls very rarely render as white rectangles with red colored Xs in them after the application runs for some time. Looks like a memory problem, but i cant find the reason for it. I have used GDI+ in my application but all the graphics objects have been properly disposed and the code has been optimised as far as graphics are concerned. Thanks and Regards Nitin I am reusing the Pen object. I would like to know if its a good practice to do it. Thanks Nitin Hello Nitin, I had faced the same problem when I was using GDI to render my objects on winforms. So ...Show All

  • dophine 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 Thank you Peter, I do see how I can do this with a form. And I have done this before. However the problem is that this is tied to one form, and I have at least 6 or 7 forms that need access to these bitmaps. And I want them to be consistant across the application. That is why I am trying to centralize the images so that I can can easily update their appearance and effect the entire application. I suppo ...Show All

  • prog.gabi Accessing html framesets from a Resource DLL

    I am currently working on a C# application that uses an axWebBrowser control to displays HTML pages. This is being done to reuse an existing web application which resides on a client’s computer. To hide the html on the client’s computer, I have created a resource .dll linking in all of the HTML, images and JavaScript pages from the old project. Using the res://mydll/homepage.htm, the home page loads into the web browser control (axWebBrowser.Navigate), no problems. This page has frameset, so when I try to access the document frames, I get an exception Access Denied. I am using code similar to this to access the frames: HTMLDocument myDoc = new HTMLDocumentClass(); myDoc = (HTMLDocument) axWebBrowser1.Document; Frames ...Show All

  • creditl scroll to bottom

    how do i make my panel scroll automatically to the latestest content.. My panel starts with showing the data on top and then the new data comes down and down and then scroll bar shows up which keeps getting bigger but i can't see my new data without scrolling. How can i make scrollbar autoscroll to the latest data thx Sameep If the content are individual controls then you can use these 2 methods to bring the control to view. mycontrol.BringToFront() // selects the control mypanel .ScrollControlIntoView(mycontrol) // scrolls to the control   look to this it may help you http://www.codeproject.com/cs/miscctrl/CustomAutoScrollPanel.asp This is ...Show All

  • JJKusch Shared Dataset

    Hi Friends. I’m Braziliam Develop and I'm New in Windows Form Program. My Question: I Have in FLogin a Dataset with name DsDbVendas and I need view the same dataset in FDLogin but I Don’t Know How I resolve this Big Problem. Sorry for my Bad English ! :( Sds, Marcos Nogueira Add a dataset in your solution and bind your controls to the table adapter in the dataset. using System; using System.Collections.Generic; using System.Text; using System.Windows.Forms; namespace Costing.test { class Class1 { public static CostingDataSet mySharedDataset = new CostingDataSet (); } class login { private DataGridView myDGV = new DataGridView (); ...Show All

  • Siggy01 Controls and Generics?

    Is it possible to define a Control with a generic in the class name Seems like this two things do not live together: here is what i've tried but this does now work: i've created a CustomControl1 : Control compiled everything and CustomControl1 appeared on my toolbox added a generic public partial class CustomControl1 <T> : Control everything compiles but CustomControl1 is not on the toolbox anymore :( what is even worse - the form would not open in a designer if i modify an exiting control to use a generic - the designer will say " Could not find type 'WindowsApplication1.CustomControl1 " ...Show All

  • Amde Docking TableLayoutPanel

    I have a splitcontainer, which contains a docked table layout panel. I want to dock the tablelayout panel to fill, but without anchoring. When the users resize the form, I want the table layout panel to stretch vertically and horizontally, but I want EACH cell within the table to proportionally resize. Right now, the only way I can dock to fill is to have a top and left anchor, and when that happens, only the top two cells of the 4 row by 1 column table layout panel stretch vertically (and all of the cells stretch horizontally). How do I have it so that all of the 4 rows stretch proportionally both vertically and horizontally <img src="http://img56.imageshack.us/img56/8130/temlm8.jpg" border="3" ...Show All

  • KervyChoa how to make a combobox read only?

    hi i want to make the combo box readonly what should i do thank u use ComboBox.IsEditable Property ComboBox.IsReadOnly Property Namespace : System.Windows.Controls I solved this once by checking if the value typed in was in the collection of added items. If it was, I accepted the value and did further processing. If it wasn`t in the collection, I discarded the value and stopped further processing. Maybe this approach could help you. Exactly, the user still has a chance to change the values. In my case, based on the user group, I would like to provide an option to change combo value. Though I set the combo to dropdownlist, I just leftout with ...Show All

  • Neotech Controlling a form externally

    I'd like my program's main routine to start a loop method that will create a new form call a method on that form let the method finish close the form and start over However, when the loop method calls Application.Run(curForm), it seems to give up control of the form, so doing item #2 (or anything else) is impossible until the form is closed. Is there any way to return control of a form to a class outside of that form Instead of Application.Run, use fooForm.Show or ShowDialog, then call your public method then call the Close method. Charles Hi, try this [ STAThread ] static void Main() { Application .EnableVisualStyles(); Application .SetCompa ...Show All

  • Aazad Trying to show and manage a List<string> in a PropertyGrid

    Hi, I have an application that shows the property of my items in a PropertyGrid. I'm trying to allow the user to add or remove property to his items throw the PropertyGrid, but i can't do it properly. I have followed the articles written in MDSN. So I found a way to do it. Creating a new class that inherits from ExpandableObjectConverter, showing the attributes in a string. But the problem is that it create me a kind of pop up where I can modify the string of attributes, but I don't know how to modify the methods so that the application behaves like I want. Can anyone help me . I have written this code: public class GridSettings { private string nombre, visibilidad; private string tipoObjeto; priva ...Show All

  • Ralf Hedler Insert Statement fails , but works in MS access

    Hi, can someone help> This insert statement in my code does not work, the error message i get is 'Error in the Insert Into', but if I copy and paste the insert statement and run it inside of Microsoft Access Database it works. So I'm kind of lost on how make this work....Can anyone help Below is my code. Public Function NewErrorRecord( ByVal ErrorDect() As Object ) As Boolean Try Module_Type,ErrorID,Error_Descr,Module,LineNum,Filename InsertErrRec = "INSERT INTO Error_Tracking (Error_ID,Module_ID,Error_Descr,Module,LineNum,Filename) " _ & "VALUES('" + ErrorDect(0).ToString + "','" + ErrorDect(1).ToString + "','" + ErrorDect(2).ToString + "','" + ErrorDe ...Show All

  • LuckyL Easy question about a groupbox

    I'm feeling somewhat stupid when asking this question because the answer is almost certainly trivial but I still don't know the answer so here goes. Suppose I create a groupbox (groupbox1) and put into it 2 textboxes (textbox1 and textbox2) how can I afterwards refer to textbox1. Now what do I do if I want to change the text in one of the textboxes. I was hoping for something like groupbox1.textbox1.text = "helloworld" But that doesn't work. I believe that I could use a loop along the lines of Private Sub Update_textbox1() Dim mytextbox1 As textbox For Each ctrl As Control In groupBox1.Controls If TypeOf ctrl Is textbox Then mytextbox1 = ctrl mytextbox1.text = &qu ...Show All

  • Wellnow ToolTip Owner Draw

    I have created a ToolTip class and set the OwnerDraw property to true. I have hooked the Draw and Popup events and it is working ok. The content that I am rendering contains graphics and text. I'm just wondering why the only way to popup a ToolTip forces you to specify some text, for example: _calloutToolTip.SetToolTip( _mainPicture.Renderer, "dummy" ); All the overloads for Show also expect text. Is there anyway round this I had the same issue with ToolTip, and resorted to ownerDraw, also. In my case, I wanted to do formatted, color highlighted text, rather than simple text. Answers from this board and others are: 1. OwnerDraw, 2. Inherit/extend/compose with ToolTip (or new ...Show All

  • jan3784 Move to next control located in other tab

    Hi all, I have 2 tabs in the tab control. When I press Tab on the last control on tab1, how to move to next tab and appropriate control in the tab order similarly in reverse way with Shift+Tab. I want a generic way to implement for all screens. Thanks This is a better solution. But practically (in my scenario), tab pages have controls inside containers like group boxes, panels, etc. and the controls might be enabled and disabled dynamically based on user inputs. also, there are other controls apart from tab pages like ok, cancel, save... I tried a couple of alterations to code snippet like looping all containers etc..., but it is not working as per my estimation. the focus is not going to correct controls and tab pages ...Show All

  • SSRS Jon How can I disable a listBox item?

    Hello, I have a listbox with 5 items, how can I disable the third item only, in order to make it unselectable Please help. Thanks. This post is off topic for the Visual C # General forum, moving to Windows Forms General forum. There isn't a direct way to do that, but here is an example to do it! int LastVaildIndex; private void listBox1_SelectedIndexChanged( object sender, EventArgs e) { if (listBox1.SelectedIndex == 2 ) { listBox1.SelectedIndex = LastVaildIndex; MessageBox.Show( this , @"You cann't select this item" ); } else { LastVaildIndex = listBox1.SelectedIndex; } } private void Form1_Load( object sender, EventArgs e) { LastVaildIndex = listBox1.SelectedIndex; } ...Show All

666768697071727374757677787980818283

©2008 Software Development Network

powered by phorum