No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
hey guys, recently i came across a code to parse the name of an enum and was wondering if there's anything similar to doing it for a textbox: the coding looks something like this: [CODE]int result = (int)Enum.Parse(typeof(Cars.Engines), inputfixed, true);[/CODE] i would actually like to use the above code structure … |
|
hey guys, recently i noticed something funny going on with the datatable.defaultview.sort. if i query a column into a datatable as such: column_A As [the first column ] with a space before the ]. i will get an error when i reach this line of code: datatable.DefaultView.Sort = "the first … |
|
hi all, recently ran into a really hard problem for me: i have an sql command with something like this SELECT xxxxx FROM xxxxxx WHERE filter LIKE '[A]' what i would like to do is substitute [ with [[] on the condition that it is after a LIKE and is … |
|
hey guys, okay. this is another problem happening in an MDI form tab. here's the sequence: 1. create tabcontrol. 2. create tabpage. 3. add a form(form1) into tabpage. 4. add tabpage to tabcontrol. in form1, i have a textbox (textbox1) that does a validation whenever the Leave event is fired. … |
|
hi, just added an mdi form into a tabpage with the following code: [CODE]frm_ASN f_New = new frm_ASN(0); f_New.Dock = DockStyle.Fill; f_New.FormBorderStyle = FormBorderStyle.None; f_New.MdiParent = this; this.components = new System.ComponentModel.Container(); ExtremeTabPage tab = new ExtremeTabPage(); tab.Text = f_New.Text; tab.Name = f_New.Name; tab.Controls.Add(f_New); this.Text = "[" + f_New.Text + "]"; … |
|
hey guys, recently i ran into a problem. here's the scenario. i'm currently doing a tabbed mdi control and for each form added into the tabcontrol, i have a delegate events in the form to inform the main form when the form text changes in order to update the title … |
|
hey guys, this is what i want to do, i already have a ToolStripMenuItem with a few DropDownItems with events. i would then like to loop through these Items like such: [CODE]foreach (object menuitem in tlstrpmnuitmFunctionHeader.DropDownItems) { } [/CODE] and then assign these items to a ContextMenu. it would really … |
|
hey guys, was having a great time with SkyBound's FreeStyle when i ran into a very funny problem. On removing a tabpage from the tabcontrol which is using the FreeStyle component, i get an error when executing the following line: [CODE]this.Controls.Remove(this.TabPages[SelectedIndex]);[/CODE] exception thrown is: System.ArgumentOutOfRangeException was unhandled Message="InvalidArgument=Value of '0' … |
|
hi, i've downloaded the SkyBound VisualStyle dll and have included it in my custom tabcontrol. the purpose is to enable the control to retain the default windows style even after i set the DrawMode to OwnerDrawFixed. problem is after i added it into the control and set the SetVisualStyleEnhanced property … |
|
hi, i have two form Form1 and Form2 that are inherited from FormParent. in FormParent i have a protected variable Modified which will be set to true whenever anything has been modified. Form1 and Form2 are docked into tabpages. what i want to do is that when i close the … |
|
hi guys, was tinkering around with the tab control and came up with a problem. for your information, i have relied heavily on the example shown here: [URL="http://www.codeproject.com/KB/tabs/firefoxtabcontrol.aspx"]http://www.codeproject.com/KB/tabs/firefoxtabcontrol.aspx[/URL] basically what i'm doing is docking forms onto different tab pages. my problem is that after i override OnDrawItem, the xp stlye … |
|
hi people, I'm supposed to be creating something like a dynamic item number generator. for example: FROM: A 1 0 111 TO: B 2 0 112 should produce: A 1 0 111 A 1 0 112 B 1 0 111 B 1 0 112 this would be quite easy using … |
|
hi guys, i have a databound listbox. the problem is i can't save the last record i entered without clicking some other record first. the datatable just does not treat it as an added or modified record. why is this so? regards, Han |
|
hello guys, i wanted to write a query, or a view to be exact to display data from two tables as follow: 1. schedule_table (scheduleID as pk) 2. remarks (remarkID as pk, scheduleID as fk) meaning a schedule can contain many many remarks and non at all. now the problem … |