|
At the top of the property pane is are two buttons that switch you between viewing properties or events for the selected control. Once you've switched to the event list, you should see what you're looking for.
You can also use the class browser, to go up the inheritance chain to the function you want, and override it -- if that's the sort of functionality you need.
John :D
|
|
|
|
|
|
Well it looks easy but I'm having problems with the following: I have a combobox with a number of items, but if I select an item in the dropdown, I first want to show a confirmation dialog with yes and no buttons. If 'yes' is selected, the item is selected in the combobox, if no is selected, the item is not selected and the original selected item remains selected.
For this to work, I was looking for a SelectedIndexChanging event or something like that, but that doesn't exist.
Any ideas?
|
|
|
|
|
Maybe you have a good reason, but that sounds like a UI I would hate to use. Can you move the confirmation to some other point (like clicking OK)?
At worst, you could record the current setting when the drop-down list first gets displayed. Then, after they've made a selection, compare the two and take the appropriate actions.
John :D
|
|
|
|
|
Is there a C# form control that can handle HTML views?
i.e. something like a RichTextBox that takes & parses html, so for example if I set the control text to be something like :
{b}hello world{/b}
It would render as follows at runtime (For the sake of clarity, I have replaced < with {) :
Hello World
|
|
|
|
|
|
Hi.
In my project I have a web reference to a wsdl-file on a remote server, and I call a method returning an object (UserObj)-or rather a struct actually; it has a number of fields but no methods. What I would want to do is to transform the data returned to HTML using the Xml.Xsl.XslTransform Transform() method and a XSL file I have defined my self.
Now my problem is this: how can I transform my UserObj back to XML? It can't be necessary to 'manually' pick out every field and insert it into an XML structure, can it? I mean the communication with the remote server is done with soap and the data returned to my process is in XML when it gets there, right? Or is there a way I can stop the initial translation from XML to the UserObj form from happening?
I'm tearing my hair away over this so any help will be gratefully appreciated!
Regards
/EnkelIk
|
|
|
|
|
Move the UserObj to a dataset, then with the dataset do a xmlwrite
|
|
|
|
|
Thanks, that works, but is it possible to do it without knowing anything about the field names in the UserObj? I.e. can I isolate my code from any changes in the wsdl-file regarding the field names of UserObj?
I have tried to extract the fields as an enumerator, but since the object does not inherit from Systems.Collections it hasn't worked out for me.
Thanks
/EnkelIk
|
|
|
|
|
When I run a debug/release C# program the output window shows loaded ... gac/drawing, and then the programs form doesn't show.
Several iterations of stop /start clicks get it going.
Anyone know why ???????
Thanks
viva AMIGA
|
|
|
|
|
I'm guessing it is a bug in the IDE as I had the same thing last night. I haven't checked the Microsoft Knowledge base yet, but I will be doing later to see if it is a known problem.
Michael
Fat bottomed girls
You make the rockin' world go round -- Queen
|
|
|
|
|
I've got this problem too but when debuging MC++.
I think it's some kind of bug.
43 68 65 65 72 73 2c
4d 69 63 68 61 65 6c
|
|
|
|
|
I've seen it before as well, no idea what causes it though. For now you'll just have to stop/start until it works
James
- out of order -
|
|
|
|
|
Toss me some idearz.
I am intrested in how to actually store the data.
|
|
|
|
|
I found out it's possible to put a Form inside a Form if you do:
Form p=new Form();
Form c=new Form();
c.TopLevel=false;
c.Parent=p;
That works fine, except that the child form can't be activated. You know what I mean- the gripbar at the top is always gray the way a window looks when it's in the background. Strangely enough you can move the child form around in the parent form, even though it's drawn as though it's backgrounded!
If I make the child forms Mdi Children instead of doing the toplevel=false thing, I get similar results- this time, one of the child forms is drawn active while the rest are drawn as though they're backgrounded. The active-looking one stays that way even when you click on other forms.
Am I doing something wrong or is this a bug in .net?
"Outside of a dog, a book is Man’s best friend. And inside of a dog, it’s too dark to read."
-Groucho Marx
|
|
|
|
|
I'm trying to put the child windows into a panel on the parent window. That probably matters. I hope this is possible.
"Outside of a dog, a book is Man’s best friend. And inside of a dog, it’s too dark to read."
-Groucho Marx
|
|
|
|
|
After looking at my planned workload for Christmas and the New Year, it looks like it is time to make the jump to C# for writing the front end for my apps.
I'll be working on MIS systems with database back-end. Whilst I'm happy enough with how ADO.NET works, I'm finding my reference shelf is a little light on books for Windows Forms and Controls.
I currently only have Inside C# (Second Edition) and the Petzold Programming Windows with C#. What books are good for learning about the ins and outs of Windows Forms and Creating user controls? An Amazon search reveals a lot of books, but usually when a new tech is released a lot of the authors are just jumping on the bandwagon. I'd like to seperate the wheat from the chaff.
What books have helped you?
Michael
Fat bottomed girls
You make the rockin' world go round -- Queen
|
|
|
|
|
I have those two books. The ADO.NET book fills the gaps because Petzold does not cover the DataGrid. What else do you need ?
Christian
No offense, but I don't really want to encourage the creation of another VB developer. - Larry Antram 22 Oct 2002
Hey, at least Logo had, at it's inception, a mechanical turtle. VB has always lacked even that... - Shog9 04-09-2002
Again, you can screw up a C/C++ program just as easily as a VB program. OK, maybe not as easily, but it's certainly doable. - Jamie Nordmeyer - 15-Nov-2002
|
|
|
|
|
|
CP and Genghis[^] do I good job of filling in some of the holes in the .NET framework GUI classes. I was just wondering if there are more places for me to look for decent C# GUI classes for standard Windows apps.
I'm interested in classes that give me a nice doc/view framework (i.e the kind of things I've taken for granted in MFC/WTL). A nice wizard to generate code for a standard windows app (menu, toolbar, view) would be great.
Any links welcomed.
Michael
Fat bottomed girls
You make the rockin' world go round -- Queen
|
|
|
|
|
Michael P Butler wrote:
I'm interested in classes that give me a nice doc/view framework
You've got a MDI sample written in C# in your .NET framework samples : SDK\Samples\Quickstart\Winforms\samples\MDI.
|
|
|
|
|
Hi all
I stumbled upon this beauty. For thos that has been here for a while you know the problem with un/loading an assembly (and overwrting it for that matter). IOW the basic idea of a plugin DLL. I'm not sure if the solution will fit all, but it does work in my case and well too!
FileStream stream = File.OpenRead(assemblydll.Text);
byte[] buffer = new byte[stream.Length];
stream.Read(buffer, 0, (int)stream.Length);
stream.Close();
File.Delete(assemblydll.Text);
Assembly asm = Assembly.Load(buffer);
Now the assembly is in memory.
OK the BIG FAT question is, what happens when we reload an updated assembly?
With my limited testing it seems the assembly is present multiple times when calling AppDomain.CuurentDomain.GetAssemblies(), but on invoking a method via Reflection seems to target the last assemby loaded, thus amking it perfect for plugin type assemblies. And saves you from AppDomain HELL.
Hope this helps someone in the future
DBHelper - SQL Stored Procedure Wrapper & Typed DataSet Generator for .NET popularity better now, thank you
|
|
|
|
|
I've been thinking that would also be a great way to have an application update itself...load an assembly into memory and then when the app closes, the in memory assembly executes some code to update the app.
leppie wrote:
saves you from AppDomain HELL.
We escaped from DLL Hell just to move to AppDomain Hell.
I don't know whether it's just the light but I swear the database server gives me dirty looks everytime I wander past.
-Chris Maunder
Microsoft has reinvented the wheel, this time they made it round.
-Peterchen on VS.NET
|
|
|
|
|
David Stone wrote:
I've been thinking that would also be a great way to have an application update itself...load an assembly into memory and then when the app closes, the in memory assembly executes some code to update the app.
I'm not sure how this relates to my post! OK, maybe the "deletable" bit (and you could register that with appexit event, makes sense ).
I'm actually after the answer for the BIG FAT question of what is happening, as according to Eric Gunnerson et al this was NOT possible... ; however unloading is impossible, but .NET seems to use the last loaded assembly as the reference, this is confirmed by executing methods via Reflection.
It difficult to describe. You can have a look in my latest DBHelper tool to see this in action (under the hood of course).
DBHelper - SQL Stored Procedure Wrapper & Typed DataSet Generator for .NET popularity better now, thank you
|
|
|
|
|
It didn't answer your question, I was merely sharing my two bits about in-memory assemblies.
I don't know whether it's just the light but I swear the database server gives me dirty looks everytime I wander past.
-Chris Maunder
Microsoft has reinvented the wheel, this time they made it round.
-Peterchen on VS.NET
|
|
|
|