-
- Creating a form with Scroll Bars??
by kjak
- 2 Replies
- Last post
by Gavin Jin - MSFT
- Hello, Fairly new at Windows Forms... I can make forms that contain controls that will fill the form no matter what size it is. Now I need to know how I can create a form that has a predefined window size, but allows the user to scroll down to enter values in the underlying controls. Can anyone guide me through this
-
- Load MHT files open as stream/string in WebBrowser contol
by Death Spirit
- 3 Replies
- Last post
by BinaryCoder
- I'm trying to load an MHT file to a WebBrowser control from a stream. If I use the Navigate method, there's no problem. However, if I use the DocumentStream property it doesn't load correctly. Is there any way to load it directly from a stream, without saving a temp file on disk I tried: WebBrowser1.DocumentText = global::TestProject.MyResourceFile.MHTFileName; But it's print the content of the f
-
- Localization using .resx or Database
by Gravy
- 2 Replies
- Last post
by papadi
- Hi
I am looking in to writing a c# application in .NET 3.0 and localization has been highlighted as an issue.
I haven't really written a localized app but I am aware of using resources and dotnets ability to choose the correct localized assembly when required.
However, someone has suggested to me they would like to use a database in order to provide the localized strings. My first thought
-
- populate DataGridView from Stored Procedure
by Jassim Rahma
- 7 Replies
- Last post
by hrubesh
- I am using this code to populate to datagridview but nothing is happening and when I try DataBind() at the end it throws an error (dataGridView does not contain a definition for DataBind)
sql_connection = new SqlConnection ( "Data Source=.\\SQLEXPRESS;initial catalog=ws2connect;integrated security=true" );
sql_command = new SqlCommand ( "sp_get_customers" , sql_
-
- Change second form's selected tabPage in tabControl
by Tess_H
- 2 Replies
- Last post
by Tess_H
- Hello,
Any advice or suggestions are appreciated! I'm trying to change the selected tabPage in a tabControl in a second form depending on an option chosen in the main form.
So far, I have this in the main form (and tabControlDetail is on the frmDetail form):
frmDetail myForm = new frmDetail ();
myForm.SelectNextControl( TabPage );
... I know--not much. The tabControl.tabPage pr
-
- text change colour??
by Poy
- 6 Replies
- Last post
by Poy
- Hi Everyone...
below doesn't work! any ideas
so frustating!!!
Code Block
If txtCompleted.Text = "Yes" Then
lblCompleted.DefaultForeColor.Red()
End If
-
- can't remove or stretch background image in visual basic 6 (sp6)
by icomeinpieces
- 3 Replies
- Last post
by NumberKruncher
- i know this is prolly a big newbie question but...
i can't seem to remove or stretch a background image on one of my forms in my visual basic 6 project.
i added it via picture property in the form's properties and now it says (bitmap) and i can't make it say (none) to clear the picture.
thanks in advance
-
- MDI Client should manually register in menu without beeing instantiated
by aspatz
- 7 Replies
- Last post
by aspatz
- I build an MDI Application. Each different kind of MDI Child should be able to selfregister in a global menu bevor a concret Instance is created. Is this possible, and how. The best form me would be a base class for all MDI Childs where this functionality is covered. I am looking forward for your help. Thanks.
-
- updating window in multithreaded app
by supagu
- 1 Replies
- Last post
by Deobrat Singh
- okay im making a mesh viewer for my engine in c#. Now my engine runs in a window, parented to a window in my c# application. My engine runs in its own thread started by my c# application. When i've finished rendering i tell opengl to swap buffers, which would normally display the contents to window, however in my c# appliation it does not update the window. How ever, if i put a call to my engine
-
- Leading And Kerning of the Text
by vijay.bhaskar@grey
- 4 Replies
- Last post
by vijay.bhaskar@greypad.com
- Hi friends,
I want to know about "Leading and Kerning of the text". For this i need some help from you.
Which site is good for it.Please give some Links...
Thanking You Vijay
-
- ComboBoxes again
by Katzs
- 6 Replies
- Last post
by Pr.wa'el
- I'm using a combobox as a dropdown menu to choose something, and when I run the following code:
Code Snippet
private void comboBox2_SelectedIndexChanged(object sender, EventArgs e) { primary = comboBox2.SelectedText; } and select something from the list, primary is ending up as an empty string. Why is that
-
- Uninstallation program
by kevdog114
- 2 Replies
- Last post
by Armthin
- Is there any way to include an uninstallation program with my setup files, and if so; how
Thanks in advance
-
- Determining when a bound business objects, or any of its children, have changed
by Anjo Gasa
- 1 Replies
- Last post
by Yu Guo ¨C MSFT
- I have one main business object in an application, which is a container for various other business objects, themselves container other business objects. It is bound throughout various aspects of the user interface using a BindingSource and its Current property. The object can then be "processed" so to speak, any number of times. I would like to be able to tell if the object has changed i
-
- how to trigger BindingCompleteState.DataError
by Matthias
- 2 Replies
- Last post
by Matthias
- Hello,
the BindingCompleteState that comes with a BindingComplete event has three possible values: Success, Exception, and DataError. The former two are quite clear. However, I have no clue under which circumstances the latter - DataError - could occur. If there is any chance to make use of it in the context of validation and data binding, particularly to custom object datasources, I would
-
- Coloring TabControl.
by AlexBB
- 14 Replies
- Last post
by Mick Doherty
- As far as I can see TabControl object has no properties of either Back or ForeColor. Is it possible to assign these properties to this object
Another question:
TabPage object does have both properties but when you assign a color to it it does not cover the whole TabPage: the tab itself remains gray. Is it possible to give it colors
Many thanks.
-
- BindingNavigator disappears from Container UserControl at Design Time
by emersonfxbx
- 0 Replies
- Last post
by emersonfxbx
- Hi, I have made a Container UserControl (with "ParentControlDesigner" attribute "trick") with a BindingNavigator inside it (when the UserControl is dropped over a form, the BindingNavigator appears semi-transparent). When I put that usercontrol on a form and drop some controls inside it, it shows properly. After the first run, the BindingNavigator control disappears from the Us
-
- How do I choose an event from a control using the designer (c#)
by KhRo
- 4 Replies
- Last post
by Will Kacy
- Hi all. Probably this question was already answered or it's increadibly easy to answer. But I'm turning crazy, because I can't find how to do this using c#. With vb.Net I simply double click a control, the "default" event appeared on code view, and then I can choose from the comboBox in Visual Studio the event I need. But in using c# it doesn't seem to work this way. There's got to be th
-
- How to avoid loops with handlers?
by Henri Koppen
- 5 Replies
- Last post
by Rong-Chun Zhang - MSFT
- I have a form with two comboboxes, only one is allowed to be filled when saving the form.
So I have an on index changed handler on both the comboboxes.
When combobox1 is changed Combobox 2 -> combobox2.SelectedIndex = -1
When combobox2 is changed Combobox 1 -> combobox1.SelectedIndex = -1
However, this creates a loop which results in both comboboxes beiing empty, because
-
- is there a control to, create/edit/view reports?
by allison_h
- 7 Replies
- Last post
by TaylorMichaelL
- Hi,
i was wondering is there a .net control or an external control i could buy that would allow me to view create and edit sql reporting services reports from a windows form
I want to allow users to view create or edit reports without having to leave my application or use another program.
Thanks.
-
- Image on top of all windows
by Ken Lionheart
- 14 Replies
- Last post
by nobugz
- Hi I need to place an image (like a logo) on the screen, and I need it to be on top of every other window. So for example, if I open Windows Explorer, the image should be on TOP of it so I can see it. I need it to be on top of everything, and no window or application can cover it. Also, I need to be able to positiotn this image whereever I want on the screen, left top, centre etc... anywhere I cho
-
- DataGridView visual inheritance
by PL01
- 3 Replies
- Last post
by Rong-Chun Zhang - MSFT
- Hi,
can I visually inherit DataGridView, as described in:
http://msdn2.microsoft.com/en-us/library/aa288147(vs.71).aspx
I have a custom form with some controls (including DataGridView) which I would like to inherit other forms from.
My aim is to have the ability to change DataGridView (DGV) properties like columns, databinding, etc. on derived form.
Even when set
-
- Add check box to Binding Navigator control?
by Job Lot
- 4 Replies
- Last post
by Zhi-Xin Ye - MSFT
- how can i add a check box to binding navigator control
thanks
-
- Need Help With SendKey Function
by Nitsua
- 2 Replies
- Last post
by Nitsua
- Hi All, I am a new Visual Studios user and new C# programmer. Currently I am trying to figure out a way to automate a program install (hitting Next buttons, and then Finish basically) by the way of SendKeys, but I am running into problems.
Right the program brings the install window to the foreground and sometimes sends the Enter key correctly. Not really sure why it only works sometimes, o
-
- Tapping the Enter Key
by Kapalic
- 5 Replies
- Last post
by Kapalic
- How can I move the focus to a button when I press the enter key in the Text Box
Thnx!
-
- Text Box Entry Finished
by rutlean
- 4 Replies
- Last post
by Ðãv? S. Â??????
- Does anyone know of a way to tell when a user is finished entering text into a text box. Are there any kind of windows events that represent that Other than a button click or another mouse click altogether, I can't think of a way. Any suggestions Thanks