|
I just found out that if I remove
Application.EnableVisualStyles();
from my constructor, the bitmaps show up just fine, now whats up with that?
Not bitmaps in the toolbarbuttons when using XP style, hmmmmm
- Anders
Money talks, but all mine ever says is "Goodbye!"
My Photos[^]
nsms@spyf.dk <- Spam Collecting 
|
|
|
|
|
|
EnableVisualStyles causes way more problems that not even apparent!
leppie::AllocCPArticle("Zee blog"); Seen on my Campus BBS: Linux is free...coz no-one wants to pay for it.
|
|
|
|
|
Hi,
I am trying to use the select method in Dataset that filters using a string.
sFindEmp = "LastName = 'Jones'";
dsEmployWC.Tables[0].Select(sFindEmp);
This runs without error but when I assign this
tbEmpNum.Text = dsEmployWC.Tables[0].Rows[0]["Employee#"].ToString();
its not the correct record. What am I doing wrong?
Thanks,
JJBean
|
|
|
|
|
|
MrJJKoolJ wrote:
I am trying to use the select method in Dataset that filters using a string.
For filtering use : ds.Tables[0].DefaultView.RowFilter = "LastName = 'Jones'";
Mazy
No sig. available now.
|
|
|
|
|
I have an office app that need to send information to a central server through the net (Ie. update the central server's SQL database). My first thought was to do remoting. To secure it I used a secure channel. However I still have a problem: the remote object is exposed on the internet. What is the best way of authenticating the clients.
I've been looking for things and the only thing that I came up with is hosting the object in IIS and using server certificates. However I haven't been able to get client-activated remote objects properly hosted in IIS. If this is a good direction to head please help me out with a pointer to hosting client-activated objects in IIS.
|
|
|
|
|
Did you get all the code samples from Ingo Rammer's Book. I think I read something about CAO behind IIS.
Take a look.
Free your mind...
|
|
|
|
|
Hi!
I looking for XP Style textBoxes and dataGrids, but can´t find any?
Do anyone know?
Thx
Thomas Andersson
|
|
|
|
|
Theming (a.k.a. XP styles) should only be used if the operating system uses it. This is highly recommended by the Windows User Interface Guidelines to provide users with a consistent interface. To make that happen, see my article Windows XP Visual Styles for Windows Forms[^]. For themed controls that don't support theming in .NET, see Infragistic's[^] NetAdvantage suite, which has great Windows Forms and Web Forms controls. I've used a few and they're pretty good.
-----BEGIN GEEK CODE BLOCK-----
Version: 3.21
GCS/G/MU d- s: a- C++++ UL@ P++(+++) L+(--) E--- W+++ N++ o+ K? w++++ O- M(+) V? PS-- PE Y++ PGP++ t++@ 5 X+++ R+@ tv+ b(-)>b++ DI++++ D+ G e++>+++ h---* r+++ y+++
-----END GEEK CODE BLOCK-----
|
|
|
|
|
|
There is a base class names DES for another class DESCryptoServiceProvider,I can use both for DES encyption like this:
DES des = DES.Create();
or
DES des = new DESCryptoServiceProvider();
My book say it is recommended to use first one because it create default cryptography service which it is latest version but second one is a defined way which is not surly latest version. Now I have a problem,I have a web service which has some encryption-decryption and this web service has a VB client and the VB client has its own encryption-decryption. The VB developer do his own part. Is that make change which one I use? Because he will/can not use .NET framework and he have to use cryptograohy API, I don't know the API's and I don't know the equivalent of first one. Also can I be sure if the cryptography's versions are grow the results of DES.Create() will be the same and it will generate the same decrypted value whith the constant KEY?(I mean only algorithm change but not the result) If I wrote myself both parts I could be sure about that but now one part in VB and I'm not sure about that. I hope that my problem is clear for you guys.
Mazy
No sig. available now.
|
|
|
|
|
The whole idea of cryptographic standards - or any standards at all - is that they are the same wherever they are implemented. Crypto algorithms like RSA and DSA are standard. Don't worry about the implementation. So long as the key (i.e., the shared key in symmetric key or private key in asymmetric algorithms) you should have no problems. And again don't worry about the cipher text being different from encrypt and encrypt - the initialization vector is supposed to change in order to randomize the results and make it harder for crypto analysts to crack the key.
Again - these are standards.
Besides, the cryptography in .NET uses the Crypto API for various things.
-----BEGIN GEEK CODE BLOCK-----
Version: 3.21
GCS/G/MU d- s: a- C++++ UL@ P++(+++) L+(--) E--- W+++ N++ o+ K? w++++ O- M(+) V? PS-- PE Y++ PGP++ t++@ 5 X+++ R+@ tv+ b(-)>b++ DI++++ D+ G e++>+++ h---* r+++ y+++
-----END GEEK CODE BLOCK-----
|
|
|
|
|
Thanks Heath.
Mazy
No sig. available now.
|
|
|
|
|
wonderful piece of code, that Crypto API ;)
________________________________________
Gosh, it would be awful pleas'n, to reason out the reason, for things I can't explain.
Then perhaps I'd deserve ya, and be even worthy of ya..
if I only had a brain!
|
|
|
|
|
Hi,
I derived my collection class from CollectionBase. Now if i edit my collection in the CollectionEditor and remove an item from the collection, there is no call to CollectionBase.Remove() method. The Add method is called, but the remove never, why ?
I would like to perform additional custom processes on add, insert and remove.
This has to work on code and with CollectionEditor, but it seems that it behaves different.
Any hints?
.:[Greetz from Jerry Maguire]:.
|
|
|
|
|
When you override methods, it is your method that is getting called. In your implementation, make sure to call base.Remove in order for the base class's method to be called. You should almost always call base.Method(params) when overriding methods from a base class, unless you have a reason for not doing so (like you don't want the default implementation to be executed, which is pretty common when overriding WndProc ).
-----BEGIN GEEK CODE BLOCK-----
Version: 3.21
GCS/G/MU d- s: a- C++++ UL@ P++(+++) L+(--) E--- W+++ N++ o+ K? w++++ O- M(+) V? PS-- PE Y++ PGP++ t++@ 5 X+++ R+@ tv+ b(-)>b++ DI++++ D+ G e++>+++ h---* r+++ y+++
-----END GEEK CODE BLOCK-----
|
|
|
|
|
Hi Heath,
thanks for the answer. But it seems like the collection editor always clear's the collection and call Add method for every item. I have no clue why the editor do this, but it works...
thanks...
.:[Greetz from Jerry Maguire]:.
|
|
|
|
|
Hi
I need some help in getting a video played in the back ground of my win form where I will add some controls that would display some text and other stuff.
What I did until know is.
Using interop and Com I am able to play the video inside a panel, but here is the problem if I add a control inside the panel ex.
This.controls.add(panel1)
This.panel1.Controls.Add(textcontrol)
When the video loads it is hiding everything in the same control (panel1) but not all the form unless I set the size of panel1 to be as the same size as the form.(I don’t want every thing to be hidden I want the controls to show over the video with an alpha transparency level )
What I did is instead of adding the textcontrol to the panel1 I am adding it to the main form so I am being able to put the text over the video, but I am losing the benefit of having an alpha (transparency) for my text.
I would weolcme any suggestion to solve this and any alternative solution
Simply what I am trying to achieve now is to have a news bar like the one that you can see on CNN by adding text over the video
Thanks for reading this.
Best regards
|
|
|
|
|
I'm not sure about the solution to your exact problem (I'll take a look at this later tonight possibly...it might have to do with how overlays in general work), but I'm curious why you're using interop and COM to use DirectShow functionality?
Have you considered looking at the Managed DirectX stuff and the Microsoft.DirectX.AudioVideoPlayback namespace in particular? It seems like it'd be a lot easier in general than doing COM interop.
I, for one, do not think the problem was that the band was down. I think that the problem may have been that there was a Stonehenge monument on the stage that was in danger of being crushed by a dwarf.
-David St. Hubbins
|
|
|
|
|
I'm building a custom control and I want it to change borders when a MouseEnter events happens.
a) Can I simply paint the border in the MouseEvent method?
OR
b) Must I set a flag and call Invalidate(), and wire OnPaint to draw the new/old border appropriately?
If a) is ok, then how do I get a graphics instance in the MouseEnter event.
Or, is b) the preferred method to do this?
Thanks,
-Luther
|
|
|
|
|
Because there are several things that can happen while your mouse is moving or resting comfortably in the bounds of your control, it'd probably be best to set a flag (ex: set to true ) and call Invalidate() in the handler for MouseEnter event, and to clear the flag (ex: set to false ) in the handler for the MouseLeave event. Of course, your override for OnPaint (note, this is an override, not an event handler, which are typically wired for other controls - use overrides when possible to override functionality from the base class) should draw the border appropriately depending on the flag.
The first method is possible (see Control.CreateGraphics ) but is too problematic since MouseEnter only fires once. Your border would get painted, sure, but then any successive painting required won't repaint the border.
-----BEGIN GEEK CODE BLOCK-----
Version: 3.21
GCS/G/MU d- s: a- C++++ UL@ P++(+++) L+(--) E--- W+++ N++ o+ K? w++++ O- M(+) V? PS-- PE Y++ PGP++ t++@ 5 X+++ R+@ tv+ b(-)>b++ DI++++ D+ G e++>+++ h---* r+++ y+++
-----END GEEK CODE BLOCK-----
|
|
|
|
|
The flag method works cleanly - I typically try to avoid saving and polling state like that ... but practically speaking, I assume it makes sense in this stateful, event driven world.
I also appreciate your comment regarding overrides vs handlers. It wasn't concretely clear to me when to use which.
I see that for every child control I add to a parent, I could add a handler. Self-documenting and a bit easier to organize. Whereas, the control's own painting naturally belongs in the override.
Thanks!
-Luther
|
|
|
|
|
How can I run a c# application without .net framework ?
|
|
|
|
|
No. There's a reason .NET applications are said to be managed code: it's managed by the CLR, just like Java is by the JVM, Visual Basic is by the VB runtime, etc.
The .NET Framework MUST be installed to run ANY .NET application (regardless of what language the source code is in, since all compilers produce IL, except the MC++ which - in mixed mode - can embed native code into assemblies).
See the following article for a pretty good view on the subject: http://radio.weblogs.com/0105852/stories/2002/04/21/itsTheRuntimeStupid.html[^].
-----BEGIN GEEK CODE BLOCK-----
Version: 3.21
GCS/G/MU d- s: a- C++++ UL@ P++(+++) L+(--) E--- W+++ N++ o+ K? w++++ O- M(+) V? PS-- PE Y++ PGP++ t++@ 5 X+++ R+@ tv+ b(-)>b++ DI++++ D+ G e++>+++ h---* r+++ y+++
-----END GEEK CODE BLOCK-----
|
|
|
|