|
Hey Pete thanks very much for your response. Much appreciated.
Have a good one.
When the game is over the Pawn and the King go into the same box.
|
|
|
|
|
I have a windows form application in which have a separate thread for a server. If i set a breakpoint somewhere inside the server code part, visual studio locks up for about 7 seconds and then if i press F10 or F11 nothing happens and the program does not stop at the next line. It behaves as if i have pressed F5 but the program does not work as expected, for example a client program cannot connect to the server anymore.
If i don't set any breakpoints the program works as it should.
I just want to debug the program...
This problem appeared when i reinstalled Visual Studio. I also tried Service Pack 1, but it's the same.
--------------------------------
visit: http://pmartike.deviantart.com/
|
|
|
|
|
You might want to try the following and see if it helps:
Tools -> Options -> Debugging -> General -> Uncheck "Enable property evaluation and other implicit function calls"
You'll only want to shut this off when dubugging mutli-threaded applications. I can't remember the exact reason, but I once found a message on MSDN about this when I was having problems debugging an application that used the BackgroundWorker Class.
|
|
|
|
|
It works! Thank you!
--------------------------------
visit: http://pmartike.deviantart.com/
|
|
|
|
|
Can any one can tell me how i Export DataTable To Excel file.
Yogesh Pekhale
pekhaleyogesh@gmail.com
|
|
|
|
|
Hi,
see this link and modify if you wanna do something different,
Link[^]
Link[^]
Thanks,
Sun Rays
To get something you must have to try once.
My Articles
|
|
|
|
|
I create a dataview of my dataset, then i add a rowfilter to it then when i set the datasource to a datagrid works perfectly.
But when i loop trough it so i can add it to a treeview i wont filter,
Im clueless.
DataView dataView = dataset_filter.Tables[0].DefaultView;
dataView.RowFilter = "artiestnaam like '" + tb_filter.Text + "%'";
dg_overzichtgroep.DataSource = dataView;
//loop trough dataset add names to TreeView
for(int i=0; i < dataView.Table.Rows.Count; i++)
{
string s = dataView.Table.Rows[i]["artiestNaam"].ToString();
if(tv_filter.InvokeRequired == true)
{
//use invoke to add to the treeview becuase of the seperate thread
tv_filter.Invoke(new UpdateTextCallback(this.AddToTreeView), new object[]{s});
}
else
{
tv_filter.Nodes.Add(s);
}
}
Thanks!
|
|
|
|
|
Do you have this working yet?
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
Hello,
I am developing an application and i want that ContextMenuStrip will appear on tree view subnodes Not on nodes.
+MasterNode
Node1
SubNode1
Node2
SubNode2
Node3
Subnode3
I want context menu strip should appear only on subnodes not on nodes.
|
|
|
|
|
You can either
1. Set the context menu individually for each node rather than for the entire treeview
or
2. Set the nodes tag property or something to indicate whether it should display the treevies's context menu (Or create your own and inherit from System.Windows.Forms.TreeNode and add a boolean property) and check that value in the events that fire before the comtext menu is shown to disable it.
|
|
|
|
|
In my project i use the system trace to trace error log.
but do someone help to know where is the path of the file that contain this trace.
best regards,
dghdfghdfghdfghdgh
|
|
|
|
|
The debug messages are sent to the Output window (Debug -> Windows -> Output) by default. If you want to capture those trace messages to a file, you will need to create a TraceListener and add it to the Debug Listener collection.
TextWriterTraceListener myTrace = new TextWriterTraceListener(File.CreateText(@"c:\Output.txt"));
Debug.Listeners.Add(myTrace);
|
|
|
|
|
Hello
I have the following problem. When I start my program I create an OleDbConnection to a DB2 and use this connection for different requests. But after about 8 minutes I get the following error: "OleDbException System.Data.OleDb.OleDbException: [DB2/6000] SQL0551N "xxx" does not have the privilege to perform operation "EXECUTE" on object "NULLID.yyy". SQLSTATE=42501". What does that mean???
Thanks for your help.
Greets
pkoeppe
|
|
|
|
|
For a work around I open a new connection for each request and close the connection after the request. But here the connection seems not to be closed really. The connection state is closed but the database says there is still a connection. After some request I get the error "Open Connection failed System.Data.OleDb.OleDbException: SQL1226N The maximum number of client connections are already started. SQLSTATE=57030". I don't unterstand this, I close each connection after the request. When I close my program then the connections are closed "really", what is the problem???
That's the way I do my requests:
public DataTable Request()<br />
{<br />
try<br />
{<br />
using (OleDbConnection connection = new OleDbConnection(Constants.DB2_CONNECTION_STRING))<br />
{<br />
using (OleDbDataAdapter da = new OleDbDataAdapter(request, connection))<br />
{<br />
using (DataTable dtResult = new DataTable())<br />
{<br />
da.Fill(dtResult);<br />
return dtResult;<br />
}<br />
}<br />
}<br />
}<br />
catch (Exception ex)<br />
{<br />
MessageBox.Show(ex.ToString());<br />
}<br />
return null;<br />
}<br />
|
|
|
|
|
hi i have a stored procedure which return the value of user name and i want to populate the ComboBox whit the written value how i do that
wasim khan
|
|
|
|
|
Set the display member to the name of the column you want to show, then bind to the dataset
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Do you have this working yet?
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
yes it wrok good and sory for asking thanks Sooo late
wasim khan
|
|
|
|
|
Thought I'd just drop you a line to see if all was well
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
|
|
|
|
|
Hello all,
i am working on .NET 2.0 DataGridView (winforms) sorting.
I want to add checkbox in the column header & i want to implement sorting also.
if i specify automatic then it was not working.
any sounds?
Ramana
|
|
|
|
|
Hello everybody,
i set the datasource of the DataGridView to an ArrayList (with Objects)
At the beginning the list is empty, then it gets a value.
So i need to update the Grid:
I set the datasource to null and re-set it to the arraylist.
The Grid has now one row, but in this case CurrentRow and CurrentCell is <null>
How can i set CurrentCell & CurrentRow to the first line?
BTW: Grid[0,0].Selected is true if CurrentCell == null
Big thanks in advance
|
|
|
|
|
hi.
I want to build an aboutBox DLL, which get any kind of project(project assembly) and show it on the aboutBox.
how do I do it?
|
|
|
|
|
You Can Easily Do it using Reflection !!!
There is a Assembly Class. Usign That you can retrive all inforamtion runtime.
You can also Check Assembly Values in Solluation Explorer > Properties > Assemblyinfo.cs
If any Query You can Ask me !!!!
Good Luck !!!
|
|
|
|
|
You can use AppDomain.GetAssemblies() to get a list of the Assemblies which have been loaded into the program.
Does anybody know how to get a list of the assemblies (dlls) which an application will use even if it hasn't loaded them yet?
|
|
|
|
|
Hi,
I am working on a windows application in which I have a MonthCalendar Control. Basically its a Reminder application. I want all the dates should be selected on which user has set reminder. if I have set reminder for 15th Dec, 18th Dec, 25th Dec then this dates should be selected in the MonthCalendar Control.
Can any one plz let me know how can I acheive this task.
Best Regards,
Chandan Kumar Gupta
|
|
|
|