Hi, I want to implement Multi Line Grid Header , can anyone please suggest how to implement it. i have already tried "\r\n" but it is not working for me. Thanks in Advance

Member Avatar
+0 forum 0

Ok here is the required feature: To send data gathered from a database inside a UserControl to the main form which houses the UserControl. Hierarchy at present: Mainform --FlowLayoutPanel ----UserControl The UserControls are generated on the fly by a client list in a database. This all works fine. When you click on the UserControl, the UserControl gathers the information associated with the client and stores them in to strings. What should happen is the strings are then passed and set on screen to the main form, but this doesn't happen. There is no real point in me posting code from …

Member Avatar
Member Avatar
+0 forum 7

Hi, I have a VBA script that places WinForm dropdown boxes (xlDropDown) into an excel workbook dynamically. For some reason, on the 17th box (called "INCL" & i + 1 in the code below), the data type of the placed shape becomes msoAutoShape instead of msoFormControl. All of the following controls are msoFormControl again. I've been banging my head on this one. If anyone has any ideas as to why this is happening, that would be great. The problem is that I am able to access te selection in msoFormControl, but not msoAutoShape. Thanks very much. Sub CreateFormsButton() Range("A1").Select Application.StatusBar …

Member Avatar
Member Avatar
+0 forum 9

i have 4 pictureBox which are hidden, and now i want to show them one by one, how it can be done?????

Member Avatar
Member Avatar
+0 forum 3

Windows Application Form I have a user control called 'ucForm', this 'ucForm' have a button to pop out a windows called 'pForm', I want to code it like this, when I press the 'Next' button it will close the 'pForm' and pass the textbox value in 'pForm' to 'ucForm' textbox. What code should I do in the button_click in 'pForm' and what event and method should used to detect the closing of the 'pForm' and perform passing value. Thanks Note: I am using .net framework 2.0 and form_closing is oboslete in that. Source: http://msdn.microsoft.com/en-us/library/system.windows.forms.form.closing.aspx

Member Avatar
Member Avatar
+0 forum 2

I have skinned most controls in my winform application, except scrollbar in combobox. Any ideas?

Member Avatar
Member Avatar
+0 forum 4

![Hi Daniweb forum, I've come across a problem in my panel_mousedown event. Now I initially have 3 pictureboxes Painted on panel1, and each picturebox Control is set to Visible = false; and only become visible again when using this code: private void panel1_MouseDown(object sender, MouseEventArgs e) { if (picturebox1.Bounds.Contains(e.Location) && !picturebox1.Visible) { picturebox1.Show(); picturebox2.Hide(); picturebox3.Hide(); } if (picturebox2.Bounds.Contains(e.Location) && !picturebox2.Visible) { picturebox1.Hide(); picturebox2.Show(); picturebox3.Hide(); } if (picturebox3.Bounds.Contains(e.Location) && !picturebox3.Visible) { picturebox1.Hide(); picturebox2.Hide(); picturebox3.Show(); } The problem I have faced while using this code is that when there are overlapping picturebox images, when I click one it may click the image …

Member Avatar
+0 forum 0

Hi, Can someone tell me how to make this. I have winform wich read from file and make post request to web. I want to have one textbox where i can put time betwen every request. for example: I run my app and read whole file with(1000rows) and 2sec delay after every row. I use now Thread.Sleep() now in code side and i must change it in code side every time if i want different value ... will be better to have options to change this on my form. Thank you

Member Avatar
Member Avatar
+0 forum 1

Well t am doing project on windows application and i am stuck at one place... now my problem is that i want to insert record from textbox and also from datagridview at once from one from but i am not able to do that in one insert query more on that m using data bound grid not unbound so not getting what value to specify in parameter.add method so please can u help me to overcome this problem thank you :)

Member Avatar
+0 forum 0

Hello , i am working on a section of a project, that parses Logs from Postgres Database Server. The application is developed in C sharp Framework 4.0. A log is produced and displayed on a DataGridView with the following columns resultCode Statement Starttime Duration XT001 select * from PizzaMade 01-02-2012 03:10:14 00:04:10 - there are many loglines with the sameformat. - The Datagridview is filled from another loop by parsing a Textfile. My work is to generate stats from the data available in Grid in the following format Statement Count countpercent Occurs_on select * from PizzaMade 3 1.42 01/02 at …

Member Avatar
Member Avatar
+0 forum 2

