-
- How do I make a form read only (vb.net)
by Newbie75
- 9 Replies
- Last post
by Newbie75
- Hi,
I'm aiming to create a form to display non editable information. I am aware that I can set the enabled property to false, however this greys out the information and I dont want this.
Is there any way I can make the form (or the controls on it) read only
Thanks
-
- form_Load trouble
by Wicked Weapon
- 20 Replies
- Last post
by Wicked Weapon
- how can i change the SelectedValue of a comboBox from "System.Data.DataRowView" to the first value in the comboBox when the form loads.
-
- TreeView - How to know if sub-items are selected
by aur0ra
- 3 Replies
- Last post
by aur0ra
- I am listing all of the directories of my hard drive in a TreeView with checkboxes next to each directory name. I want to be able to navigate through all of the directories and check the ones I'd like to save. When I reload the control my directories are still checked, but I have to navigate through the whole tree to make sure. Is there a way for the parents to indicate that a child (somewhere) is
-
- Winform Datagrid form doesn't respect the column widths or display checkbox for boolean column
by Dave Alessi
- 4 Replies
- Last post
by Dave Alessi
- In the winform designer, I create a data grid, and specify the styles for each column. I cannot get the table style to take effect. How does this get set When I run, I getr the default columns widths and all text fields.
What is wrong
-
- Classes that derive
by YaelS
- 4 Replies
- Last post
by YaelS
- The GetIPictureDispFromPicture is a protected method, so it is only exposed internally to classes that derive from AxHost.
How to write classes that derive from AxHost
please I don't understand..
this is not classs derive from axHost
public class MatarotHost : AxHost
{ public MyHost() : base("02FD5840-C1A3-448E-8310-98611DF58281"){ } public IPictureDisp GetIPicture(Im
-
- textbox lines do not print
by kittyj
- 1 Replies
- Last post
by nobugz
- When I want a line around the textbox or when I put a shape around text, it shows in the document on the screen, but when it prints, the lines or rectangle shapes aren't there. Help please!
-
- Detect when an application is flashing in taskbar
by valleyman86
- 2 Replies
- Last post
by valleyman86
- How would I detect when and what application is flashing in the taskbar. I want to make something happen when it is but I do not know what to look for. Is there a flag or anything in the taskbar toolbar control that I can look at. You can make a window flash by calling flashwindow but I want to do the reverse and find the flashing window.
-
- Height limit
by hipswich
- 8 Replies
- Last post
by hipswich
- Hi all
I am using C# in VS.Net 2005. I have found that I cannot set the height of a form greater than 1036. Does anyone know if 1036 is absolutely the maximum for a form's height or any way to change the limit
Thanks,
-
- Measure rich text strings
by wjousts
- 7 Replies
- Last post
by wjousts
- I want to be able to create a richtextbox like control that will resize itself to fit the rendered richtext in the control. The problem is that I don't see any methods for measuring the size of rendered richtext. The Graphics.MeasureString method will only measure plain text strings with a certain font while richtext can contain several fonts and different sizes so a straight MeasureString isn't g
-
- how to NOT go to the designer
by Mini6321
- 2 Replies
- Last post
by Mini
- Is There anyway to change the behaviour of Visual studio when you double click on a Form in the solution explorer It always goes to the designer when i do that AND I DON'T WANT THAT TO HAPPEN (it is the one thing i hate most about Visual studio). I want to open the code when double clicking instead of the designer (I know, i need to right click and choos view source, but double clicking is much f
-
- Enabling or Disabling DataGridViewCell
by SangramK
- 3 Replies
- Last post
by Balagangadharan.R
- Hi,
Can any one tell me how to enable a particular DataGridViewCell
-
- DropDownList issue
by werwin
- 4 Replies
- Last post
by werwin
- I have a populated Dropdownlist on my webpage im making that i get from a sql server. Im still new at all this but the problem im having is that im sorting it with ORDER BY so its in alphabetical order but the one that i always want on top is moved maybe to second or third postion in the drop down list. now i should mention i have about 50 different possible combos with 50 different entrys in the
-
- Windows Form - Set form size
by PeterK123
- 8 Replies
- Last post
by nobugz
- Hi ,
I am using VB 2005
Is there any way to set the size of the windows beyond the screen resolution.
e.g 3000 x 3000 .
I have tried to set it but it keeps changing back to the maximum size of the screen resolution.
Thanks
-
- Visual Studio Browse For Folder Dialog
by NAU_Robert
- 4 Replies
- Last post
by NAU_Robert
- Before continuing, please open VS 2005 create a new project of any type, and when it prompts you for a folder to create the project in, click the browse button beside the textbox.
That is EXACTLY what I'm looking for. A control that is similar to the open file dialog, yet returns a folder name instead of file names.
Please do not mention the Folder Browser Dialog as it does not have
-
- How do I make the close button on a Form close down threads?
by Sam Pearson
- 3 Replies
- Last post
by Mario Cossi
- I've got an application that creates some threads and runs some methods in them. It also loads a Form. When I close the Form, though, the methods continue to run. How can I make it so that, when I close the Form, all the other threads are killed
This sounds like it has an obvious solution and I don't want to waste others' time, so if there's a link I can refer to for figuring this out, I'd rea
-
- Boundfields in GridView are empty during RowUpdating, except read-only field, why?
by Charlie Zeng
- 6 Replies
- Last post
by satoriman
- I am binding several boundfields to GridView at run time, one of them is readonly field. I set AutoGenerateColumn to false, AutoGenerateEditButton to true.
foreach ( DataColumn dataColumn in (( DataTable )Session[ "dataTable" ]).Columns)
{ BoundField boundField = new BoundField ();
boundField.DataField = dataColumn.ToString();
boundField.HeaderText = dataColumn.ToStr
-
- scroll to bottom of a textbox
by BeNiceImNew
- 2 Replies
- Last post
by BeNiceImNew
- Sorry for duplication of posting - also posted under a slightly different topic as it seemed relevant. Seems like a simple idea I just want my text box to display already scrolled down to the max.
My code fragment is included below.
What I want is for the textbox to contain the reams of info (don't know if it matters but includes newlines) stored in my arrayofoptions object - but to disp
-
- How to export data from GridView to plain text file?
by wwy94621
- 10 Replies
- Last post
by CharlyBoy_Mexico
- Hi,
I need to export data from GridView to plain text file, but I have no idea about this. Does anybody know how to do this
Many Thanks.
-
- Unwanted event fired on databounded control, after calling DataAdapter.Fill
by staik
- 1 Replies
- Last post
by Ken Tucker
- Hi!
I've got a TextBox data bounded to a DataTable at design time.
1) I'm filling the DataTable with the DataAdapter.Fill method.
2) I'm adding the handler for TextChanged event at runtime, after filling the DataTable.
Right before the windows displays, the TextChanged event is fired. Why is that
If I don't use DataAdapter.Fill, but simply add a new row to my DataTable, nothings fi
-
- Using CodeDomDesignerLoader
by Plane Fun
- 2 Replies
- Last post
by Plane Fun
- I am creating a form designer for use within an application, but I am having a problem. Playing with the example on the MSDN magazine tool. If I drag one of the base control, it seems to work find, but if I drag over a custom control I created, it doesn't seem to display on the designer, and no error seems to occur. If I use the BasicHostLoader, it seems to work fine.
If someone knows what I am
-
- Data type mismatch in criteria expression
by Zara28
- 12 Replies
- Last post
by BonnieB
- Hello I am having a problem with a data type mismatch in a criteria expression. Here is the code
Try
OleDbConnection1.Open()
Dim command As String
command = "delete from Stock where Prod_ID = '" & TextBox6.Text & "';"
OleDbDataAdapter2.DeleteCommand.CommandText = command
OleDbDataAdapter2.DeleteCommand.ExecuteNonQuery()
Catch exceptiono
-
- passing information betwen forms.
by nikos_22
- 1 Replies
- Last post
by nobugz
- I have a program with 4 forms and each form has textboxes were the user writes settings like AppWizard.
The program start with form1 and goes with steps form2 , form3 , form4. I want to implement a "previews" button in each form except form1. From form1 i go to form2 with this.
form2 ^f=gcnew form2(); f->ShowDialog();
I dont
-
- richtext box display in different color format
by Niku
- 4 Replies
- Last post
by Niku
- Hi, I have richtextbox and in that i would like to display message in custom format title : titlename message : message details error : <red> error message <red> details : detailsmessage I can now align this using courier new font but i would like to display error and error message in red color so after i generated message can i display error message in red. Thanks, Nik
-
- how to correct this?
by Sathyanarayanan
- 2 Replies
- Last post
by Zhi-Xin Ye - MSFT
- i want to send a mail from vb.net windows application.using the following code can't send mail. cmd = New SqlCommand("select email from tblCompany", con) dr = cmd.ExecuteReader While dr.Read sb.Append(dr.GetString(0) + ";") End While Response.Redirect("mailto:kumar@indocanapparel.com Bcc=" + sb.ToString) in this code sb is string builder,dr is sqlda
-
- Linking cells from one DGV to other DGVs
by Fex
- 7 Replies
- Last post
by Fex
- I have a main editable DGV containing a list of user-defined data. I want the user to drag a row from here to other DGVs and have this data correlate back to the main table. Such that if the user modifies data in the main DGV (the only place they can), all the sub-DGVs where they dragged this data will also reflect the update.
Is there a "best" or "simplest" method for a