|
That't great! Thank you very much
|
|
|
|
|
You can use a propertygrid to display the properties of the class.
You can make changes to the object through the propertygrid though.
|
|
|
|
|
I have an alarm application for a Pocket PC (DELL Axim x51). When the alarm ring I play a beep sound using soundplayer class's PlayLooping method. But the sound stops on touch of any part of screen. I should play the sound until the user hits the STOP/SNOOZE menu buttons(which I have in my application). I display a messagebox when it starts playing. please suggest me how to keep the sound playing until the user hits my menu buttons. I do stop it in menu's event handler but before that when the user clicks on the screen it stops. I need to prevent this from happening and should make the sound stop only on click of my menu items.
--Shobha
-- modified at 10:56 Monday 3rd April, 2006
I have forgot to mention that I'm using OPENNETCF's Soundplayer class and my project is on Visual Studio.NET 2003.
|
|
|
|
|
Hi
I got an .png Image and want to convert it in an .gif file. When i try to show the .png file in an img tag the backround color of the image is grey. I heard Inetrnet Explorer can't show transparent .png files.
So i want to convert it in an .gif file. But after that the background of my .gif file is black..
<br />
String gifFilePath2 = System.IO.Path.Combine(path, fileName + "_scaled.png");<br />
String gifFilePath3 = System.IO.Path.Combine(path, fileName + "_scaled.gif");<br />
<br />
System.Drawing.Image imgGIF = System.Drawing.Image.FromFile(gifFilePath2);<br />
Bitmap bmpGIF = new Bitmap(imgGIF, size);<br />
bmpGIF.Save(gifFilePath3, System.Drawing.Imaging.ImageFormat.Gif);<br />
|
|
|
|
|
How to get: selected or not selected some text or images on page of axWebBrowser? It is for work with clipboard.
|
|
|
|
|
Can you make your question more structured please....
_____________________
Proud to be Albanian
_____________________
|
|
|
|
|
It is for different popup menu. If text selected i show popup_memu_1. If text not selected i show popup_menu_2.
-- modified at 15:29 Monday 3rd April, 2006
|
|
|
|
|
Hello
I have a checkbox I set to Enabled =False from time to time. However, I don't appreciate the grey tone both text and box gets when this is done. Is there some way to work around this? So far I've done an inherited checkbox control which actually consists of two, one of which is always disabled. I move this to front when control.Enabled = false. This doesnt solve the problem with the actual box being grey'ed down as well. How should I go about doing this?
/regards
|
|
|
|
|
I don't have the time to investigate this in detail.
But here is one idea:
You could owerride the Paint method from your derived checkbox and draw the checkbox by yourself.
But I would like to point out that checkboxes are supose to be gray when they are disabled. That's just standard practise and you should have a really good reason for not folowwing that...
--------------------------------------------------------
My development blog
Q:What does the derived class in C# tell to it's parent?
A:All your base are belong to us!
|
|
|
|
|
I think setting AutoCheck to false will draw it like it was enabled but will not automatically change the check state when the user clicks on it.
|
|
|
|
|
thanks for your suggestions
|
|
|
|
|
Hello!
I'm looking for a function which I can give a file path and a number of pixels. The function should remove enough characters of the path and replace them by "..." to fit into the given amount of pixels.
The PathCompactPath Win32 API function does this, but is there also a managed equivalent in the .NET framework?
Thanks and best regards
Dominik
_outp(0x64, 0xAD);
and
__asm mov al, 0xAD __asm out 0x64, al
do the same... but what do they do??
(doesn't work on NT)
|
|
|
|
|
If you're drawing your text using GDI+, you can use StringFormat class and set Trimming to EllipsisCharacter.
If you need it in a control, you can easily create custom control that does all the drawing and uses appropriate Trimming flag.
|
|
|
|
|
hi
I want to perform serial port communication in c#.net 1.1 (I am not supposed to use .NET 2 in which this is made very simple). I understand that serial port communication is not explicitly supported in .net 1.1. I am trying to make use of dlls from c++ files. I tried some but none worked. The code throws an exception saying that it was unable to load the corresponding serial communication dll. I am using visual studio 2003. kindly help me asap. i want to know why the code is unable to load the dll for serial port communication which is readily available?
I took the road less travelled by, and that has made all the difference
|
|
|
|
|
How about using a C# serial library?
A "naughty" way to do this for free in .NET 1.x would be to use reflector to copy the source of the classes.
Another possibility is that MS wrote a serial driver in VB.NET for their resource kit which they posted when 2003 was released. This provides the source code without having to go through reflector. The translation to C# shouldn't be that difficult.
Ed
|
|
|
|
|
Hi
I have a winform in vb.net and I want to print it (as is)...
I searched the internet for some code, all of which demonstrate using Graphics.DrawImage and BitBlt API to draw an image of the form to the printer . But as you know, there are lots of limitations.I must make my form fit on an A4 paper.
Could you please introduce me some references on printing a form, using standard .net method.
Thanks
|
|
|
|
|
Please dont crosspost, you clearly state this is a VB question so the post in that forum is sufficient
|
|
|
|
|
I don't beleive this is a VB question only, but rather a .Net question. Since any answer to this question in C# can be used in VB.NET and vice verca.
I also mean if someone could tell me how to print a form in C#, no difference!
This is the reason why I posted the topic in both forums...
|
|
|
|
|
when i override to handle tab in a textbox i have a ding sound like if the key is not supported/is not allowed in here.
<br />
protected override bool IsInputKey( Keys keyData )<br />
{<br />
if ( keyData == Keys.Tab )<br />
{<br />
return true;<br />
}<br />
<br />
return base.IsInputKey( keyData );<br />
}<br />
so how do i suppressed this sound ?
|
|
|
|
|
Override OnKeyDown instead and set e.Handled to true.
|
|
|
|
|
i need to override this to enable getting tab in my keydown override.
|
|
|
|
|
I think Robert is right... in the Keydown event, you may add
if(IsInputKey) e.Handled=True....<br />
This would stop the ding I guess....
|
|
|
|
|
I set the e.Handled=true but the annoying beep still coming
|
|
|
|
|
i did it. I had to set e.Handled to true in the keypress event. The keydown, keyup wasnt enough.
|
|
|
|
|
Hello!
I have one solution file that consist of three project.
One project that build a user control dll. In this user control we have a class called B
One project that build a class library dll. In this class library we have a class called C
In the user control project I have a project reference to the class library. I build the user control dll and this class library successfully.
This user control dll is added to the Toolbox. In the constructor for this class B is a call to instansiate a class C in the class library.
When I add this user control to the Toolbox I use directory obj/debug to select the user control dll. So adding the user control works fine.
When I drag this user control from the Toolbox into a form that exist in the project that build the exe file object B will be instansiated and another object which is class C will also be instansiated that exist in the class library. Like this.
public B()
{
InitializeComponent();
Last.C last = new Last.C();
last.foo();
}
In design mode when we want to design a form that exist in the project that build the exe file
we have one dependency the user control is dependent of the class library because an instance of class C will be instansiated as I mentioned before.
Now to my problem when I try to drag the user control from the toolbox into a form that exist in the project that build the exe file which search path is used to locate the class library dll because I get this error
"An exception occured while trying to create an instance of
WindowsControlLibrary.B. The execption was "?"." probably because the class library can't be found.
Where should I look and what should I do?
I'm rather new to using user control dll and class library.
One more additional information is when I drag the use control into a form a get the error message and at the same time two references are added which is the class library dll and the user control dll
If I look at the reference path for the class library that was added I
discover that my class library exist in this directory.
If I look at the reference path for the user control library that was added
I discover that my user control library exist in this directory. The two added reference path are the same.
//Tony
|
|
|
|