|
Every time...
|
|
|
|
|
do you think you can send me a sample code of something like your Wizard app ?
at this moment it's going well but I think I will have problem later
Thanks
Jonathan Pouliot
|
|
|
|
|
Well, if you follow James instructions above, it should do you pretty well. I really don’t feel right about releasing my code for this just yet, as it’s running in a current client’s system.
Just shout when you need assistance and one of us will push you in the right direction, or possibly someone reading this may have something similar that they are a little more free to share.
A word of caution up front though, in the current release of the .NET framework, forms created in this manner do not receive their OnClosing/OnClosed events naturally, and you should probably issue a Close on them manually when the container form receives its notification. A second solution, which I used, was to issue a custom set of Wizard related events to signal that the parent was about to close and it was time for the form(s) to cleanup. Using this method protects my code from issuing a second Close, just in case the boys and gals over at MSFT decide to fix the issue. The dispose methods do get called regardless.
Regards
|
|
|
|
|
the only thing it's after the user create the form dynamicly I want to include action on some controls like buttons and I want to compile all the form with the controls action in one file *.cs and after compile it to an exe.
What I want to know it's how can I create the CS file to add the action and the form design in, like VC# does ?
Thanks
|
|
|
|
|
My wizard solution is something used by the clients developers, so it is more of a component than an application builder.
Just out of curiosity, and I am definitely not the one that would try to stifle your ambition, but why are you trying to reinvent the wheel that was just built?
It would seem to me that if you expose a good object model, extending an application built with .NET would be trivial without all of this, just having the clients developers use .NET to build extensions. Or are you looking for a mini environment like VBA in outlook?
Regards
|
|
|
|
|
I'm creating a Trainer Maker and I need to use a Form designer and I need to compile the form the user will create and I need to include some action like retreive the Textbox text to use it for a value and add Buttons action like to poke and freeze that's it.
I want to make something similar to Trainer Maker Kit (try to look at this application,check for screenshot, if you want of course), it's in VC++ i think and I want to make something that can equal the perfection of this program. Of course with the .NET Technology.
at this moment the form Designer works fine the only "hic" it's for that .CS file creating dynamicly. I'm suppose that is almost the same way as the C# IDE does, but i don't know very well how can I remake this. I don't want to make something big just a little file with the Window Form Designer code for all the controls and the action I will put on the controls.
I will check how can I figure it out, but I think I will post a lot of question on this board I hope I don't bugging you with all my questions, if it's the case just tell me please
Thanks
|
|
|
|
|
I think there is a sample in the C# section called LiveCode.NET that does something similar. I havent checked it out yet, but I am sure you have seen it in any event...
|
|
|
|
|
Oops, I don't think I ever posted that message explaining Application.AddMessageFilter
AddMessageFilter takes an instance of the IMessageFilter interface, it has one method, PreFilterMessage which works like the WndProc except it returns true if the message has been filtered and doesn't need to be processed anymore.
So to use it:
public class MyClass : ......, IMessageFilter
{
bool IMessageFilter.PreFilterMessage(ref Message m)
{
return bShouldContinueProcessing;
}
} Then when you want to add it to the Message filter, Application.AddMessageFilter(myClass as IMessageFilter);
BLaZiNiX wrote:
BTW, is it possible to create a DLL with the other dll I need to create an application like System.DLL, System.Windows.Form.DLL all those DLL include in one So after I can only compile my program using this DLL ??? if yes how can I do this ?
Nope, not with strongly-named assemblies they cannot be modified since a checksum is used to ensure they haven't changed.
There is a utility out there somewhere for combining multiple assemblies into one, but it can't be used on strong named assemblies because of the previously mentioned reasons.
I forget the name of the utility; maybe Rama Krishna remembers it (it was mentioned on the dotnet list not too long ago; if i remembered the context I could look it up).
James
Simplicity Rules!
|
|
|
|
|
My code gives different solutions under debug and release. Is this possible, if not what can be the error?
|
|
|
|
|
What do you mean by "gives different solutions"?
James
Simplicity Rules!
|
|
|
|
|
|
Yes the outputs are different
|
|
|
|
|
Can you tell us a little bit more on what your program does, and how you have coded it?
Nish
The posting stats are now in PDF:-
http://www.busterboy.org/codeproject/
Feel free to make your comments.
Updated - May 04th, Saturday
|
|
|
|
|
TreeView intensively use an Hashtable of node where only insertion and none removal ops are perform.
Could you explains how cleaning is handle?
1) Does this involves that despite of manually removing, Treenode always remains in memory during execution?
2) or is it due to (TreeNode)collection processing whom release dead node.
How does this works anyway? how null value are detected?
waiting for your help, thanxs cause a lot now
|
|
|
|
|
It’s due to Elnino! ... No Seriously,
What you are probably seeing is the .NET garbage collector at work (or sleep, as it where), plus possibly the node (bucket?) caching mechanism in the internals of the TreeView itself. I haven’t bothered to drill down in enough detail to see if they are reusing their internal data structures of the later, but it’s a pretty fair assumption.
BTW, if you are holding on to a reference to a removed tree node to see if it goes away, it won’t happen...
Cheers
|
|
|
|
|
just use ildasm: the (assembly) hastable is nodeTable. grep it in TreeNode* + TreeView, you'll found two Op is performed:
create (powerful),
adding in TreeNode.Realize: treeView.nodeTable[htreeitem] = this;
several reasons:
* The paradigm it's to inherits from TreeNode but pb is that data aren't released .
* Notice that original removal is slowest enough without inheritance
if time must increase sic.
* What i mean it 's not caching but smth like MapHandle % MapPermanentHandle in MFC. Imagine if nodeTable grow without freeing anytime you use it.
--
I like my program not to be potentially more corrupted after 30 mn tht 3mn, you know. What can be done ?
|
|
|
|
|
Interesting, I’ll take a look when I find a spare minute...
|
|
|
|
|
I am trying to test some web services that are freely available on the internet (translators, weather, etc) using my Windows Forms client application. Problem is that I can't access any remote wsdl service description, I always get a message 'HTTP Status 407 - Proxy access denied'. Description for that message is that I don't have right authentication. I am supposedly cleared of any proxy interference on my side, is this a client side or a server side (proxy) message? At the same time all those services work fine when I access them using IE. I am probably missing something in the whole picture.
Any suggestions?
Regards,
Dejan Petrovic
|
|
|
|
|
HTTP status 407 is a server message.
I am willing to try to access services from my computer. Can you give me a web service IP?
-Gile
|
|
|
|
|
Why does my C# app ask for some key in the registry that has to do with the .NET framework!?!?!?!
It can't be true that all persons that want to use my Visual C# app have to install the whole .NET framework!!?!?
Rickard Andersson@Suza Computing
ICQ#: 50302279 (Add me!)
E-mail: nikado@pc.nu
I'm from the winter country SWEDEN!
|
|
|
|
|
well, your customers need to to install the .net runtime which is about 20M. Without it your app will not work. Hopefully, within the next couple of months, years, the .net runtime will be installed by default. (I hope)
|
|
|
|
|
Rickard Andersson wrote:
It can't be true that all persons that want to use my Visual C# app have to install the whole .NET framework!!?!?
Not the whole framework. But they'll need the .NET redistributable installed. Just like you need the JRE to run that J thing
Nish
The posting stats are now in PDF:-
http://www.busterboy.org/codeproject/
Feel free to make your comments.
Updated - May 04th, Saturday
|
|
|
|
|
Nish [BusterBoy] wrote:
Just like you need the JRE to run that J thing
I think Nish was making some comment about that coffee flavored language....someone go tell him that talk like that isn't allowed here[Kidding ]
Nick Parker
|
|
|
|
|
Nick Parker wrote:
I think Nish was making some comment about that coffee flavored language....someone go tell him that talk like that isn't allowed here
ROTFLMAO Nick
The posting stats are now in PDF:-
http://www.busterboy.org/codeproject/
Feel free to make your comments.
Updated - May 04th, Saturday
|
|
|
|
|
Where to find that!!!!!!
Rickard Andersson@Suza Computing
ICQ#: 50302279 (Add me!)
E-mail: nikado@pc.nu
I'm from the winter country SWEDEN!
|
|
|
|