-
- Overriding DefaultValue on a control inheriting from TextBox
by Billkamm
- 14 Replies
- Last post
by nobugz
- I have composite control I am creating that inherits from TextBox. However, when I override a property I can't seem to get the DefaultValue to change. I use the following code and when I try to add the control to the form at design time the DefaultValue of Text is "MyControl1".
Code Snippet
[DefaultValue("")] public override string Text { Any suggest
-
- Tabbed Form
by Sami Karaeen
- 2 Replies
- Last post
by Sami Karaeen
- hi
can i host a form inside a tab control
what i want to do is an MDI and isnide it some forms and i want to display them in a tab mode could this be done
thanx a lot
-
- How to prevent duplicate entry in a datagridview?
by iceman2000
- 4 Replies
- Last post
by iceman2000
- Hi, I have a datagridview control, how can I prevent user input duplicate data into the cells
for example, the 4th column is userInput, if "Computer" is already there in row 1, if the users
try to input "Computer" in row 2, column 4, they will get the error message that the name already exists.
Thank you very much!
-
- Custom editor on Property Grid using my.settings as selected object
by GerryJ
- 4 Replies
- Last post
by GerryJ
- How can I apply a custom editor to a property in the my.settings class I have tried adding the the line
<EditorAttribute(GetType(System.Windows.Forms.Design.FileNameEditor), GetType(UITypeEditor))> _
to the property definition in settings.Designer.vb like this:
< Global .System.Configuration.UserScopedSettingAttribute(), _
Global .System.Diagnostics.DebuggerNonUse
-
- Background worker issues
by deodorant
- 8 Replies
- Last post
by deodorant
- Hey,
I am having a problem updating my form from a background worker. When I compile the code below, it's like the background worker does not exist at all, the form becomes unusable and the listview does not update until it is completely done adding items. Any ideas on what's wrong (CalculatePercent also doesn't finish until the listview one does)
Code Block
private
-
- Multi-Threading
by Wil Burton
- 7 Replies
- Last post
by nobugz
- I have created a multi-threaded application. I use the methods Control.InvokeRequired property Control.Invoke method, to communicate with the UI thread. I have a manager object which creates several worker objects, which all use their own thread. To send events back to the manager object I had to inherit from Control to get the InvokeRequired/Invoke methods.
My question is, how could I acc
-
- Problem lining up text in RichTextBox and ComboBox. Snapshot inside.
by Aleksey Nagoga.
- 5 Replies
- Last post
by Aleksey Nagoga.
- Hi, All
I have a control that contains a RichTextBox and a ComboBox lined up next to each other. When I set RichTextBox's BorderStyle to None and ComboBox's FlatStyle to Flat, the Text in the controls is not lined up to each other anymore. None of these controls have vertical justification of the text and the controls are Docked to the Left so I cannot change their Top property at runtime.
-
- RichTextBox and multiple fonts
by BrenoM
- 3 Replies
- Last post
by BrenoM
- I have a RichTextBox-based editor in which I can change the text effects (bold, etc) as well as the font (family, size).
I can use the SelectionFont property to query and change the curent font.
However, if multiple fonts are selected, this is null.
So I can't set a selection encompassing multiple fonts to (say) bold, like I want to.
I have found other people asking the same question,
-
- Adding New Records
by Matt Klinker
- 1 Replies
- Last post
by Ken Tucker
- I'm having difficulty setting up my databinding to allow for a new record to be inserted. On one side of my form I have a grid with just a ID and a name (lets say we're doing with People entities) and on the other is a panel with say 10 diferent textboxes for various fields (address, phone, etc..) Both the grid, and all detail textboxes are bound to a bindingsource with a dataview as it's datasour
-
- Making A Label Resizable? Possible?
by bobber205
- 2 Replies
- Last post
by bobber205
- I have a label where by code I put various strings of various lengths. I would like to make the label as big as the window so when I select for the text to be "centered", the text also looks centered in the window. However, whenever I try to resize the label, all I can do is move it around. Thanks for any help! This is in C# Express.
-
- Property grid setting focus to input field assosiated with grid item
by Jogesh Grover
- 6 Replies
- Last post
by Jogesh Grover
- HI,
I have a property grid i am able to set focus to particular griditem of property grid but i want to set focus to the assosiated input field with the seleted grid item.
-
- Treeview - Multi Color Nodes
by BBBSCoder
- 5 Replies
- Last post
by Jeris
- Is there a way to use a treview and have multi color nodes. I am aware you can set the foreground/background colour on a node, but can you have something along the lines of data = value As the text on a node ( preserving the colours ). Any help appreciated. RK
-
- Hiding tab buttons on tab controls
by &#58;&#41;
- 9 Replies
- Last post
by :)
- Hi. I'm creating an application where I have ten pages on one form that I allow the user to flip through using BACK and NEXT buttons. How could I accomplish this I'm thinking of using a tab control, but I don't know how to hide the tabs. Any ideas
Thanks so much!
-
- help with 'keydown' events
by dxdrummer
- 9 Replies
- Last post
by dxdrummer
- hey, i'm new to programming and have been learning c# at my own pace. i'm having problems however understanding the keydown/keypress events. the program i'm working on has a button labeled "1", and it works fine when clicked, but i'd like to add a keydown event so that when you clicked the number pad (or the numbers on top of the keyboard) on the key "1" that it would activate
-
- Threaded Progress Status Bar
by TMurray
- 3 Replies
- Last post
by TMurray
- Hi, I'm working on an application that needs to build a fairly complicated property grid control when it opens a new document. This process can take a little time, so I wanted to drop an animating progress bar in the status bar of the main window much like Visual Studio does when it is performing a background task. So the idea would be that the main app spawns off a worker thread to load the docum
-
- Type.GetType returning null
by trisonics
- 11 Replies
- Last post
by trisonics
- I have a windows forms project in VS 2003 which I migrated to VS 2005 after migration I found out that the following code does not work after migration
strModName = "FX.FORM.UI.REPORT.FRMRPT,FX.FORM.UI.REPORT";
Form objCurrFrm = (Form) Activator.CreateInstance(Type.GetType(strModName));
this is becaue Type.GetType is returning null.
I tried using the Assembly.Get
-
- DataGridView and BindingSource does not allow updates?
by SpoBo
- 1 Replies
- Last post
by SpoBo
- Hi,
I have been looking for over 4 hours to actually update my database with a bindingsource. I just can not believe why this isn't working I'm doing the following: Opened up VS.NET 2005 (Visual Basic project). Created a local .mdf database. Created a new Typed Dataset and added a new table with tableadapter called Opemerkingen and OpmerkingenTableAdapter (opmerking=remark in dutch fyi).
-
- Mouse Event
by Anu Viswan
- 2 Replies
- Last post
by TilakGopi
- Hi
I have a picture box control. i want to get call a function when mouse is clicked outside the picbox and dragged in.
The dragover,dragenter events doesnt gets fired. So doesnt the mouse hover, mouse leave events ...
is there any event which i could use for this purpose
-
- Gah! The designer is filling in my properties for me!!
by MrBones
- 2 Replies
- Last post
by MrBones
- So I've got this color picker that I've made that is derrived from a panel. It's got public properties called: Hue, Saturation, and Value. My issue is that before these values can be set, my color picker has to have the Init() function called before any of these properties are set. The designer is automatically generating code to set Hue, Saturation, and Value to 0 obviously before my Init() funct
-
- Refer to a control by name?
by Michael McCrickard
- 5 Replies
- Last post
by Michael McCrickard
- Hi,
I'm using C++ .Net. In my Windows form application, I have a group of similarly-named controls: tbAttValue01 (textBoxAttributeValue01), tbAttValue02, tbAttValue02, etc. I would like to be able to refer to the control I want by using a string variable to refer to its name. I cannot find any way to do this. In the past, I have used a integer variable to get the correct control from the form-&
-
- Custom TaskBar Button API's?
by Amr Elsehemy
- 2 Replies
- Last post
by Amr Elsehemy
- Any one can help me in finding the API i can use to make a custom task button
one like when the WindowsMedia player is minimized in the taskbar.
Thanks
-
- Insert Master-Details at once...
by Mario Andres Gonzalez
- 1 Replies
- Last post
by Zhi-Xin Ye - MSFT
- Hello... I have a master-dateil form for invoice parent in which I save info such as InvoiceNo., Customer, Date, ... the InvoiceNo is an autocomputed field that calculates when I save it trough a stored Procedure. The Invoice detail is to save info for products, quantity, etc.
The Problem is basically that I need to save all the transaction at once (master detail), but when I add the detail
-
- Setting the Code Page of a setup Database
by R.S.N
- 4 Replies
- Last post
by R.S.N
- I have a question about change the setup project language to Arabic languageĦ
In the other posts, I found this requires the following steps:
Change (codepage) settings of the database
Copy the 1033 folder under [Program Files]\Visual Studio [ver]\Common7\tools\deployment\vsddialogs
Open each .WID and .WIM and Use (orca.exe) to translate the strings in (controls) & (Propert
-
- Set height for panel when Dock style is Fill
by Ganpp
- 6 Replies
- Last post
by decyclone
- Hi,
I have Mainpanel, inside again i used two panels with top one dock style is set Fill and second one to Bottom. My question is I would like to set height equal for two panels. how to do that
-
- How to show option ShowCheckBox of DateTimePicker (a DataGridViewCell) in GridView ?
by pvphuc
- 4 Replies
- Last post
by pvphuc
- I got a class about create CalendarColumn in GridView from MSDN online. But this class has not ShowCheckBox option for user. Please tell me how I can create this property of the class. (I have try to put this property but not successful) Thanks so much! pvphuc