|
Isn't that rather a lot? How long is your user going to spend paging through that lot, looking for the node they want? Surely there must be a better way...
Did you know:
That by counting the rings on a tree trunk, you can tell how many other trees it has slept with.
|
|
|
|
|
It's for analysing DVB (broadcast video) files, possibly 10GB so I was just checking on an easy way of bulletproofing. Video is the main part of it but I'm being careful.
Yes, occasionally we have to look for a certain sequence but we don't always know what it is until we find it.
|
|
|
|
|
I have found the performance of the treeview is terrible when trying to load large data sets. As in minutes to populate the TV. I was not aware of the 64k limit as I don't think that volume is viable.
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
This why I will be loading on demand, i.e. only loading the children when an individual node is epxanded.
I will also be looking at other views but a tree view offers a lot of advantages in this case.
|
|
|
|
|
I got the impression there were a lot of root nodes. You would have to load on demand if some of your root nodes have 64k nodes.
Can you page the nodes by some grouping so the root node would have a group level then a sub node collection. I think this is going to come down to data mangement.
Some of the 3rd party tools mat not have the 64k limitations?
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
Yes, that is the approach I mentioned above, only populating the sub nodes when a node is expanded.
I doubt there would be more than 64K nodes per root but there could potentially be up to a million nodes in total.
Because of this there will be an inital decoding phase where an internal XMLDocument will be created with the usual progress bar to keep the user happy but I want to keep the treeview response as snappy as I can and it's not that difficult to do.
You know what users are like!
BTW, typical structure with DVB is:
Table
Sections (subtable)
Elements/descriptors
Descriptor lists
Descriptor structures
|
|
|
|
|
Trollslayer wrote: there could potentially be up to a million nodes in total
I don't even want to think about shoving that sort of volume into a TV.
I wonder if you can add nodes by block, insert 1000, release the UI and insert another 1000. Or can you prepare the tree sub nodes in memory and drop in the lot in 1 hit.
Trollslayer wrote: You know what users are like!
I made the mistake of putting a long fetch into another thread and not disabling the button. Then I had to sit there and watch my BA hammer away at the button all the while complaining that nothing had happened. She had spawned 20 or so threads in about 2 seconds.
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
Hello,
I have declared an interface in C++/CLI and made it assembly(DLL). Now I want that interface to be implement by C# app. I have added the reference but still my C# assembly does not detecting my C++/CLI interface and says "Could not found: Are you missing some assembly refernce......"
How to solve this issue?
Regards Usman
|
|
|
|
|
assuming you have declared a public interface in some namespace and built it into a DLL, you need to add a reference to that DLL and include a using statement for the namespace (or use fully qualified types).
|
|
|
|
|
Hello,
I have some native C++ code that interacts with my managed C# app through delegates and function pointers. Normally, I have the following setup for basic types in my native C++ DLL.
So, for example this function set interacts with the managed code and updates a variable of type short.
typedef int (__stdcall* GET_SHORT)(short &value, int ID);
GET_SHORT getAttShort = NULL;
extern "C" __declspec(dllexport) void SetShortHandler(GET_SHORT handler)
{
getDicomAttShort = handler;
}
int GetAttribute(short &value, int ID)
{
if (getDicomAttShort) return getAttShort(value, ID);
return -1;
}
Here, the managed app sets the delegate by calling SetShortHandler which sets the function pointer and then the method is called through GetAttribute()..
No, this works great for types like short, int, double, long... However, I am at a loss as to how I can get it to work with strings. I like to use STL strings and I want to do something similar as the code above but with strings instead of basic types.
Any ideas? Would appreciate any help.
Keith
|
|
|
|
|
Never mind. Figured it out.
/K
|
|
|
|
|
I have a simple application that need to return value on exit to the his caller process.
the calling process use Process p = Process.Start(startInfo); to call the second one.
In regular .Net I can us the System.Environment.ExitCode to do it, but in the compact framework its doesn't supported.
|
|
|
|
|
Have you tried changing the Main method to return an int ?
DaveIf this helped, please vote & accept answer!
Binging is like googling, it just feels dirtier.
Please take your VB.NET out of our nice case sensitive forum.(Pete O'Hanlon)
BTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)
|
|
|
|
|
i have a windows form application, and i want that when i execute the program, program must show me the main form quickly, but my program firstly do some operations (connecting to sql, filling the combobox etc. )
because in form_load function i call a function to fill the combo with sql database's datas.
But user does not want to wait, user wants to see the form very quickly.
In other words, user wants my program to connect sql and to fill the combo AFTER form has been shown to the user.
|
|
|
|
|
The easiest way to make this possible is to put this operations in the Shown Event of the showing form.
public partial class Form1 : Form {
public Form1() {
InitializeComponent();
this.Shown += new System.EventHandler(this.Form1_Shown);
}
private void Form1_Shown(object sender, EventArgs e) {
MessageBox.Show("Hello world after showing the Form");
}
}
Hope it could help you...
|
|
|
|
|
it does not work
is there anyone having idea_?
|
|
|
|
|
|
|
Why show the user the form if it's not ready to use?
|
|
|
|
|
So he doesn't double click it again, and again, and again... My wife does that - if whatever she runs doesn't show up pretty much immediately, she just clicks and clicks until something happens. Or she gets angry and breaks the keyboard.
Did you know:
That by counting the rings on a tree trunk, you can tell how many other trees it has slept with.
|
|
|
|
|
So she'll keep clicking on the ListBox or whatever until it loads instead?
|
|
|
|
|
She wouldn't recognise a listbox if it got up and bit her on the arse.
She works on the principle that "it works with telephones, so it should work here".
Did you know:
That by counting the rings on a tree trunk, you can tell how many other trees it has slept with.
|
|
|
|
|
A common way of showing that the program is running before it's actually usable is to use a splash screen to indicate that something is happening.
"WPF has many lovers. It's a veritable porn star!" - Josh Smith As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.
My blog | My articles | MoXAML PowerToys | Onyx
|
|
|
|
|
|
Couple of things:
1) When you provide a link to something, it is considered polite to make it clickable. Highlight it, and use the "link" or "link[^]" widgets above the edit text box to do this. The second one of the two is the post common - it provides a "new window" option as well as a standard link.
2) What are you trying to achieve? You have drawn a house, and provided two text boxes, and a button. What do you want to occur when you fill in the boxes and press the button? "the house will go to that certain point" does not really explain what you want.
Did you know:
That by counting the rings on a tree trunk, you can tell how many other trees it has slept with.
|
|
|
|