|
I have the solution. Someone on MSDN forum showed me how to do it, and it's amazingly simple:
protected override void WndProc(ref Message m)
{
if (m.Msg == 0x86)
m.WParam = (IntPtr)1;
base.WndProc(ref m);
}
I just placed this function inside both forms and it works. But there is still another problem. The forms are painted as active even when i activate some other application. That is not good. It brings confusion. I need to find a way to bypass these functions in both forms if another application gets activated. Any idea?
|
|
|
|
|
Have a look at this[^]. Perhaps you can make a method from the principle used and then in WndProc do something like:
if ((m.Msg == 0x86) && (this.IsActiveApplication))
{
m.WParam = (intPtr)1;
}
Hope this helps.
Henry Minute
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
|
|
|
|
|
Im trying to extract albumart from ID3 tags using TagLib Sharp. I am able to get all other info except for the pictures, I cant seem to figure it out. Anyone have any experience with TagLib Sharp?
Heres my trouble:
Everything works fine but the pictures
private void songInfo(string url)
//Sets info for song info pane. The current URL being played
//is passed in; the labels are derived from the ID3 tags.
{
int i = 0;
TagLib.File file = TagLib.File.Create(url);
lblName.Text = file.Tag.Title;
lblArtist.Text = file.Tag.FirstPerformer;
lblAlbum.Text = file.Tag.Album;
lblYear.Text = Convert.ToString(file.Tag.Year);
foreach (TagLib.IPicture pic in file.Tag.Pictures)
{
pboxAlbumArt.Image = pic.Data;
}
}
Heres where I hit trouble, doing this gives me an error saying it cannot convert a bytevector to an image. Firts of all is this the correct way to do this nd if so, how would I go about converting a bytevector to an image?
Thanks
Jon
|
|
|
|
|
If u get the solution,plz post it..
I am in the same need..If i found it,I'll post it.
thanx
I walk in rain ....so that no one can see me crying.
|
|
|
|
|
|
Hey everybody!
I was wondering, is there a way to execute JIT on the whole program at startup?
Lets say I have a small application that I want to be completely compiled before it actually starts running (like a C++ program), is there a way to do that?
Thanks!
|
|
|
|
|
Look for a tutorial on NGEN.EXE
I are troll
|
|
|
|
|
okay, thanks!
|
|
|
|
|
You can try RuntimeHelpers.PrepareMethod . It is in System.Runtime.CompilerServices . Refer to the MSDN documentation before you try it out.
|
|
|
|
|
This[^] article may help.
/ravi
|
|
|
|
|
Dear All,
I have small application where it upload, downloads files into ftp server.
I am using FtpWebRequest class for these features.
in case my file size is too big as (512 MB or 1 GB), i want the download should occur in multiple segement as download managers (FDM,DAP,...).
Is there any features in FtpWebRequest for such thing?
Thanks,
Abdul Rahaman Hamidy
Database Developer
Kabul, Afghanistan
|
|
|
|
|
missing method expectation was unhandeled.
method not found...,system.object . system.windows.threading.dispatcher,invoke(system.delegate,system.object[])
trouble shooting tips: if a method in a class library has been removed, recompile any assemblers that referrence that library.
general help fo this exception.
can you help me with this?
thanks
|
|
|
|
|
john2313 wrote: trouble shooting tips: if a method in a class library has been removed, recompile any assemblers that referrence that library.
What happened when you tried this tip?
|
|
|
|
|
Thank you for your reply.
I cant follow the tip as im new to C#. thats why im asking for a shortcut if you know something about it.
ok?
|
|
|
|
|
Hello,
I try to read a text whitch on bulgare, but it show ??????, when i debug my project the variable contain the text in correct form but when i show it with Console.write(), it show ??????,
i try to use this :
<br />
<br />
Encoding e1 = Encoding.GetEncoding(21025);<br />
Console.Write(cell_nom,e1);<br />
<br />
But it not work, please help me to resolve this great problem, thank you verry mutch.
|
|
|
|
|
Did you try unicode (utf-16)?
|
|
|
|
|
try codepage 1251.
|
|
|
|
|
thank you verry mutch for your answer, but it doesn't work, i try for the utf-16 (unicode), codepage 1251, the text was : кв. Запад - ДКЦ Св.Иван рилски - каб.4,7,8,9 , please help me, thank you verry mutch.
|
|
|
|
|
If foreign text is not showing correctly, these are the two main reasons:
1. the text does not contain what you expect, e.g. because you did not use the right Encoding or codepage;
2. the output is not able to show the characters, e.g. because the font chosen does not contain them.
Not sure how you are looking at Console.Write() output but 2. is very likely since a "Command Prompt", "DOS Window" and the like probably use a "non-proportional" or "monospaced" font which may have a very limited character set.
You are likely to have better output on a Windows application, using a font such as Arial
or Microsoft Sans Serif.
If yours is a Console Application, you can still add a reference to System.Windows.Forms and open some Forms, with TextBoxes and the like. Maybe that is the easiest approach.
|
|
|
|
|
Thank you verry mutch for this explication, it show correctly in message box or tex box, but in Console.write(), it show ???????, how i can resolve this problem, thank you very mutch.
|
|
|
|
|
Change the font of the console to "Lucida Console" to display special characters.
|
|
|
|
|
|
|
If WordWrap is false then you can simply use Textbox.Lines.Count .
TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L
%^]*IRXD#@GKCQ`R\^SF_WcHbORY87֦ʻ6ϣN8ȤBcRAV\Z^&SU~%CSWQ@#2
W_AD`EPABIKRDFVS)EVLQK)JKQUFK[M`UKs*$GwU#QDXBER@CBN%
R0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-iTV.C\y<pjxsg-b$f4ia>
-----------------------------------------------
128 bit encrypted signature, crack if you can
|
|
|
|
|