In Visual Studio 2010, I have a windows forms application frmMain.cs with a ComboBox. From the form itself I can access its value with cmbxYear.SelectedValue. I also have a DataSet.xsd file to bind to an rdlc report to a TableAdapter to present view data. The TableAdapter has a SelectCommand that takes SQL code. I need to get the value of cmbxYear.SelectedValue into the WHERE clause of the TableAdapter. Does anyone know how I can access/pass the variable value from the form into the DataSet TableAdapter SelectCommand WHERE clause? (I am open to other ideas of how to filter an rdlc …

Member Avatar
Member Avatar
+0 forum 2

heres a form i have created. its a search form. [url]http://img266.imageshack.us/img266/722/paymentsh.jpg[/url] it searches and lists the results in list view. heres my mssql query : [CODE] select transactions.trans_id,transactions.cust_id,transactions.trans_amount," _ & "transactions.trans_date,customers.fname+' '+ customers.lname as customer from transactions inner join customers on transactions.cust_id=customers.cust_id " _ & "where trans_type='inv' and (trans_id= " + tbx_transaction_id.Text + " or customers.cust_id = " + tbx_cust_id.Text + " or trans_amount = " + tbx_amount.Text + " or (fname='" + tbx_name.Text + "%' or lname='" + tbx_name.Text + "%')) [/CODE] Regardless of using AND or OR, it doesn't give me the desired results. I have to type …

Member Avatar
Member Avatar
+0 forum 4

I dont know if someone Use this Browser FrameWork , i hope so :) I would use this Browser Framework in my Winform Application c#. I have some questions to do. I'm getting Crazy :( My target is Build a Tabbed WebBrowser with this FrameWork in a WinApps Form. [B]Question 1)[/B] I just Saw the Documentation [URL="http://www.awesomium.com/docs/1_6_3/sharp_api/html/163d5346-d13d-e0cf-49ba-72b2b04d7620.htm"]HERE[/URL] So i would use this[URL="http://www.awesomium.com/docs/1_6_3/sharp_api/html/86d5c96f-1c89-b275-5e3a-d1812435722c.htm"]Method[/URL] I just create a new Class and a new Awesomium.Windows.Forms.WebControl Object. Now if i use it without any particulary method (just the ones to create object and Load the Url Source it works. But when i want use …

Member Avatar
+0 forum 0

I am trying to create a a splash screen... I have attached the image file..please have a look.. the splash screen performs a diagnostic procedure and displayed the results in a multi-line label.. I have used another thread to write msgs as results in label.. and its working as it is supposed to work.. if it finds out that there is an error in registry or database connectivity.. it will load "frm_maintainance".. Its almost done... The only thing I am having trouble with is when there is no error, i want to close the splash screen and open the "form1" …

Member Avatar
Member Avatar
+0 forum 3

I am using 2 checkboxes on WinForms. I am trying to say to the program, if the box is checked.. do this.. If the box is unchecked..do that.. I know how to make it do what i want when the button is checked, but i dont know how to make it do something when the button is unchecked. Here some of my code: [CODE]if (this.ChckBxAND1.Checked && this.ChckBxAND2.Checked) { LblResultAND.Text = "ON!"; }[/CODE] So, when it is checked, it outputs the the Lbl the text "ON!" [CODE]if (//the checkbox is not checked) { LblResultAND.Text = "OFF!"; //do the following }[/CODE] Much …

Member Avatar
Member Avatar
+0 forum 9

Hi, I am having problems with my IF statements. Basically, what I have done is set random numbers to 2 labels. (Random numbers are 1 or 0) What I am trying to make the IF statement do, is see that the label is holding one of those random numbers, and then if it is "1" a calculation must be made, have a look at the code please: [CODE]if (this.LblANDa.Text = "1") //here is the syntax error.. cannot convert string to bool { this.ResultAND.Text = "Correct!"; }[/CODE] regards

Member Avatar
Member Avatar
+0 forum 6

Hello, I am having issues with incrementing the counter by 1. In my quiz, the score must only increment by 1 for each question ONLY if the question is correct. I have made this work, however when the answer is correct, the user can continually click on the Submit btn on WinForms and it will increment the score by 1 each time, therefore breaking the program. What I need is: When the answer is correct it increments (IV DONE THAT) Now, when it increments ONCE, it must not increment again for that question. Regards

Member Avatar
Member Avatar
+0 forum 5

Hi, I have a small issue, wondering if anyone could help. I have a form, FormBorderStyle is set to None. I have a groupBox on the form called gbLogin. I want to be able to move the form via anywhere on the groupBox. I have searched the net and have found some solutions, none that have worked. Such as: [CODE]public const int WM_NCLBUTTONDOWN = 0xA1; public const int HTCAPTION = 0x2; [DllImportAttribute("user32.dll")] public static extern int SendMessage(IntPtr hWnd, int Msg, int wParam, int lParam); [DllImportAttribute("user32.dll")] public static extern bool ReleaseCapture(); private void gbLogin_MouseDown(object sender, System.Windows.Forms.MouseEventArgs e) { ReleaseCapture(); SendMessage(Handle, WM_NCLBUTTONDOWN, …

Member Avatar
Member Avatar
+0 forum 6

The End.