|
Don't post a new question as a reply in a completely unrelated thread.
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
I download the CaptureAndPrintMSChart project (http://www.codeproject.com/KB/cpp/capture_and_print_mschart.aspx) & tried, the MsChart working fine but when I try to print, I have the error
MSChart.EditCopy();<br />
Bitmap chartCapture = (Bitmap) Clipboard.GetDataObject().GetData("Bitmap", true);<br />
chartCapture.Save("Image.Jpeg");
- The error says that: The ExecutionEngineException was unhandled
By the way, I use the Visual Studio 2005 (Prof.), I think that is the reason (it did converted before I ran the project)
Can someone show me how to modify it?
Thank for any help
modified on Friday, October 24, 2008 3:48 PM
|
|
|
|
|
i'm trying to capture the screen when i'm playing video but when i run the code it capture the entire screen but the video region always black. It works fine in Vista but in windows XP it do the black video region problem. I have tried several ways but always same problem. Some of them are :
[DllImport("user32.dll")]
private static extern IntPtr keybd_event(int key, int dummy, int flags, IntPtr info);
keybd_event(0x2c, 0, 0, IntPtr.Zero);
Application.DoEvents();
Image tmp_I = Clipboard.GetImage();
tmp_I.Save(filePath);
Bitmap tmp_B = new Bitmap(Screen.PrimaryScreen.Bounds.Width, Screen.PrimaryScreen.Bounds.Height);
Graphics g = Graphics.FromImage(tmp_B);
g.CopyFromScreen(new Point(0, 0), new Point(0, 0), Screen.PrimaryScreen.Bounds.Size);
tmp_B.Save(filePath);
any idea guys ?
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)JKSQXUFYK[M`UKs*$GwU#(QDXBER@CBN%
Rs0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-iTV.C\y<pjxsg-b$f4ia>
--------------------------------------------------------
128 bit encrypted signature, crack if you can
|
|
|
|
|
As i type text in MultiLineStringEditor it expands horinontally so is there a way to control the width of the MultilineStringEditor when text is being entered. I couldn't find anything resourcesful hope gurus can help me out here.
[Editor(typeof(MultilineStringEditor), typeof(UITypeEditor))]
public override string StringProp
{
get{ return base.StringProp; }
set{ base.StringProp= value; }
}
|
|
|
|
|
DirectoryEntry employee = result.GetDirectoryEntry();
string ea = employee.Properties["proxyAddresses"].Value.ToString();
MessageBox.Show(ea.ToString());
Hi All,
i'm using the above code to try and extract the email address of a user account. if i swap proxyAddresses for 'description' or 'employeeID' etc it works fine. but when i use proxyAddresses it errors!
i have tried creating ea as a string array and it still fails!!
any ideas?
many thanks,
Phil
|
|
|
|
|
|
Hi all,
I'm trying to make the horizontal scrollbar visible by assigning true to the HorizontalScroll.Visible attribute, but it's being ignored; the value is false even right after assigning true:
mainPanel.HorizontalScroll.Visible = hScrollVisible;
mainPanel.AutoScroll is false. A Google search provides no insight. Any idea why this is happening?
|
|
|
|
|
The scroll bars are only visible when AutoScroll is set to true and it contains something that is outside of the visible area.
The HorizontalScroll property is read only so setting any of it's elements will have no effect.
DaveBTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)Visual Basic is not used by normal people so we're not covering it here. (Uncyclopedia)
|
|
|
|
|
Hi,
have a look at the HScroll property, which Forms.Panel inherits from
ScrollableControl
|
|
|
|
|
|
Post back if you sort it Alan as I'd be interested in the solution! I've had a look at the source for the Panel and ScrollableControl and it seems that all the calculations that decide whether to display the scroll bars are in private methods.
DaveBTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)Visual Basic is not used by normal people so we're not covering it here. (Uncyclopedia)
|
|
|
|
|
I ran into that problem too, and decided I couldn't get away from AutoScroll = true.
The trick was resetting the AutoScrollMinSize member to the ACTUAL size of the control. This causes the scrollbars to appear (correctly-sized) when the control's content exceeds the actual size.
|
|
|
|
|
Glad to see that you are back Luc
|
|
|
|
|
Hi Giorgi,
Thanks. Actually I never left, I continue reading CP articles and forums,
but I refrain from reacting or answering most questions since I am not happy
with the direction this site is taking (quantity seems far more important than
quality), and in particular I object to the black and-white voting system.
But occasionally I do enter a single message.
Regards,
|
|
|
|
|
I remember reading about it on your blog here, at CP. As for black and white voting system, the user who has asked the question can vote in the same way as it was in last.
|
|
|
|
|
|
This might help[^]
Regards,
Thomas Stockwell
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.
Visit my Blog
|
|
|
|
|
plz use Google before posting a question.
|
|
|
|
|
Dude, try google before asking a question
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
"Not only do you continue to babble nonsense, you can't even correctly remember the nonsense you babbled just minutes ago." - Rob Graham
|
|
|
|
|
ths is 4rm, not msn/txt. plz dnt uz txtspk.
|
|
|
|
|
J4amieC wrote: ths is 4rm, not msn/txt. plz dnt uz txtspk.
Wtr fkn rs0l.
|
|
|
|
|
Can't use Google and is an annoying text speaker.
Blog link to be reinstated at a later date.
|
|
|
|
|
public void UpdateTextBox(String data)
{
if (this.InvokeRequired)
{
this.Invoke(new Action<string>
(UpdateTextBox), data);
return;
}
txtData.Text = data;
}
|
|
|
|
|
And again! Why are you posting random bits of meaningless code? If you have a question please spit it out, I don't do mind reading on a Friday.
Bob
Ashfield Consultants Ltd
|
|
|
|
|
ListBox1.EnsureVisible(index)
|
|
|
|