|
Hello,
I also had a lot of bad days because of that.
1)
What you can try is, copy the dll or exe (where your second usercontrol is in) to a temp file and then ad the control in he designer over that dll.
I think the problem is some kind of circular dependences between the usercontrols.
In worst case you could try to export the second control in a seperat project(dll) and try it again.
2)
An other posibility is that your second usercontrol throws an exeption.
Therefore you could start a second instance of your design application (VS or something) and connect to the first.
Then you have to change the settings, that you jump in the debugger if an exception occurs.
Hope it helps.
All the best,
Martin
|
|
|
|
|
Maybe this article[^]
contains what you need, or at least provides a hint.
Luc Pattyn
|
|
|
|
|
I'm working on an application where i need to reload nodes based on database info. I need to save the expanded state so that the user doesn't have to navigate back to where he was after the reload. I can't for the life of me get this working.
Anyone know how to do this?
|
|
|
|
|
I think ... it was already asked and answered before (even 2 solutions were offered).
I was proposing something like this:
ArrayList history;
....
history = new ArrayList();
....
TreeNode tn = this.treeView1.SelectedNode;
if (tn != null) this.history.Add(tn);
....
if (this.history.Count < 2) return;
this.treeView1.AfterSelect -= new System.Windows.Forms.TreeViewEventHandler (this.treeView1_AfterSelect);
TreeNode tn = (TreeNode)this.history[this.history.Count - 2];
this.history.RemoveAt(this.history.Count - 1);
this.treeView1.SelectedNode = tn;
while (tn != null)
{
tn.Expand();
tn = tn.Parent;
}
this.treeView1.AfterSelect += new System.Windows.Forms.TreeViewEventHandler(this.treeView1_AfterSelect);
this.treeView1.Focus();
Some other guy has proposed the use of Stack instead of my ArrayList (even better).
SkyWalker
|
|
|
|
|
Hehe! That was me It was to implement history for a "Back" button on a treeview. But you could use it here. Here it is. Or the principle anyway. If you just want to remember the last selected node you wouldn't need a whole Stack or ArrayList though. Just an internal reference to the node.
|
|
|
|
|
Hi,
I am trying to cancel the Serach operation once it gets started, Search is any kind of text search against database, i am using hibernate for database connectivity, Could anyone give me a direction to start.
Thanks in advance
Monika
|
|
|
|
|
You coud use a BackgroundWorker , with WorkerSupportsCancelation set to true
SkyWalker
|
|
|
|
|
Hello friends,
I use some web services in my project. But I want to change some this one web services ip.
For ex.
i use http://192.168.0.1/ex.wsdl some times i want to use
http://192.168.0.5/ex.wsdl.
both of them are same functions.
Is there any idea?
Thanks
Best Regards
|
|
|
|
|
Under what conditions do you want to use the other IP Address?
|
|
|
|
|
there is no condition. wsdls will be fill on combobox when user select any of web service will be run on this url.
i found something that:
if i create a web service object and then there is a url property, and it is possible to set it. now i am trying to use it,
|
|
|
|
|
How to set evaluation period for the perticular software or any project develop in C#.Net.
that is after 30 days the project will not work. It will asked for patch or key
|
|
|
|
|
|
sjs4u wrote: How to set evaluation period for the perticular software or any project develop in C#.Net.
that is after 30 days the project will not work. It will asked for patch or key
sjs4u wrote: It's urgent
Isn't this something that you should have thought of at the start of the project?
A piece of advice. When you start a project you identify as many of the risks that may make it take longer than expected, or things that you don't know about. Now, I've never managed to identify ALL of them at the start, but I managed enough of them so that nothing comes as a complete surprise.
This is obviously something that you don't know how to do. Also, the fact that you are asking urgently suggests the project is almost over. Some things need to be designed in at the start and cannot just be dropped in - that is why we plan for them.
Now, in answer to your question. There are many people much more clever than I that have worked on this question for years. You can find their work at places such as Aladdin[^]
|
|
|
|
|
Good reply.
Colin Angus Mackay wrote: There are many people much more clever than I that have worked on this question for years
Don't sell yourself short. It's not that they are necessarily cleverer, it's just that this is their field of expertise.
the last thing I want to see is some pasty-faced geek with skin so pale that it's almost translucent trying to bump parts with a partner - John Simmons / outlaw programmer
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
Then BUY IT!!!!
|
|
|
|
|
I think that you completely misunderstood the original posting.
---
Year happy = new Year(2007);
|
|
|
|
|
Yes, I did.
I probably need to get checked for Dyslexia
|
|
|
|
|
Why is Dyslexia so hard to spell?
the last thing I want to see is some pasty-faced geek with skin so pale that it's almost translucent trying to bump parts with a partner - John Simmons / outlaw programmer
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
Pete O`Hanlon wrote: Why is Dyslexia so hard to spell?
And why is phonetic not spelled the way it sounds?
David Wilkes
|
|
|
|
|
I need to use Context API in one of my application to InvalidCastException.
The requirement is to create Context API, Activate it and then deactivate.
Can any one give me code snippet which deals with this Context API.
Thanks:
Rakesh
|
|
|
|
|
Not very sure about what you exactly need, but this[^] may be of some help.
SkyWalker
|
|
|
|
|
Hi,
I've bound link buttons in grid column.The columns are template fields. But its not align properly in the column. I've given the condition as follows
if (DataControlRowType.Header == Name)
{
// binding the data in the selected column
}
can any one of you give me the solution for solve this problem?
Thanks in advance.
Babu
|
|
|
|
|
Hi folks,
I am new to clipper and dbf format database.I need to access the dbf files through my windows services. Now i have using OLedb connection object to read the dbf file. here i have face the difficulty to access the memo field and lengthy columns( above 244 char length). In this case the oledb read only 244 char so i the data loss was happend. So i need to access the dbf file directly through binary level. Anybody having the knowladge in this problem please share with me.
advance wishes.
regards,
ranandbe
|
|
|
|
|
Hi
In my 'virtual roulette' table I need to increment the amount of times each random number has occured for any given amount of spins of the wheel. Each label (0-36) has another blank label next to it that will contain these occurances.
If for 3 spins the random numbers are 3,14 and 17. Blank labels 3,14 and 17 should now have the value 1.
Instead of typing IF RanNum = 1 the add 1 to lab1
IF RanNum = 2 the add 1 to lab2
IF RanNum = 3 the add 1 to lab3 etc.............
How do I use.....
STRING labNum = "lab" + RanNum
to then access the corresponding Label on the page?
FindControl is looking good but does that not just tell me if it is there or not?
Any help for this newbie would be great.
Harvey
|
|
|
|
|
Hello,
You could hold the instances in a Hashtable and use the number as a the key.
All the best,
Martin
|
|
|
|