Answer Questions
MisterChief ClickOnce WindowsService Publication
Hello, Can anyone tell me where to find a tutorial about the way of publishing a windows service with clickonce Thanks a lot Thanks for your answer... I need an advice : I want to make a tool wich scan PC config and send it to a sql server. I want this tool work automaticaly once a month. what kind of way should i go Publishing a windows service using ClickOnce .. In my opinion ClickOnce is not designed to publis ...Show All
Amelia FindControl.
Hi everyone, Does anyone know what would be the similar of FindControl method from Web library to from Windows.Forms library I need to get what controls do I have inside a panel, like TextBox, etc. Thanks in advancing. Doria Could you give to me a simple example about what do you mean Thanks, Doria Gotcha! Thanks a lot! Irating a collection using foreach...next statement allows to you ...Show All
Michael Brisset - MSFT how to exchange data between MDIChild forms?
(as subject) thx. Since you email me, and i can't find the thread that excacly meet your requirement // your main form - > the MDI parent // should have all the reference to the childs form // in the method where you load&nbs ...Show All
m3rch DataGridView Edit Menu
Is there an example of a DataGridView popup menu for cut/copy/pasting rows along with the code for cut/copy/pasting the rows . The popup menu pops up when the user right clicks on the row selector column for the row(like in MS Access). ...Show All
Wardster catch ENTER Key in my textbox
i have two textbox in my form i want change focus between two textbox with Enter Key help me please thx us for your ans. You can handle the TextBox.KeyDown event and lookup if enter is pressed. If so, focus the other control and mark the key as handled: private void textBox1_KeyDown( object sender, System.Windows.Forms.KeyEventArgs e) { if ( e.KeyCode == Keys.Enter ) { // Mark the handle ...Show All
ion lucian Adding a ToolTip component in code
I am trying to automate adding tooltips from a table. At runtime, I load the tooltips for the form from a table and put them on the controls. My problem is trying to figure out if the form already has a ToolTip component. It is not in the list of controls or components. I am not sure where else to look for it. There is nothing weird, it's correct way. I can only suggest you write more laconic code & use new language features, like ...Show All
RegMellon Help with UserControl built from another UserControl
I'm using VisualStudio.NET 2003 with C#. I have a UserControl that is composed of several of another UserControl. UserControl1 is a Label and a TextBox control. I've defined a property for this UserControl that sets Label.Text. UserControl2 is a row of seven UserC ...Show All
Mark Sletterink Retrived dataset refresh
I have a dataset in my form (created visually), with databinding to a grid. I have a button with an event. In the click event I do. MyDataSet = Customer.GetAll, where customer is a class that return a dataset with all the customers. All works fine, but the controls databinded with MyDataSet don't refresh. I think the problem is that I'm changing the reference from the dataset. How can I solve the problem ...Show All
Nixies listbox control
how do I manually add in listbox items in at runtime that act like they have a databinding. example ( I know this is incorrect) ListBox1.Items.Add("display",value) basically how do you add an item with a name/value pair would I have to create clas ...Show All
Mbccs Help, the problem consts my whole day!
Have tow listView control in a form. now i want move some items from listView a to b. so i write some codes like this: ListViewItem[] items = new ListViewItem[listView2.Items.Count]; for(int i=0,j=lvSrc.Items.Count; i<j;i++) { items = listView2.Items ; listView2.Items.RemoveAt(i); } listView1.Clear(); listView1.Items.AddRange(items); that throw an exception : the parameter 2 is not displayIndex effective value. ...Show All
smgraham change tab name font
Hi i have a tab control with several tab. I want to each time when i enter a tab the font become bold. i couldn't find a property for that. I know i can handle it at the enter event but don't know how. Any suggestion Donkaiser ...Show All
JasonJackson how to find a currency manager postion
atm to find a currency mangaer postion I would have through a dataset to find the matching key. (assume cm is currencymanager and is bound) example dim newpostion as interger for x = 0 to dataset1.table1.rows.count -1 if dataset1.table1.rows(x).item(&q ...Show All
Scott5 Custom Styles
Hello, I'm familiar with custom styles in ASP.NET development, but I was wondering how styles are applied in windows forms controls; I'm developing a custom controls that I want to provide styling for. Do you use Style objects, or just expose the style properties directly Thanks. In Windows Forms it is just done via setting a control's forecolor or backcolor property. There is no styling support. ...Show All
SarahH Sorting DataGrid without GUI effects
Hello - I have a DataGrid with many columns. I want to allow the user to sort the DataGrid based on a particular column. Vis Studio 2003 will allowing sorting by changing the DataGrid AllowSorting property to true. Unfortunately, when you click on a column header, the Control places a really wide Triangle graphic in the header to indicate sorting (ASC or DESC). Since I have so many columns, I'd like my Column Widths to be just large enough ...Show All
vaghelabhavesh Exporting Dataset to Excel in a Widows Forms Project (Not ASP)
I may be missing something but there appears to be a gap in the facilities for DataGridView 1) I can read an Excel worksheet into a DataSet Table with one line. The Table has all the columns and formatting from the spreadsheet. Example below. 2) In the reverse direction I can fully Create the file, Create the Worksheet with formatting and Fill the Rows with one line BUT only by reading from another DataB ...Show All
