|
There was some code published on the gotdotnet.com website under user samples section some time ago that gives you a COM port stream - you should be able to find it no problem.
|
|
|
|
|
I'm embarrassed to even ask this question.
But i gotta know...:/
As you can tell, i'm green on c#.
Thanks in advance
...Steve
|
|
|
|
|
Have you considered docking. Most of the controls have docking property.
Cheers,
Kannan
|
|
|
|
|
I just figured out that .Anchor property.
Those MS guys think of everything :/
That's what ya mean, right?
Thanks!
...Steve
|
|
|
|
|
Use Anchor property as well
Hi,
AW
|
|
|
|
|
Thanks! This c# stuff is just WAY too easy...:/ ...Steve
|
|
|
|
|
I'm in the middle of a Windows Forms application with a bunch of TextBoxes. Regular key presses fire KeyUp, KeyPress and KeyDown events. But the Delete key doesn't fire KeyPress. Why? I need to get the text BEFORE it's changed, so I'm trapping it in KeyPress, but when I press the Delete Key, this event doesn't fire. Can someone help? What am I missing here...
TIA
Mark.
Mark Malin
(00==[||]==00)
|
|
|
|
|
I would override IsInputKey(Keys keydata) just to know if the delete key is trapped there. (Keys.Delete = 0x2E).
|
|
|
|
|
I was not able to override IsInputKey or IsInputChar. As far as I could tell, my code was never called.
While developing an Explorer Bar in C#, using the BandObject control, the Backspace seems to be ignored -- it is never passed on to the textbox which is a child of my Explorer Bar. A KeyPress event is never triggered for the Backspace key.
What is a good solution? I've heard that trapping the key in TranslateAcceleratorIO is the way to go, which makes sense, but I don't know what to do from there. I wouldn't mind firing an event from there, but how do I fire the event with the right event source? Or is there something I can override to prevent the Backspace key from being trapped?
Thanks,
Arun
|
|
|
|
|
Anyone know of any good articles on the design of modular apps, apps that can utilise plug-ins for example. In the style of winamp's plugins. Such that supplement to distribution, new features can be added to the app without having to re-build the app itself.
"How long has the "Quote Selected Text" been around???" - Marc Clifton, Lounge 4 Mar '03 "But a fresh install - it's like having clean sheets" - Chris Maunder Lounge 3 Mar '03
|
|
|
|
|
THe .NET reflection API opens the door of a new generation of open apps that can guess entry points of plug-ins, at run-time. I believe the MSDN mag has a few articles about it.
If your plugins are supposed to implement a simple interface, then there is no nothing particularly new or odd with assemblies. They work like dlls.
Plugins can be declared either in the application .config file, or dynamically loaded at run-time by code( System.AppDomain.Load(...) ).
|
|
|
|
|
Any particular keywords I should search for? I've tried 'modular applications' and 'plugins'.
Its the principle of, there is an app that knows everything it needs to to run, but then I wanna add a dialog box/form that does something else say a media player or something. I'd need it to add a menu/toolbar item in the main app, then that would load the form (contained in the plugin dll).
"How long has the "Quote Selected Text" been around???" - Marc Clifton, Lounge 4 Mar '03 "But a fresh install - it's like having clean sheets" - Chris Maunder Lounge 3 Mar '03
|
|
|
|
|
Jonny Newman wrote:
Its the principle of, there is an app that knows everything it needs to to run, but then I wanna add a dialog box/form that does something else say a media player or something. I'd need it to add a menu/toolbar item in the main app, then that would load the form (contained in the plugin dll).
I would recommend these 2 MSDN mag articles as a starting point : Dino Esposito Xml plugins[^] ; Paul Di Lascia Xml GUIs[^].
|
|
|
|
|
|
|
oh, so your a smart ass now?
| Website: http://www.onyeyiri.co.uk
| Sonork: 100.21142 : TheEclypse
| "If a dolar was a chicken would the chicken be evil?"
|
|
|
|
|
Better than a dumbass who doesn't read threads
"How long has the "Quote Selected Text" been around???" - Marc Clifton, Lounge 4 Mar '03 "But a fresh install - it's like having clean sheets" - Chris Maunder Lounge 3 Mar '03
|
|
|
|
|
rather not read threads than be a little script kiddie, making stupid little apps that just changes colour and moves around the screen.
| Website: http://www.onyeyiri.co.uk
| Sonork: 100.21142 : TheEclypse
| "If a dolar was a chicken would the chicken be evil?"
|
|
|
|
|
Hey I told you it was bloody annoying, and I was bored when I made it.
It was designed to be the most annoying app ever. Next to Clippy.
"How long has the "Quote Selected Text" been around???" - Marc Clifton, Lounge 4 Mar '03 "But a fresh install - it's like having clean sheets" - Chris Maunder Lounge 3 Mar '03
|
|
|
|
|
Jonny Newman wrote:
It was designed to be the most annoying app ever.
"Your honor, I believe Mr. Newman has 'shot himself in the foot' as it were, I rest my case."
| Website: http://www.onyeyiri.co.uk
| Sonork: 100.21142 : TheEclypse
| "If a dolar was a chicken would the chicken be evil?"
|
|
|
|
|
Hi all,
I want to build in c# a persistant activex containing 4 ocx : ocx1, ocx2, ocx3, ocx4. To catch ocx events, we must embedd them in forms.
So, my c# activex will be an activex containing :
4 forms for my 4 ocx.
The goal is :
- The c# activex is an "OCX WRAPPER" exposing an interface allowing
to invoke all the methods of the 4 ocx. When a process invoke a method of this wrapper, the wrapper switch to the good ocx.
- There is only one instance of each ocx
- We must be able to invoke a method of an embedded ocx in a process
and catch an event in another process !
Good luck.
|
|
|
|
|
kroczek wrote:
- The c# activex is an "OCX WRAPPER" exposing an interface allowing
to invoke all the methods of the 4 ocx. When a process invoke a method of this wrapper, the wrapper switch to the good ocx
Sounds like event dispatching (all 4 ocxs are event sources and event sinks at the same time).
kroczek wrote:
- There is only one instance of each ocx
Sounds like mutex
kroczek wrote:
We must be able to invoke a method of an embedded ocx in a process
and catch an event in another process !
Events cross the process boundaries. Not an issue here.
kroczek wrote:
Good luck.
Good homework, indeed.
(well at least, if you like plumbering and marshaling).
|
|
|
|
|
I am trying to draw graphics on media player,It works. but when I play a movie, the draw the graphics has been hidden on the movie. and i can not draw on the media player anymore, but if i draw on the brink, still can see some line of graphics.
It is said that bcs media player is Weight object, they always hides light object. any body know these concept?
How can i do if i want to draw on the movie. is there any setting i need to do or whatever....
pls help.
thanks a lot
|
|
|
|
|
Not sure about the latest Windows media player SDK, but the apps I have seen in the past rely on DirectShow (DirectX SDK), draw in a doublebuffer, and blit the resulting stuff on screen.
|
|
|
|
|
I did not catch what u mean, how do u think the solution of the problem?
i want to draw on mediaplayer,but it is weight object. how should i do?
very appreciate for ur help
|
|
|
|