Answer Questions
MariaSh User setting font in a TextBox
I'm endeavouring to enable a User to set the font family in a TextBox in a windows application. Using the following code: System.Windows.Forms.FontDialog myFontDialog = new FontDialog(); DialogResult = myFontDialog.ShowDialog(); this.tbQuestion.Font.Name=DialogResult.GetName(Font.Name, Intellisense tells me I need a second parameter"object value", and that the value is "the value o ...Show All
Gary Wang Passing Variables Between Forms
This is probably a silly question to ask here, but I need to be able to pass variables between forms. What I mean is, for example, you open a form that asks for a URL and after you hit the OK button, the function that called it can use the URL. I can use a global variable to accomplish this, but I'm sure there must be a way to do it more elegantly. I know how to do this sort of thing in MFC, but I'm fairly new to .NET programming in VC++ 2005 ...Show All
RSchoe-MSFT Searching files in directories
hi.. how do i search files in a directory using file attributes like modified date,file size,create date time using .Net. Regards dhn hi.. thanks for the reply...but if there are many files in the directory and if i want to compare the size,modified date time,create date time at the same time..will it not take some time using the above piece of code..is there a way like using query to get th ...Show All
Jaswinder Singh Kohli Hiding UserControl.
In the main form, there is a button and a usercontrol. usercontrol.visible=false When the button is clicked, usercontrol appears. That is, usercontrol.visible=true Everything is O.K. till now. When the user clicks outside the usercontrol, that is a pl ...Show All
jaime.rq Is it possible to give more than one control focus?
Hi, Is it possible to give 2 controls Focus I know this sounds strange, but i want 2 controls on my UI to respond to keystrokes. One control (textbox) needs to respond to left and right arrow keys, and a TreeView should handle the up  ...Show All
Meaks Setting a datasource for a listbox causes a SelectedIndexChanged. NO!!!!
I have a DB winapp using one form and a bunch of listboxes I re-assign the datasources of the listboxes as other listboxes are changed this causes the SelectedIndexChanged to occur. I do not want this. I want that event to only happen when the& ...Show All
garrone New and open
hey, in order for me to be able to do new and open options on my text program, I need to know how to make it so the program has a certain text file type for it's documents...how do you make this with Visual studio 2005 express oh, k, I did that, and there are no errors, still that warning thoe...anyways, umm... ya, so it opens the open dialog thing, but for a .txt file, I would like my program to work with those files also, but ...Show All
gustavwallmark Enable Typing of ComboBox in DGV
Hi all, I read the FAQ doc but the suggested solution doesn't work for my case. I have a "data-bounded" combobox inside a DGV, and now I want to enable users to 'edit' the items of this combobox. Basically, the suggested solution is to: 1. change the DropDownStyle at run time 2. add a new item to the Items collection if the formatted value is not exist. However, my ComboBoxColumn is bounded by a DataSet (containing mutliple dataTable), ...Show All
bsandlier Frustrated by Mdi
Hey I got a outlookbar with several buttons, now I want to open different forms when each button is pressed. What's the "by the book" way to manage this Thx Shotmaker Well...there are multiple ways to handle this. I would think that the simplest way would be to add each child form to the MDI form as it is opened, and remove it as it is closed (or another form is opened). If appropriat ...Show All
iaragorn Install TV Server into SQL Named Instance?
Greetings, How can I install the TaskVision Server into an existing named SQL Server instance instead of the default 'Localhost' TIA, Q grab the sql scripts that come with it and execute them on whatever instance of sql server you want. ...Show All
JimReid TabPages and UserControls growing to over 30,000 pixels in Width and Height in Designer (2005 beta 2)
I’m having some major sizing issues with controls in designer view. To be specific, it seems that controls within container controls such as TabPages will randomly outgrow their parent controls to a very large size (~30,000px! ). Even when trying to manually edit the designer code, as soon as switching back to design view, the weird numbers are back. Here's a link to a screenshot: http://www.bugben.com/showcase/30000.jpg H ...Show All
MrDewMan Question re RadioButton Controls to Function as a Set
I have a group of radiobuttons on a form. I want to tab into the group to the first radio button to offer my user the ability to select the radio button of their choice. I don't have any of the radio buttons preset to true. ...Show All
StefanPe Question about creating a control from scratch
I've been writing a menu control from scratch since I want to learn everything I can about the drawing namespaces. Well I've got a pretty nice menu control, but I've hit a snag now that I've to the actual menu items. The menu's will display fine, but since the menu items draw outside of the controls bounds all I see is just the top line of the menu item rectangle. I tried to make the menu items their own control, but I can't s ...Show All
Esrar Chowdhury step bye step in filling a datagridview
Ok i am new to c#+MS Sql so dont expect much.. I have a datagridview how can i fill the datagridview on the form loading with all the data contained in my table from may database please specifie also: how to connect to a database with c#.. the connection string some other settings.. Also a good tutorial would be good.. What you want to do is pretty easy and can be done without writing any code at all! I am going to assume you are usin ...Show All
Glen Plantz Help files
I'm looking to include Help Files in my windows application. Any opinions of the best way to do this What I do is create HTML files. Then have my app go to those, using a drop down menu or something. ...Show All
