|
Thank you OriginalGriff for your input. I really appreciate that, and I totally agree with you. The main part of the application (WinForms) is filtered by date and several other options to show only a small part of the data to the user.
The place where my problem comes up is within an archive that requires to show all the entries in one grid.
I am just looking for some technique to show data while still reading from the database to enable the user to start working while the list is beeing populated.
but of course you are right, normally I won't bother the user with this kind of list too often
|
|
|
|
|
Then read the database in pages in a background thread, and add them as you go - but I'll bet nobody uses it in anger twice! Who came up with this stupid idea, anyway? If Barbie is so popular, why do you have to buy her friends?
Eagles may soar, but weasels don't get sucked into jet engines.
If at first you don't succeed, destroy all evidence that you tried.
|
|
|
|
|
hi,
I want to save the word file in html and word is not installed on client machine. I want to do this thing without using the word installed on the machine
Please provide some help
|
|
|
|
|
I do not think this is possible without the Office Interop assemblies. See here[^] for a download. txtspeak is the realm of 9 year old children, not developers. Christian Graus
|
|
|
|
|
ok, can i read the data through the fstream, and then do decode/encode.
Is it a right move?
|
|
|
|
|
Message Closed
modified 23-Nov-14 6:46am.
|
|
|
|
|
Please provide some sample code to perform it.
|
|
|
|
|
abcurl wrote: ok, can i read the data through the fstream, and then do decode/encode.
You can only do this if you know the file format; I doubt that this would be a good thing. As I said before, get the Interop assemblies and use them. There are many tutorials both here and on the internet to show you how to use these features.txtspeak is the realm of 9 year old children, not developers. Christian Graus
|
|
|
|
|
Hello:
I am a super novice to VS C# 2008.
I would like to find a sample program that can help me with the following:
1) Create a MDI form with children.
2) The panel on the left will hold a TreeView populated from a database.
3) When a TreeView child is clicked, I would like to open the coresponding Form.
Here is the issue. I can do a if/else...but I will have several hundred forms.
I would like to get the name of the node and use it as the name of the form and then just open/show the form.
I know, I have not explained it correctly. Hope someone can help me. Thanks in advance.
Need Sample: MDI with TreeView loaded from database... check TreeView and open coresponding Form.
|
|
|
|
|
I think you might be able to use reflection to open a form based on its class name, or you could setup a delegate system that will open the form based on the delegate method you specify (I would try it this way first I think).
With "several hundred" forms, it must take forever to load your treeview....45 ACP - because shooting twice is just silly ----- "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "The staggering layers of obscenity in your statement make it a work of art on so many levels." - J. Jystad, 2001
|
|
|
|
|
Thanks for the reply, but as I said before I am a super newbi so i dont know what you are saying about: reflection, delegate methods. Wish I could find a sample code. I learn super fast when I look at code. Thanks.
|
|
|
|
|
private DockForm CreateDockMDIForm(Type type)
{
ConstructorInfo ci = type.GetConstructor(System.Type.EmptyTypes);
DockForm form = (DockForm)ci.Invoke(null);
return form;
}
I am tagging the treenode's Tag with the actual Type of the form, you can easily change it to using a string and get the type of the form before getting the Construction and Invoke for an instance of the form object.
|
|
|
|
|
|
Hello... I will look at the sample 'Application Suite Template'. I might take me a bit to see if it will do what I need. Thanks.
|
|
|
|
|
Hello:
I just tried to load the source in VS 2008 and it wanted to convert it to 2008, so I let it do it, but when I run it I get an error:
Warning 1 'OutlookBar.IconPanel.Margin' hides inherited member 'System.Windows.Forms.Control.Margin'. Use the new keyword if hiding was intended. C:\Temp\SuiteApp\SuiteApp\SuiteAppContainer\OutlookBar.cs 174 14 SuiteAppContainer
Any suggestion on what I can do to resolve this, so I can run and look at the sample?
|
|
|
|
|
This is a warning, not an error, and it tells you what to do, "Use the new keyword..." I know the language. I've read a book. - _Madmatt
|
|
|
|
|
Hey I have problem here, more math related than directly code related. I have a bunch of planes that define a shape, but I need to get the actual faces of the shape (ie. have points where they connect and end rather then extending on forever). I haven't found any math libraries that have functions to do this so I was wondering if I could get some help here.
I think I need to find, for each face, where it intersects with other faces, and somehow position a point there, but I'm not really sure, not very good with 3d math.
|
|
|
|
|
Hello,
I received a few answers on this last week, but they were not exactly what I was looking for. Thank you to those that responded. As an example, I have a SpyWare program running on my computer. When a newer version of the program is available (and upon acceptance), it downloads the new application, installs it, and then restarts the application. Currently, my app identifies the situation and downloads the new app from an online location and stores it in the Bin Release folder (this much works perfectly). The question then becomes how do I install it (with the app running) and then restart the app.
Your help much appreciated....Pat
|
|
|
|
|
You launch another app that waits for your primary app to quit, performs the install, then relaunches your primary app.
|
|
|
|
|
Kick off a different installer program and have that install the update. That update can either kill the main program, or the main program can kill itself after it starts the installer. The installer can then restart the main program. If you are updating the installer, perhaps have the main program do updates for that.
|
|
|
|
|
Wow...two great answers, and they make sense. A program inside the program so to speak. I can see the logic clearly. Can either of you perhaps supply me with or point me to a code sample? And does this mean that it actually has to be a 'different' program or is it more like calling a thread that runs a method inside the application? Again, thank you for your answers and patience while I learn this new technique...Sincerely, Pat
|
|
|
|
|
PDTUM wrote: two great answers, and they make sense
These are the same answers you were given in your previous posting. I know the language. I've read a book. - _Madmatt
|
|
|
|
|
Mark,
Well, perhaps it is the way that the reply from aspdotnet was explained. I hope you do not feel slighted. I appreciated your reply last time and I thanked you for it. Everything is easy when you already know how. Celestial Mechanics in AstoPhysics is a piece of cake for me. I recall a reference to another page that seemed very complicated. I was pursuing it when I had to stop to work on something else. In fact, if you care to supply one, a snippet of real code as an example would be greatly appreciated. I cannot mark any answer as correct until I can get one of them to actually work. Seems reasonable. Again, thanks to all...Pat
|
|
|
|
|
PDTUM wrote: I cannot mark any answer as correct until I can get one of them to actually work.
No one asked you to mark any answers correct or otherwise. It's just very rude to continue to ask the same question when you have already been given answers, more so when you get the same responses. I know the language. I've read a book. - _Madmatt
|
|
|
|
|
PDTUM wrote: I received a few answers on this last week, but they were not exactly what I was looking for.
You have been given essential the same answers now as then. What is it you are looking for? I know the language. I've read a book. - _Madmatt
|
|
|
|