Click here to Skip to main content
15,914,074 members
Home / Discussions / C#
   

C#

 
GeneralRe: GacUtil and RegAsm Pin
Judah Gabriel Himango18-Mar-05 5:28
sponsorJudah Gabriel Himango18-Mar-05 5:28 
GeneralRe: GacUtil and RegAsm Pin
Mike Dimmick18-Mar-05 8:57
Mike Dimmick18-Mar-05 8:57 
GeneralMac address Pin
Member 178719018-Mar-05 3:54
Member 178719018-Mar-05 3:54 
GeneralRe: Mac address Pin
felopater18-Mar-05 15:13
felopater18-Mar-05 15:13 
GeneralRe: Mac address Pin
afinnell20-Mar-05 17:02
afinnell20-Mar-05 17:02 
GeneralPolicy not being applied to reference at this time Pin
Guillermo Jimenez18-Mar-05 3:47
Guillermo Jimenez18-Mar-05 3:47 
GeneralRe: Policy not being applied to reference at this time Pin
Member 9878981-Jul-10 12:26
Member 9878981-Jul-10 12:26 
Generaldraw on transparent control over a mediaplayer Pin
spAAwn18-Mar-05 2:57
spAAwn18-Mar-05 2:57 
Hi!

Im using a custom made doublebuffer transparent control over a mediaplayer-control. I would like to be able to pause the movie and then draw red marker rectangles on the transparent control. I would like to be able to see these rectangles while playing the movie. Everything works fine except for the last part, the rectangles dissappear as soon as I resume the movie. This is a test onPaint method in my transparent control:

protected override void OnPaint(PaintEventArgs e)

{

if(_backBuffer==null)

{

_backBuffer=new Bitmap(this.ClientSize.Width,this.ClientSize.Height);

}

Graphics g=Graphics.FromImage(_backBuffer);

//Copy the back buffer to the screen

e.Graphics.DrawImageUnscaled(_backBuffer,0,0);


// Get the graphics object
Graphics gfx = e.Graphics;
// Create a new pen that we shall use for drawing the line
Pen myPen = new Pen(Color.Red);
// Loop until the coordinates reach 250 (the lower right corner of the form)
for(int i = 0; i < 250; i = i + 50)
{
// Draw a 50x50 pixels rectangle
gfx.DrawRectangle(myPen, i, i, 50, 50);
}

g.Dispose();
gfx.Dispose();
}

Any tips?
THanks for your help

/Rickard
GeneralRe: draw on transparent control over a mediaplayer Pin
MoustafaS18-Mar-05 12:35
MoustafaS18-Mar-05 12:35 
GeneralRe: draw on transparent control over a mediaplayer Pin
spAAwn18-Mar-05 12:44
spAAwn18-Mar-05 12:44 
GeneralRe: draw on transparent control over a mediaplayer Pin
MoustafaS18-Mar-05 14:13
MoustafaS18-Mar-05 14:13 
GeneralRe: draw on transparent control over a mediaplayer Pin
spAAwn18-Mar-05 14:28
spAAwn18-Mar-05 14:28 
GeneralRe: draw on transparent control over a mediaplayer Pin
MoustafaS19-Mar-05 6:48
MoustafaS19-Mar-05 6:48 
GeneralRe: draw on transparent control over a mediaplayer Pin
Dave Kreskowiak18-Mar-05 16:33
mveDave Kreskowiak18-Mar-05 16:33 
GeneralRe: draw on transparent control over a mediaplayer Pin
ACorbs19-Mar-05 11:20
ACorbs19-Mar-05 11:20 
GeneralRe: draw on transparent control over a mediaplayer Pin
ACorbs19-Mar-05 11:33
ACorbs19-Mar-05 11:33 
GeneralRe: draw on transparent control over a mediaplayer Pin
spAAwn19-Mar-05 13:14
spAAwn19-Mar-05 13:14 
GeneralRuntime exception generated when no handler subscribed to an event Pin
GazzaJ18-Mar-05 0:54
GazzaJ18-Mar-05 0:54 
GeneralRe: Runtime exception generated when no handler subscribed to an event Pin
mav.northwind18-Mar-05 1:44
mav.northwind18-Mar-05 1:44 
GeneralRe: Runtime exception generated when no handler subscribed to an event Pin
GazzaJ18-Mar-05 4:00
GazzaJ18-Mar-05 4:00 
GeneralRe: Runtime exception generated when no handler subscribed to an event Pin
mav.northwind18-Mar-05 5:13
mav.northwind18-Mar-05 5:13 
GeneralSending SMS from PC to Mobile phone Pin
Jasto18-Mar-05 0:40
Jasto18-Mar-05 0:40 
GeneralRe: Sending SMS from PC to Mobile phone Pin
Magnus2718-Mar-05 23:40
Magnus2718-Mar-05 23:40 
Generalremote .mdb file access Pin
Adnan Siddiqi18-Mar-05 0:35
Adnan Siddiqi18-Mar-05 0:35 
GeneralRe: remote .mdb file access Pin
Dave Kreskowiak18-Mar-05 4:50
mveDave Kreskowiak18-Mar-05 4:50 

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.