|
A few months ago, the Visual C# team created a community site at at http://www.gotdotnet.com/team/csharp. We have some interesting content, but new stuff doesn't show up very often.
I've therefore created a newsletter associated with the site. If you sign up for it, you'll find out:
* When new content is up on the GDN site
* When we have a new survey
* When somebody from the C# team is going to be at a conference, user group, or some other event
* Other stuff I think you'd be interested in.
You won't get:
* Marketing stuff
* Fluff
* Lots of email
You can sign up at http://communities.msn.com/VisualCCommunityAnnouncements
Eric Gunnerson
C# Community Guy
|
|
|
|
|
|
Thanks Eric,
I just signed up and it looks to be very interesting. It's great being able to keep in contact with what's going on currently in the development arena.
Nick Parker
|
|
|
|
|
In VB (I know you don't have to say it ) there was a Flash/Shockwave plugin so that you were able to include a Flash .swf file within your application. I used to like to do this for my about boxes, and would like to do this inside a C# application but didn't know how to get the plugin, does anyone know anything about this?
Nick Parker
|
|
|
|
|
I was wondering the same thing recently. I am keeping my eyes peeled. There is a bunch of Java based source for this floating around on the web, if you’re feeling ambitious…
|
|
|
|
|
Yeah, there's a flash plugin, deffinately. If you have the flash player installed on your system (if you can see flashes using IE you have it on your system) you can put one anywhere.
In the form design view go up to "Tools"->"Customize Toolbox" and then scroll down and check the "Shockwave Flash Object". And hit "Ok". Now in your toolbox to the left, you can select/use it by draging it in.
There is one major caveat, the Flash 6.0 (MX) plugin, doesn't work! It's a problem that Macromedia has been having, and it doesn't look like it will be resolved very soon (maybe within the next few months). So if you d/l the Flash 6.0 plugin, you won't be able to do a darned thing.
However, there is still hope, you can uninstall it, and then d/l the Flash 5.0 player from here: http://www.macromedia.com/go/14266
Flash/C# seems to be a very powerfull combination... I am working on this. Flash has an incredible ability to present UI in a clean and beautiful way. It is very possible for Flash and C# talk to eachother, with that there are endless possibilities...
|
|
|
|
|
This doesn’t sound like a very usable solution if you have to convince your clients to degrade a 3rd party (possibly non-related) component to a previous version just so you’re about box (or entire application) will display correctly. I would hope that Macromedia addresses the problem soon, or an alternative solution becomes available.
I did see the COM component you were talking about, but in my case, it refused to instantiate, period. I assume that is what you where referring to when you said “it doesn’t work”.
Regards
|
|
|
|
|
I agree, it's not a long term solution at all to degrade to 5.0, I meant it simply as a way to develop, getting arround the bug in 6.0, as Macromedia is aware of this problem.
|
|
|
|
|
I agree, I was not discounting your solution, just the consequences.
I actually have requested the SDK and SWF file format from Macromedia (there automatic registration for this is down at the moment) to see what it would take to develop a pure .NET solution. DirectX 9 (coming soon) is supposed to have full .NET support, it could be very interesting.
Cheers
|
|
|
|
|
Very interesting, please if you find anything share
|
|
|
|
|
Thanks for the note, however it is rather troublesome when a current version (Flash) is not supported. Will keep up to see how things go. Thanks.
Nick Parker
|
|
|
|
|
How do I format time so that it will show in terms of HH:MM only ? I am using this:
this.statusBar1.Text = DateTime.Now.TimeOfDay.ToString();
and the time is not in the right format. Thanks in advance.
Nick Parker
|
|
|
|
|
DateTime.Now.ToString("HH:mm") should do it. "hh:mm" for a 12 hour clock.
There is also DateTime.Now.ToString("t") and DateTime.Now.ToShortTimeString(), the latter just turns around and executes the former. These last two are locale/culture aware.
Regards
|
|
|
|
|
Thanks Neil that worked great. Just a note to all that read this. When you use DateTime.Now.ToString("HH:mm"); your results will be in military time. However a simple change to DateTime.Now.ToString("hh:mm"); will return "regular" time. Thanks again Neil.
Nick Parker
|
|
|
|
|
I am trying to make a combobox type control (not using an actual combobox and do not plan to subclass the ComboLBox) that will drop down a DataGrid or a List, but of course I keep hitting that dead end of trying to parent my DataGrid control (or a container for my control) to the Desktop so that it will not make my application lose focus when it is clicked on.
Of course .NET does not appear to have any method to obtain the desktop window handle and when I have tried to use GetDesktopWindow() it always seems to return zero.
Just parenting this control to the desktop is more work the the rest of the control. Any help is appreciated.
Can hardly wait to design controls that don't have to exist outside the form's clipping region
Rocky Moore
|
|
|
|
|
Rocky Moore wrote:
GetDesktopWindow() it always seems to return zero.
The desktop's HWND is 0
Nish
Regards,
Nish
Native CPian.
Born and brought up on CP.
With the CP blood in him.
|
|
|
|
|
Most people does not seem to notice that:
INVALID_HANDLE == (HANDLE)0xffffffff
Crivo
Automated Credit Assessment
|
|
|
|
|
Yeah
When he got the 0, he thought it was an error
Nish
Regards,
Nish
Native CPian.
Born and brought up on CP.
With the CP blood in him.
|
|
|
|
|
Nish,
There is no reason to slam people for asking a question. Educate me, which functions that return window handles return something other than NULL to indicate a failure.
Like I mentioned above, IsWindow is a much safer check, as the documentation for GetDesktopWindow doesn't indicate it could fail. I wonder what this returns for a process that is running in a state where there is no desktop?
In addition, HWND_DESKTOP, which is defined as ((HWND)0), fails IsWindow(HWND_DESKTOP) under Windows XP Pro. I haven't checked Windows 2000 yet.
Regards
|
|
|
|
|
Neil Van Note wrote:
Nish,
There is no reason to slam people for asking a question
I wasn't slamming him
I just thought it funny that MS was returning a 0 for GetDesktopWindow() and that too for a valid window handle, that of the desktop. Usually a 0 is supposed to indicate error or NULL as far as handles go.
I apologize to all, if my words were insulting. I didnt meant them that way. Sorry!
Nish
Regards,
Nish
Native CPian.
Born and brought up on CP.
With the CP blood in him.
|
|
|
|
|
The only time I have seen INVALID_HANDLE (INVALID_HANDLE_VALUE) mentioned is for operations on file handles. i.e. CreateWindow/CreateWindowEx return NULL on failure. NULL is a common failure result when dealing with window handles.
IsWindow is a safer check.
Regards
|
|
|
|
|
GetDesktopWindow() does not necessarily return 0. It does not on my machine (Windows XP Pro), this morning it is returning 0x00010014.
Regards
|
|
|
|
|
My XP Pro returns 0x00010014 and Win2k 0x0001000C
-Gile
|
|
|
|
|
Could be that with XP pro, we actually can have multiple virtual desktops.
Nish
Regards,
Nish
Native CPian.
Born and brought up on CP.
With the CP blood in him.
|
|
|
|
|
Multiple virtual desktops are more about extending window manager than being related to the OS (XP, Win2K, Win 9x, etc.). So, I guess we can have them with any MS OS flavor. It is just that with MS the actual line between the OS, shell and the window manager is kind of blurry (for the end user at least).
-Gile
|
|
|
|