|
I would like to draw text with a OPAQUE or TRANSPARENT backgound mode.
How to do that with GDI+?
In other terms, under GDI+, how to obtain an effect similar to the SetBkMode and SetBkColor functions of GDI?
|
|
|
|
|
hi there,
Just a quickie:
Are there classes around to directly convert a 4byte big byte array to an Int32, or do I need to go the manual way?
Thanks a lot,
stonee
|
|
|
|
|
byte bt=0;
int i = Convert.ToInt32(bt);
MessageBox.Show(i.ToString());
switch(twinsOnWay)
{
case ("twins on the way"):
MessageBox.Show("for mr and mrs dynamic","twins on the way");
break;
|
|
|
|
|
i am talking about a byte array consisting of 4 bytes!
thanks,
stonee
|
|
|
|
|
have you checked out Convert Class,
it offers great varieties
|
|
|
|
|
found a solution with the
System.BitConverter.ToInt32(mybyteArray,4);
thanks anyway,
stonee
|
|
|
|
|
Hey,
I have a Windows form apllication with form1 and form2.
Form1 :
Combobox1 : bind to a dataset and have a displaymemeber
and valuemember.
Button1 : to go to form2 and also save the
combobox1.selectedvalue in a static variable string (ex.
val).
Form2 :
Combobox2 : bind to the same dataset, dislaymember and
valuemeber like combobox1 (When i checked it have the
same contents like combobox1).
But here I want to set the selectedvalue = val (the
selectedvalue of Form1.combobox1 saved in memory).
I'am sure that combobox2 have a selectedvalue=val.
But after combobox2.SelectedValue = val; The
selectedvalue of combobox2 stays null.
I don't know why.
Somebody knows the reason?
Set the selectedvalue of a combobox works fine, if i stay
on the same form, with the same combo. (So the combo is not constructed in the initialisecomponent again)
Nic
|
|
|
|
|
I Founded (after a several houres).
Fault was I bound the data and valuemebers in de initialisecomponent. It must be in the constructor !!!!
|
|
|
|
|
Hey,
In a Windows Form I access the assembly as follows :
Assembly assem = this.GetType().Assembly;
foreach(string resourceName in assem.GetManifestResourceNames(){
...
}
How I have to do that in a console application? This application have only a Main.
In the Main you cannot use this (because Main is static).
But I will do the same thing like in the windows forms.
Thanks for the hints,
bell
|
|
|
|
|
Is there a way to manually remove a file lock?
|
|
|
|
|
A question concerning the behavior...
Ex. I bind the data to a DataSet in the Form_Load() event. I have an event that is triggered when on the SelectedIndex_Changed event. On the load, the DataBind is causing the SelectedIndex event to fire which sort of makes sense. Is there flag or property I can set around the code block which binds the data to force it not to trigger that event.
|
|
|
|
|
There's no flag like this, I think. Create Your own - or - disconnect handler before DataBind and connect it after loading data
Hi,
AW
|
|
|
|
|
It is because.first u are seting the data source and then u might be setting the dispaly member and value member....
u can do like this
cmbClassId.DisplayMember = dataSet.Tables[Constants.CLASSES].Columns["ClassName"].ToString();
cmbClassId.ValueMember = dataSet.Tables[Constants.CLASSES].Columns["ClassID"].ToString();
cmbClassId.DataSource = dataSet.Tables[Constants.CLASSES];
This will cause event to occure only once.
dipak
|
|
|
|
|
To make a long story short, I've had to reinstall the directX 9 SDK. Im having trouble though actually finding the .dll files I need to use however (Microsoft.DirectX.Direct3D.dll etc). In my C:\WINDOWS\Microsoft.NET\Managed DirectX\v4.09.00.0900 directory, I have all of the .dll files I have used before however for files like Microsoft.DirectX.Direct3D and Microsoft.DirectX.Direct3DX, which I havent used before, all I has is their .xml files (no .dlls). I know .xml files arent "executable" but I have a suspicion I can create the .dll files from the .xml files. Any ideas?
I dont know, this whole thing has me pretty confused. Ive uninstalled and reinstalled the sdk a few times now, and cannot figure out where its putting all those files. I dont remember having this problem the first time I installed the sdk, and now everything just seems to be messed up. Any ideas?
Thanks
Dave Ratti
|
|
|
|
|
All right nevermind, I seemed to have fixed it. I installed DirectX 9a and now all my .dll files are there. Still very weird though.
|
|
|
|
|
Is there any Hungarian Notation for C#?
Never take a problem to your boss unless you have a solution. This signature was created by "Code Project Quoter".
|
|
|
|
|
|
I think MS has done away with Hungarian notation for C# and other .Net languages. See http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpgenref/html/cpconnamingguidelines.asp?frame=true
|
|
|
|
|
|
this is embarassing. how the hell does one make the clickety.
|
|
|
|
|
The little button in the bottom right corner that says "link[^]". It won't show up on Mozilla, BTW.
You can also type it in:
<a href="url">link text</a>
"Blessed are the peacemakers, for they shall be called sons of God." - Jesus
"You must be the change you wish to see in the world." - Mahatma Gandhi
|
|
|
|
|
Ranjan Banerji wrote:
how the hell does one make the clickety.
Use thie "link[^]" from the formatting toolbar.
or
If you are using DesktopBob, there is a option for Clickety. You need to copy the URL from post, click "Smart Clickety..." on Desktop Bob. It converts the selected URL (in the clipboard) to Clickety style (updated one will be in the clipboard). Then just use Ctrl + V to paste back into the post.
But in both cases you have to type the "Clickety" in the Subject field.
Never take a problem to your boss unless you have a solution. This signature was created by "Code Project Quoter".
|
|
|
|
|
I wrote a program, upon receiving a broadcast message, show a form to alert people. But I don't know how to do it when nobody is logged on. Any ideas?
Thank you in advance.
|
|
|
|
|
I'm messing around with VS Add-ins and the debugger and I have this VC7 app I'm debugging. To make a long story short, I'm trying to find the value of an Expression in the debugger. The variable is a char* and the Expression value is the pointer value of that char* converted to a string (ex. "0x#####").
So how can I take that Expression value ("0xWhatever"), convert it to an Int32 and then actually get the string value out of it and copy it to a C# string?
static unsafe string GetStringExpressionValue(Expression expr)
{
string strValue = "";
if (expr.IsValidValue)
{
if (expr.Type == "char *")
{
char * chrPtr = (char *)(Convert.ToInt32(expr.Value));
MessageBox.Show(expr.Name + " = " + expr.Value);
}
else
MessageBox.Show(expr.Name + " is not a string variable.");
}
else
MessageBox.Show("Expression was not valid");
return strValue;
}
Jason Henderson My articles
"The best argument against democracy is a five-minute conversation with the average voter." - Winston Churchill
|
|
|
|
|
Shouldnt u be able to say strVal = chrPtr or strVal = new string( chrPtr )? I have not tried it but it seems to make sense.
|
|
|
|