|
to avoid flickering, you should probably make use of double-buffering.
Example: here[^];
Other comments: here[^].
SkyWalker
|
|
|
|
|
Indeed. Thanks for the reply.
I've put that in and everything draws really nicely now but I'm still unhappy that the whole control is 'repainted' needlessly, especially as I've put quite a bit of effort in to work out what does and does not need painting.
Regards,
Rob Philpott.
|
|
|
|
|
Then you could try using AControl.SuspendLayout() in the ResizeBegin event handler, and AControl.ResumeLayout in the ResizeEnd event handler of your form.
SkyWalker
|
|
|
|
|
Hi
I select a camera Pixord 205 for live view through VLC.But the camera is not connected.How can i know the camera is not connected
Thanks in Advance
Smithakrishnan
|
|
|
|
|
Is there any CNG compnents available for windows XP ?
please provide me some of links !!!
Thanks in Advance !!!
|
|
|
|
|
I really appreciate your assist and help.
I would like to convert 24bppRgb to 8bppIndexed in c# but i get an exception as out fo memory.the code is
Bitmap img = new Bitmap("c:\sky.jpg");
Bitmap bm = img.clone(new Rectangle(0,0,img.width, img.height),PixelFormat.Format8bppIndexed);
please help me to do it.
Abdul Rahman Hamidy From Afghanistan
|
|
|
|
|
Are you doing this inside a loop and not disposing of the bitmap?
|
|
|
|
|
I really appreciate you.
no plz i am doing it outside the loop
Abdul Rahaman Hamidy
Senior Student Student in Computer Science, Kabul, Afghanistan
Interesed in Software Development
|
|
|
|
|
Hello,
As "Ed.Poore" just said, you really should use Dispose or a using-block to free your GDI objects!
But this is not causing the exception.
It's also not that you are Out of bounds, which could also lead to this exception (seen in the msdn docu[^])
I think that the underlying problem is, that it's not possible to create an Graphics object from an bitmap with this PixelFormat.
Can be seen here:
using(Bitmap img = new Bitmap(@"c:\sky.bmp"))
using(Bitmap bm = Clone(img, PixelFormat.Format8bppIndexed))
{
}
public static Bitmap Clone( Bitmap source, PixelFormat format )
{
int width = source.Width;
int height = source.Height;
Bitmap bitmap = new Bitmap( width, height, format );
using(Graphics g = Graphics.FromImage( bitmap ))
{
g.DrawImage( source, 0, 0, width, height );
}
return bitmap;
}
I'm sure the articles from "Christian Graus", about "Image Processing" will help you.
Look here![^]
All the best,
Martin
|
|
|
|
|
I really appreciate your help
the code which you have send it, throws an exception and i didnt find any solution for this code
Abdul Rahaman Hamidy
Senior Student Student in Computer Science, Kabul, Afghanistan
Interesed in Software Development
|
|
|
|
|
Abdul Rahman Hamidy wrote: the code which you have send it, throws an exception
Like I told you in my post!
Abdul Rahman Hamidy wrote: and i didnt find any solution for this code
Have you had a look at the articles from "Christian Graus"?
All the best,
Martin
|
|
|
|
|
Hey, my Austrian friend, glad to see you after a while.
Congrats on the MVP award, and how are you doing?
Cheers,
Vikram.
"The weak can never forgive. Forgiveness is the attribute of the strong." - Mahatma Gandhi.
|
|
|
|
|
Vikram A Punathambekar wrote: Hey, my Austrian friend,
Hello Vikram!
Vikram A Punathambekar wrote: glad to see you after a while.
Thank's
Due to some changes that are going on at the company I'm working for, I'm very very busy write now.
It's a shame that I'm not able to do more for the comunity.
Vikram A Punathambekar wrote: Congrats on the MVP award
Thank you!
That was a real surprise for me, and I'm not sure if I deserve it (not fishing for compliments).
Vikram A Punathambekar wrote: and how are you doing?
Apart from the working thing, I'm doing quite well, thanks for asking.
Hope you are also doing well.
All the best,
Martin
|
|
|
|
|
Hi,When I use in sockets "return System.Text.Encoding.ASCII.GetString(buffReceiveData);"
It returns a-z,A-Z and 0-9 and some special characters also, But the German characters such as Ä are lost
Can any one help me to sort out this issue.
Jamman
|
|
|
|
|
|
The ASCII encoding is 7-bit ASCII only, and doesn't contain any special characters. You should use the same encoding that was used to encode the characters into bytes.
If the data is "8-bit ASCII", try Encoding.Default.
Experience is the sum of all the mistakes you have done.
|
|
|
|
|
hi there,
as i am using System.Text.Encoding.Ascii nearly everyday for processing german text (i.e. lots of ö's,ä's,ü's,ß's,...) i definitely know that it supports german special characters.
i guess that the data you are giving as parameter to System.Text.Encoding.ASCII.GetString() isn't encoded correctly.
can you check the correct encoding on the sender side?
|
|
|
|
|
Thanks buddy , I got the solution.
S.Akmal
|
|
|
|
|
Joachim Kerschbaumer wrote: as i am using System.Text.Encoding.Ascii nearly everyday for processing german text (i.e. lots of ö's,ä's,ü's,ß's,...) i definitely know that it supports german special characters.
This only works in the latest version of the framework. In earlier versions any characters outside the standard ASCII character set (0-127) were replaced with question marks.
Experience is the sum of all the mistakes you have done.
|
|
|
|
|
Hi..
As per the material i have done it, but its showing message like it has been send but iam not received any sms... can u pls help me
i gone through this link
<a href="http://www.codeproject.com/KB/aspnet/EasySMTP_package.aspx?msg=2425601#xx2425601xx">http://www.codeproject.com/KB/aspnet/EasySMTP_package.aspx?msg=2425601#xx2425601xx</a>[<a href="http://www.codeproject.com/KB/aspnet/EasySMTP_package.aspx?msg=2425601#xx2425601xx" target="_blank" title="New Window">^</a>]
krishna
krishna
|
|
|
|
|
You should ask the article author. Odds seem good to me that you're not hooked up with a working service to send SMS messages.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Ok fine, check this code and tell me pls.
mTo = Convert.ToString(txtToNumber.Text.Trim()) + Convert.ToString(cboCarrier.SelectedItem.ToString().Trim());
mFrom = Convert.ToString(txtFrom.Text.Trim());
mSubject = Convert.ToString(txtSubject.Text.Trim());
mMsg = Convert.ToString(txtMessage.Text.Trim());
try
{
MailMessage message = new MailMessage(mFrom, mTo, mSubject, mMsg);
SmtpClient mySmtpClient = new SmtpClient("mail.econsultants.in");
mySmtpClient.UseDefaultCredentials = true;
mySmtpClient.Send(message);
MessageBox("The mail message has been sent to " + message.To.ToString());
}
In drop down i added these....
cboCarrier.Items.Add("@itelemigcelular.com.br")
cboCarrier.Items.Add("@message.alltel.com")
cboCarrier.Items.Add("@message.pioneerenidcellular.com")
cboCarrier.Items.Add("@messaging.cellone-sf.com")
cboCarrier.Items.Add("@messaging.centurytel.net")
cboCarrier.Items.Add("@messaging.sprintpcs.com")
cboCarrier.Items.Add("@mobile.att.net")
cboCarrier.Items.Add("@mobile.cell1se.com")
cboCarrier.Items.Add("@mobile.celloneusa.com")
cboCarrier.Items.Add("@mobile.dobson.net")
cboCarrier.Items.Add("@mobile.mycingular.com")
cboCarrier.Items.Add("@mobile.mycingular.net")
cboCarrier.Items.Add("@mobile.surewest.com")
cboCarrier.Items.Add("@msg.acsalaska.com")
cboCarrier.Items.Add("@msg.clearnet.com")
cboCarrier.Items.Add("@msg.mactel.com")
cboCarrier.Items.Add("@msg.myvzw.com")
cboCarrier.Items.Add("@msg.telus.com")
cboCarrier.Items.Add("@mycellular.com")
cboCarrier.Items.Add("@mycingular.com")
cboCarrier.Items.Add("@mycingular.net")
cboCarrier.Items.Add("@mycingular.textmsg.com")
cboCarrier.Items.Add("@o2.net.br")
cboCarrier.Items.Add("@ondefor.com")
cboCarrier.Items.Add("@pcs.rogers.com")
cboCarrier.Items.Add("@personal-net.com.ar")
cboCarrier.Items.Add("@personal.net.py")
cboCarrier.Items.Add("@portafree.com")
cboCarrier.Items.Add("@qwest.com")
cboCarrier.Items.Add("@qwestmp.com")
cboCarrier.Items.Add("@sbcemail.com")
cboCarrier.Items.Add("@sms.bluecell.com")
cboCarrier.Items.Add("@sms.cwjamaica.com")
cboCarrier.Items.Add("@sms.edgewireless.com")
cboCarrier.Items.Add("@sms.hickorytech.com")
cboCarrier.Items.Add("@sms.net.nz")
cboCarrier.Items.Add("@sms.pscel.com")
cboCarrier.Items.Add("@smsc.vzpacifica.net")
cboCarrier.Items.Add("@speedmemo.com")
cboCarrier.Items.Add("@suncom1.com")
cboCarrier.Items.Add("@sungram.com")
cboCarrier.Items.Add("@telesurf.com.py")
cboCarrier.Items.Add("@teletexto.rcp.net.pe")
cboCarrier.Items.Add("@text.houstoncellular.net")
cboCarrier.Items.Add("@text.telus.com")
cboCarrier.Items.Add("@timnet.com")
cboCarrier.Items.Add("@timnet.com.br")
cboCarrier.Items.Add("@tms.suncom.com")
cboCarrier.Items.Add("@tmomail.net")
cboCarrier.Items.Add("@tsttmobile.co.tt")
cboCarrier.Items.Add("@txt.bellmobility.ca")
cboCarrier.Items.Add("@typetalk.ruralcellular.com")
cboCarrier.Items.Add("@unistar.unifon.com.ar")
cboCarrier.Items.Add("@uscc.textmsg.com")
cboCarrier.Items.Add("@voicestream.net")
cboCarrier.Items.Add("@vtext.com")
cboCarrier.Items.Add("@wireless.bellsouth.com")
krishna
|
|
|
|
|
Is it possible to change the extension of the produced assembly dll to something else. Any solution other than PostBuildEvent ? Looking for solution like CustomAttribute setting or anything like that.
Imtiaz
modified on Tuesday, February 12, 2008 10:03 PM
|
|
|
|
|
Navigate to the assembly in File Explorer, right click the file and select rename.
only two letters away from being an asset
|
|
|
|
|
I am using DataGrid without any database bound. I have costum Columns. I wanted when i put in a numeric value, my cell to display in currency. Tried to put C2 in format and didnt work.
And is it possible using event handler for a cell?
|
|
|
|