|
Check your computer memory aswell, is your computer running low memory due to lare number of processes running.
And secondly, my friends suggestion might work out that your application might stuck out due to replication of the object in a loop.
|
|
|
|
|
Hi
I have 2 queries,1 query for datagrid anad the other for textbox in one form.
How can I use dataset,dataAdapter,dataview…?
Do I need one dataset or two?
Please help me
Thank you very much
|
|
|
|
|
Please post what exactly your problem is. What you want to do.
Ahsan Ullah
Senior Software Engineer
|
|
|
|
|
|
you need only one dataset.Add it with your table name in dataset, then while assiging it to datagrid and TextBox give the appropriate Datamember name .
like
datagrid.datamember = Tablename for textbox
datagrid.datamember = Tablename for datagrid.
datagrid.dataSource = datasetName.
|
|
|
|
|
but i have one table and 2 query
now do i need one dateset?
|
|
|
|
|
Hi all,
I started my first xml writeing /reading project
I want to save all the text in the textboxes of the form to an xml file ( save file) and then load it back later.
I have the writing XML down ( i think please let me know if you have ideas)
but here is an example of my output
?xml version="1.0" encoding="UTF-8"?
Root
FileInfo
Region Region="Region1" /
TourName TourName="mens2006" /
Username Username="rbarbrow" /
timestamp TimeStamp="9/2/2008 1:25:26 AM" /
/FileInfo
MatchInfo
Match TB_32_C="No Chatter" /
Match TB_32_U="1-North Carolina (32-2)" /
Match TB_32_L="16- Play-In-Winner" /
Match TB_32_S="Raliegh, N.C., Friday 7:10" /
Match TB_33_C="No Chatter" />
Match TB_33_U="8-Indiana (25-7)" /
Match TB_33_L="9-Arkansas (22-11)" /
Match TB_33_S="Ralegh, N.C., Friday, 9:30" /
/MatchInfo>
/Root
The idea is that i have textboxes TB_##_(U,S,L,C) and that i can read what textbox and what text and then read the text back in
the problem is that i can read the text with the .getattribute(i) method ("no chatter" or "1-North Carolina (32-2)") but i can not read the attribute name ( TB_32_C or TB_32_U)
So question 1 is: How do i read the Attribute NAME?
question 2 is there a way to read only things in the MatchInfo Node? ( if node is the right word)
Thanks so much for any help
|
|
|
|
|
How do i read the Attribute NAME?
Use XmlTextReader
is there a way to read only things in the MatchInfo Node
Use XmlNode
Ahsan Ullah
Senior Software Engineer
|
|
|
|
|
my cup runith over
Like i said in my orginal post this is my first time working with XML at all let alone in c#
I got the xml reader part thats how i am able to get the atrubut value. however when you create a new attrubute you give it a Name AND a value
i can read the value of the attrubute but i can not figure out how to get the orginal name ( in this case the textboxs name)
I have no idea what you implying with the use xmlnode
|
|
|
|
|
Why not
<Match Name="TB_32_U" >1-North Carolina (32-2)</Match>
|
|
|
|
|
|
Don't use data for the name of an attribute.
|
|
|
|
|
Hi All,
I have done a windows application which is running very fine. and I made a windows service which is also running fine.
Now my windows service is on system A.
Now my windows application is on system B.
From system A through windows service I have to invoke the windows application on system B which the form consisoting in it.
Right Now Iam able to invoke the process(windows application)which is on system B from windows service which is on on system A.
But the form/pop-up is not opening in system B. but Iam able to see the windows app process in Task manager of system B.
Now how to show form/pop-up of winodws app in system B where it is invoked by system A.
Thanks
Kinldy help me...
|
|
|
|
|
Hi,
If you're invoking a form that you have created, you can add this.Show(); to your remote form constructor, but if you're invoking a windows application "like calc.exe", make sure you dont have your process object hidden property set to true.
All generalizations are wrong, including this one!
(\ /)
(O.o)
(><)
|
|
|
|
|
Hi,
Im new to .net
Can any help me in getting the [b]resultset of a query in MSACCESS using C#[/b]
THANKS in advance
|
|
|
|
|
|
i have added dynamically ToolStripMenuItem to ToolStripDropDownButton in my button click event the code is
ToolStripMenuItem Test = new System.Windows.Forms.ToolStripMenuItem();
Test.Text = "Hello" + i;
Test.Tag = "Hello" + i;
toolStripButtonUndo.DropDownItems.Add(Test);
i++;
this code is working fine but there is a event called ToolStripDropDownButton_DropDownItemClicked in that event i was trying to remove the ToolStripMenuItem on which user has clicked but not getting success because i did not work before with ToolStrip so that is why i have lack of knowledge in ToolStrip in .net v2.0. so plzz help me in such a way as a result i will be able to remove dynamically ToolStripMenuItem from ToolStripDropDownButton in the event called ToolStripDropDownButton_DropDownItemClicked. so plzz help me with small code snippet if possible. i will be looking forwar for fast response.
Thanks.
tbhattacharjee
|
|
|
|
|
Hi,
One more question regarding toolstripdropdownbutton.i am giving shortcut keys to the menustrip items,
toolstripdropdownbutton..where as when toolstripdropdownbutton has one or more menustrip items iam unable to expand the toolstripdropdownbutton with the shortcut key.i have given the shortcut key through the designer.pls let me know what shd we do to expand the toolstripdropdownbutton through
shortcut key..
Rgds
YM
|
|
|
|
|
Hi guys, I want to know that what if I dervied a class from a Control class and this custom class can have many other controls about 30 controls like image, button, textfields, etc. So if i dispose the custom class object does it dispose all the inner controls as well. or Do I need to implements dispose method from IDisposable interface and then dispose each of the inner controls.
public class customClass:Control
{
}
or
public class customClass:Control,IDisposable
{
}
|
|
|
|
|
As the Control class implements IDisposable , you just need to override the void Dispose(bool) method. Call base.Dispose() to make sure the control classes dispose is also getting called.
|
|
|
|
|
thanks for replying, but when i write like
protected override void Dispose(bool disposing)
{
}
i don't get the Dispose function name from the list i am using VS2005 framework 2.0
|
|
|
|
|
Take a look at this article[^].
If any of the base classes in your inheritance chain implements the IDisposable interface, overrides void Dispose() , or overrides Finalize , you should simply override Dispose(bool disposing) , adding your cleanup logic and making sure to call base.Dispose(disposing) as the last statement.
Scott Dorman Microsoft® MVP - Visual C# | MCPD
President - Tampa Bay IASA
[ Blog][ Articles][ Forum Guidelines] Hey, hey, hey. Don't be mean. We don't have to be mean because, remember, no matter where you go, there you are. - Buckaroo Banzai
|
|
|
|
|
i'm trying on sending the server public key to the client by using an xml file.i want to know how retreive the public key from the xml file in client progrm.
|
|
|
|
|
Hi,
I have a DataTable bound to a DataGridView with this code:
dataGridView1.DataSource = myDT_Items;
I'm updating a DataGridView with this code:
dgvRow.Cells["ItemSize"].Value = 55;
Now I want the DataTable to reflect the changes made to the DataGridView. Currently I'm using:
myDT_Items.AcceptChanges();
Q: Is there another way to Synchronize DataTable with DataGridView when changes are made to the DataGridView?
Thanks,
Ron
|
|
|
|
|
Why are you using the synchronization? Are you using datagridview some where else as well?
If not then do the changes directly in the datatable.
Ahsan Ullah
Senior Software Engineer
|
|
|
|