Answer Questions
viki Windows Control Collection
Hi All, I am Quite new to VB.NET. I have used a following Code like this to access the Controls using Control Name but it seems that it is not possible to access the Controls using Control Name instead we have to access them only through Index private Function GetControlText(strControlName as string) as string GetControlText = me.Controls(strControlName).Text End Function In VB.NET seems that i have to access them through like ...Show All
trimbo Sample Code: TreeGridView - collapsing/expanding DataGridView
I've just started a blog and the first main post is a sample that I wrote to customize the DataGridView to support collapsing and expanding. I call it a TreeGridView: http://blogs.msdn.com/markrideout/archive/2006/01/08/510700.aspx Let me know what you think! -mark DataGridView Program Manager Microsoft This post is provided "as-is" Can you post the ...Show All
Deadman can't understand error...
Hi, This is what I'm doing: DataTable consTable = new DataTable("Table1"); consTable = this.dataSet.Tables["Table1"].Copy(); DataRow[] consRow = consTable.Select("ID<>'"+Int32.Parse(this.idForm.idLabel.Text)+"'"); foreach(DataRow row in consRow) { row.Delete(); } this.consultasForm.SetDataBindings(consTable); I copy ...Show All
NyaRuRu Treeview control
Say I have a collection of objects which I wish to display in a tree view control, what is the easiest way of storing a reference to a particular object, assuming the text displayed in the Treeview control is not unique (and therefore I cannot simply use the text to look up the object) so I can look up the object that the user has selected. Hope you can help with this Newbie question Thanks, Matthew ...Show All
Sorgavana Bound Data Grid View not refresh (Thread1 DataTable.Add) (Thread2 bound DataGridView )
I have two threads. In Thread one i create and DataSet and add Row to an DataTable. The other Thread(FormThread) has an DataGridView which is bound to this DataSet. The DataGridView does not refresh after add new Rows ! I tried BindingSource too. DataGridViewBinding on Constructor: RepresentationForm( mpDS ds, int entryID) { this . mpDS = ds; this .entryID = entryID; string tab ...Show All
ReNeLaDy draw control runtime in C#
I want to draw a control at runtime with dynamic coordinates (X,Y,height,weight), but i can not do that. Can you help me Example: i want to draw a button control at runtime by click a button1, then drag mouse to specify control's coordinates.  ...Show All
Omprakash Critters that throw exceptions intentionaly..
**** An exception occurred in a 'essa': kocur.david.creatures.locust.IntentionalException: Sorry charlie! at kocur.david.creatures.locust.Locust.AttackedEvent(Object sender, AttackedEventArgs args) at Animal.OnAttacked(AttackedEventArgs e, Boolean clearOnly) in c:\fxdev\samples\Terrarium\OrganismBase\animal.cs:line ...Show All
Jeltz Saving Files From ListBox
How might I go about saving items from the listbox to a specified area on my hdd I have it showing files from a LAN, then after selecting a file, how do I save it File.Open will open the file, then you read the contents and save it back out to another file, again using File.Open. Again, check the documentation to learn more about using files. In that case, I think you're there. You dont need the for loop. Just run the filecopy and y ...Show All
Parrotboy Overriding ControlCollection.Add()
I have a control that hosts other controls. I'd like to manipulate the control before it is added to the Controls collection but the only hook I see is through OnControlAdded which is too late in the process (control is in the collection, layout performed, etc). There is no OnControlAdding that would allow me to preprocess the control being added. It also does not appear possible to override ControlCollection.Add() since the Controls property on ...Show All
Johnson Maynopas About arquitecture
My scenario is the next: I deploy my application to my clients with ClickOnce, but my clients can modify the code of the application (adding new attributes to the classes), and can personalize the user interface. How I can deploy a new version of my application to my clients without breaking the changes of my clients I need help. Devices do not have ClickOnce, must be wrong forum. Moving to appropriate ...Show All
Sergio Olveira New installation issues
Hi, I downloaded the server (Beta 1) for Terrarium. I am checking both the database and web site checkboxes on the installation wizard. The installation starts and I get a progress bar that moves along. However before I get to the end& ...Show All
LTA Outlook datetimepicker
hi.. how i can use DateTimePicker Control that show me Ar-Sa Months...is there a way to make the control behave like ms oulook datetimepicker.. Best Regards.. ...Show All
dmbrubac How to fill empty bound DataGridView with empty rows
I'd like to have my empty and partially empty bound DataViewGrids be filled with empty rows (so none of the gray grid background is ever showing). Is there any way to do this Thank you No. You'll either have to manually paint the appearance of rows or manually add rows to your datasource. -mark DataGridView Program Manager Microsoft This post is provided “a ...Show All
Oleg Krupnov custom tabcontrol + tooltips
I was making a custom tabcontrol and the tabs are just drawn on the screen and simple hit testing is used to switch tabs. Now I need tooltips for the tabs. Since tooltips are centered around controls, and not rectangles, I'm not sure what to do. Should I place controls where the tabs are, or is there a way to use rectangles + tooltips I wonder how Windows.Forms.TabControl does it. Windo ...Show All
java2net Deploying a UserControl with an ActiveX control in Internet Explorer
Has anyone had any success deploying a windows form usercontrol with an activex control embedded in it on an html page in Internet Explorer. I have a strong named active x control and a strong named user control. I have added the object tag&nbs ...Show All
