Click here to Skip to main content
16,012,082 members
Home / Discussions / C#
   

C#

 
AnswerRe: RenderDvdVideoVolume question Pin
Eric Dahlvang4-Dec-06 8:29
Eric Dahlvang4-Dec-06 8:29 
GeneralRe: RenderDvdVideoVolume question Pin
Marc Clifton4-Dec-06 9:12
mvaMarc Clifton4-Dec-06 9:12 
GeneralRe: RenderDvdVideoVolume question Pin
Eric Dahlvang4-Dec-06 9:26
Eric Dahlvang4-Dec-06 9:26 
GeneralRe: RenderDvdVideoVolume question Pin
Marc Clifton4-Dec-06 9:38
mvaMarc Clifton4-Dec-06 9:38 
GeneralRe: RenderDvdVideoVolume question Pin
Eric Dahlvang4-Dec-06 10:06
Eric Dahlvang4-Dec-06 10:06 
GeneralRe: RenderDvdVideoVolume question Pin
Marc Clifton4-Dec-06 10:12
mvaMarc Clifton4-Dec-06 10:12 
QuestionPowerPoint effects: How to figure out a current effect name within SlideShowNextBuild event handler? Pin
wasek20014-Dec-06 2:51
wasek20014-Dec-06 2:51 
QuestionDrawString / label transparency Pin
Scalee4-Dec-06 1:47
Scalee4-Dec-06 1:47 
I have 35 labels on a picture, if i set these to transparent they just asume the color of the form.

Now after googling for a while i found out that i should use drawstring but then i cant move the objects anymore which is like the whole point of the application.

Move code: (with event trigger @ the end)

I have been trying to get this to work for about 16 hours im going out of my mind,
I'd would make me very happy if someone could assist me in creating a way to display the text ontop of a picture and still be able to move them.

Thanks allot!

ps exuse my crappy coding skill.

private void movepic(object sender, System.EventArgs e)
{

newcoord = 0;
math = 0;
decide = "";
input = input.ToLower();
startcoord = 0;
substract = false;

//c = center (320)
if (input.IndexOf("c") >= 0)
{
decide = "c";
}
//r = right (640)
if (input.IndexOf("r") >= 0)
{
decide = "r";
}
if (input.IndexOf("-") >= 0)
{
decide = "-";
}
if (input.IndexOf("c-") >= 0)
{
decide = "c-";
}
if (input.IndexOf("r-") >= 0)
{
decide = "r-";
}
switch(decide)
{
case "c":
startcoord = 320;
input = input.Remove(0,1);
break;
case "r":
startcoord = 640;
input = input.Remove(0,1);
break;
case "-":
substract = true;
input = input.Remove(0,1);
break;
case "c-":
startcoord = 320;
substract = true;
input = input.Remove(0,2);
break;
case "r-":
startcoord = 640;
substract = true;
input = input.Remove(0,2);
break;
default:
break;
}
if (input != "")
{
math = int.Parse(input);
}
if (input2 != "")
{
newcoord2 = int.Parse(input2);
}
if (substract == true)
{
newcoord = startcoord - math;
}
else
{
newcoord = startcoord + math;
}


labelselect.Location = new Point(newcoord,newcoord2);
labelselect.BringToFront();

}

private void element1(object sender, EventArgs e)
{
input = textBox1.Text;
input2 = textBox2.Text;
labelselect = label121;
movepic(sender, e);
}


AnswerRe: DrawString / label transparency Pin
Nader Elshehabi4-Dec-06 3:27
Nader Elshehabi4-Dec-06 3:27 
GeneralRe: DrawString / label transparency Pin
Scalee4-Dec-06 3:36
Scalee4-Dec-06 3:36 
GeneralRe: DrawString / label transparency Pin
Nader Elshehabi4-Dec-06 3:43
Nader Elshehabi4-Dec-06 3:43 
GeneralRe: DrawString / label transparency Pin
Scalee4-Dec-06 4:11
Scalee4-Dec-06 4:11 
GeneralRe: DrawString / label transparency Pin
Nader Elshehabi4-Dec-06 6:51
Nader Elshehabi4-Dec-06 6:51 
GeneralRe: DrawString / label transparency Pin
Lord ChaosMan4-Dec-06 14:36
Lord ChaosMan4-Dec-06 14:36 
GeneralRe: DrawString / label transparency Pin
Nader Elshehabi4-Dec-06 22:32
Nader Elshehabi4-Dec-06 22:32 
GeneralRe: DrawString / label transparency Pin
Lord ChaosMan5-Dec-06 8:11
Lord ChaosMan5-Dec-06 8:11 
AnswerRe: DrawString / label transparency Pin
Lord ChaosMan5-Dec-06 8:13
Lord ChaosMan5-Dec-06 8:13 
Questionhow to know if "ENTER" key is pressed Pin
quiteSmart4-Dec-06 1:06
quiteSmart4-Dec-06 1:06 
AnswerRe: how to know if "ENTER" key is pressed Pin
Stefan Troschuetz4-Dec-06 1:16
Stefan Troschuetz4-Dec-06 1:16 
GeneralRe: how to know if "ENTER" key is pressed Pin
quiteSmart4-Dec-06 2:17
quiteSmart4-Dec-06 2:17 
GeneralRe: how to know if "ENTER" key is pressed Pin
Stefan Troschuetz4-Dec-06 2:23
Stefan Troschuetz4-Dec-06 2:23 
AnswerRe: how to know if "ENTER" key is pressed Pin
Mandaar Kulkarni4-Dec-06 2:13
Mandaar Kulkarni4-Dec-06 2:13 
GeneralRe: how to know if "ENTER" key is pressed Pin
quiteSmart4-Dec-06 2:23
quiteSmart4-Dec-06 2:23 
GeneralRe: how to know if "ENTER" key is pressed Pin
Mandaar Kulkarni4-Dec-06 2:35
Mandaar Kulkarni4-Dec-06 2:35 
GeneralRe: how to know if "ENTER" key is pressed Pin
quiteSmart4-Dec-06 2:41
quiteSmart4-Dec-06 2:41 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.