|
its in the start of web interaction
its in the end of Web interaction
its in the start of text extract
its in the end of text extract
'Testing.exe': Loaded 'c:\windows\assembly\gac\microsoft.mshtml\7.0.3300.0__b03f5f7f11d50a3a\microsoft.mshtml.dll', No symbols loaded.
The thread '<no name="">' (0xc9c) has exited with code 0 (0x0).
'Testing.exe': Loaded 'c:\windows\assembly\gac\custommarshalers\1.0.5000.0__b03f5f7f11d50a3a\custommarshalers.dll', No symbols loaded.
The thread '<no name="">' (0xf78) has exited with code 0 (0x0).
|
|
|
|
|
i read it and both the threads which should start r getting started. but GUI still freezes while these two threads execute.
|
|
|
|
|
Did you put a trace command after the new Thread(new ThreadStart(...)) line in the main code? If not, try that first. If so, did it get output? That is an important point because it will determine whether your main application is getting stuck on the creation of the thread, or on a subsequent call.
Sincerely,
Alexander Wiseman
|
|
|
|
|
its in the start of web interaction
its in the end of Web interaction
its in the start of text extract
its in the end of text extract
'Testing.exe': Loaded 'c:\windows\assembly\gac\microsoft.mshtml\7.0.3300.0__b03f5f7f11d50a3a\microsoft.mshtml.dll', No symbols loaded.
The thread '' (0xc9c) has exited with code 0 (0x0).
'Testing.exe': Loaded 'c:\windows\assembly\gac\custommarshalers\1.0.5000.0__b03f5f7f11d50a3a\custommarshalers.dll', No symbols loaded.
The thread '' (0xf78) has exited with code 0 (0x0).
The four starting lines r produced by Trace.
"its in the start of web interaction" was written before one .Start() method and the "its in the end of Web interaction" is used after .Start() method and same applies to the 2 lines below that. they r giving output
|
|
|
|
|
It seems to me that you are actually getting the trace output after you call Thread.Start and before the generated thread finishes. This suggests that your thread starting code isn't a problem at all, but perhaps something that your main code is doing after it starts the threads is causing the GUI to lock up. I would look closely at the code which gets executed on your main thread after you start the worker threads (I don't think you posted that code on the boards).
Sincerely,
Alexander Wiseman
|
|
|
|
|
its all the main() had. main function has only this
static void Main()
{
Application.Run(new Form1());
}
as i said reall execution, that is bussiness logic, when i click the button.
so all the code in
private void bt_load_Click(object sender, System.EventArgs e)
{
}
its getting more and more tricky. isnt it??
|
|
|
|
|
hi i had treeview which is filled form databse.when i add new item and update the treeview(refill it) then it collapses,can i get its previous position and reopen it at that pt where it was /or prevent it from collapsing. Thank in advance
Tasleem Arif
|
|
|
|
|
Or I suppose you want the answer too. TreeView.SelectedNode and TreeView.SelectedNode.Expand
A man said to the universe:
"Sir I exist!"
"However," replied the Universe, "The fact has not created in me A sense of obligation."
-- Stephen Crane
|
|
|
|
|
try
{
txtUserId.Text=tvAdmin.SelectedNode.Text;
TreeNode Node= new TreeNode();
Node=tvAdmin.SelectedNode;
General obj=new General();
obj.FillTVAdmin(tvAdmin,"SELECT Name FROM any");
tvAdmin.SelectedNode=Node;
tvAdmin.SelectedNode.Expand();
}
catch(System.Exception p)
MessageBox.Show(p.Message);
it think u was talking abou this bu this gives exception
object refrence not set to the instance of object
Tasleem Arif
|
|
|
|
|
If I understand you correctly, you want all of the nodes to retain their expansion state upon a complete reload of the tree's nodes. If so, you'll need to cache the expansion state of each node somewhere, reload the tree, and then walk over the entire tree and set each node's expansion state to the saved value. Unless the new values are being inserted at the bottom of the tree, you'll have to be careful not to give them the expansion state of a node which already existed. This[^] utility class might help you with this task.
:josh:
My WPF Blog[^]
|
|
|
|
|
Hi folks!
.NET 2.0 has this very practical feature to throw an InvalidOperationException when an application is run in the debugger and accessing UI elements that were created on a different thread.
Does anyone know if there's a chance to enable this feature for a .NET 1.1 application without converting the whole application from VS2003 to VS2005?
I've tried setting the supportedRuntime to v2.0.20757 in the App.config file, but that didn't work (VS2003 doesn't start the application any more and attaching the VS2005 debugger after starting the application manually doesn't throw the exception at all).
Is there a way?
Regards,
mav
--
Black holes are the places where god divided by 0...
|
|
|
|
|
When I am organizing a table in an application, I do not know beforehand how many columns it will contain.
In the Visual Studio-2003 I made it dinamically through command series:
theGrid.Columns.Clear();
theTable.Columns.Clear();
for (i=0; i < val; i++) {
theTable.Columns.Add();
}
for (i=0; i < val; i++) {
acol= new DataGridViewColumn();
theGrid.Columns.Add(acol);
}
But when I use the Visual Studio-2005 with its new dataGridView , these commands do not have the effect.
Though headers are OK, the table by itself is just empty, whereas the data are written into it OK.
What can I do to get the data in its grids will be shown?
HilSoft
|
|
|
|
|
I'm not an expert on this, but whenever I use the datagridviews, I always bind to a dataset or something else behind it. But you also have to define the data types in the dataset as well as the datagrid so it knows how to display it.
|
|
|
|
|
Of course, a have a DataSet1, which is bound with my datagridview. The Table1 is a part of the DataSet1. In Visual Studio-2003 (with DataGrid) all this works just OK. The trouble arises only when I'm starting use VS-2005 and changing DataGrid for DataGridView.
HilSoft
|
|
|
|
|
In C# express I do this:
Create the datagridview, then add the columns that are bound. It looks up the type automatically and lets me select them. You must do define the types in two places, the datagridview and of course in the dataset.
If you program it, rather than allowing the designer to do it for you, you have to set up each column type. Search for "coding datagridview columns".
|
|
|
|
|
Should I write down something like this (see ??? places):
(theGrid.DataMember= "Table1"; // It is so already without programming)
(theTable= theDataSet.Tables[0];)
(theDataSet= (DataSet)(theGrid.DataSource);)
for (i=0; i < val; i++) {
theTable.Columns.Add();
theTable.Columns[i].ColumnMapping= ?????;
}
and below:
for (i=0; i < val; i++) {
acol= new DataGridViewColumn();
acol.CellType= ???;
theGrid.Columns.Add(acol);
}
What do you mean with "define the types"?
HilSoft
|
|
|
|
|
|
Your site reference http://www.rustemsoft.com/DataGridViewColumns.htm is splendid! Thank you very much.
I've found what it’s all about! In my DataGridVies there was designated that
AllowUserToAddRows as False
AllowUserToDeleteRows as False
After setting them to True and using new DataGridViewColumns there occurred blank cells. It is already much better...
When using the old routine I am getting an interruption because of Column Templite (for new column) is not defined. It is much better too.
I'll try investigate further. Thank you.
HilSoft
|
|
|
|
|
Answer is found. There is a quite easy way:
theGrid.AutoGenerateColumns= true;
And the grid arises automatically like the old DataGrid.
HilSoft
|
|
|
|
|
For a treeview i would like to change the mouse cursor to an hour glass after a delay when selected tree nodes take a long time to populate. I was able to do this in VB6 using a timer event, where a busy flag is set and then the timer event checks flag to determine if cursor should be changed to an hour glass. When i try to do similar in C# the cursor does not change. I am able to change the cursor in the code populating the node, but that causes flickering becasue the hourglass is shown even when selected nodes do not take long to populate.
Am i dealing with some kind of multi thread issue here? What is the normal solution?
|
|
|
|
|
when your about to do your complex and time costing code, simply add
this.Cursor = Cursor.Busy;
// your code
this.Cursor = Cursor.Default;
|
|
|
|
|
Hi,
Does anyone know where I can find the Community Server DAAB code? I have downloaded the source SDK, and I am looking for examples on how they insert, update, and delete records using Microsoft's DAAB. I have search through the various namespaces, but could find nothing.
Regards,
ma se
|
|
|
|
|
Hi all,
I have to perform logout when the user is idle for certain time. here iam checking the user idle time in the timer. if the time exceeds 1 hour i logged out the my app. and display messagebox "User logged Out" with Ok button.
my problem is after every 1 hour the messagebox displayed over and over(eg. if the user idle for 10 hrs. 10 message box displayed). how to avoid this. is there any way to check whether the user responded to previous messagebox?. if so we have to display the message else we should not the display the message.
Please help
Srini
|
|
|
|
|
if you are using MessageBox.Show then it is a blocking call and you can do something like this
if(clickedok == true)//make clickedok static or class variable.
{
clickedok = false;
MessageBox.Show("User logged out");
clickedok = true;
}
if it is custom dialog box you can set the flag on onclick event.
Regards
Shajeel
|
|
|
|
|
public bool _isNotified = false;
if(!_isNotified)
{
DialogResult msg = MessageBox.Show("User logged out", "Logout Notification", MessageBoxButtons.OK);
_isNotified = (msg == DialogResult.OK);
}
|
|
|
|