Click here to Skip to main content
15,892,927 members
Home / Discussions / C#
   

C#

 
AnswerRe: sql to mysql Pin
N a v a n e e t h10-Jul-08 22:33
N a v a n e e t h10-Jul-08 22:33 
GeneralRe: sql to mysql Pin
yiren_shao10-Jul-08 22:51
yiren_shao10-Jul-08 22:51 
AnswerRe: sql to mysql Pin
scottgp11-Jul-08 2:55
professionalscottgp11-Jul-08 2:55 
QuestionTransparency in compact framework Pin
Subasish_CodeProject10-Jul-08 20:48
Subasish_CodeProject10-Jul-08 20:48 
AnswerRe: Transparency in compact framework Pin
N a v a n e e t h10-Jul-08 22:34
N a v a n e e t h10-Jul-08 22:34 
GeneralRe: Transparency in compact framework Pin
Subasish_CodeProject14-Jul-08 2:57
Subasish_CodeProject14-Jul-08 2:57 
AnswerRe: Transparency in compact framework Pin
netJP12L11-Jul-08 5:54
netJP12L11-Jul-08 5:54 
GeneralRe: Transparency in compact framework Pin
Subasish_CodeProject14-Jul-08 2:44
Subasish_CodeProject14-Jul-08 2:44 
using System;
using System.Linq;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Drawing.Imaging;
using System.Reflection;

namespace TransparentSmartDevice
{
public partial class TransparentPanel : ScrollableControl, IControlBackground
{
Bitmap background;

public TransparentPanel()
{
background = new Bitmap(
Assembly.GetExecutingAssembly().GetManifestResourceStream(
"TransparentSmartDevice.Test(240 X 374).JPG"));
}

protected override void OnPaint(PaintEventArgs e)
{
//e.Graphics.DrawImage(background, ClientRectangle,new Rectangle(0,0,background.Width,background.Height),GraphicsUnit.Pixel);
e.Graphics.DrawImage(background,0,0);// ClientRectangle, new Rectangle(0, 0, background.Width, background.Height), GraphicsUnit.Pixel);
}

public Image BackgroundImage
{
get { return background; }
}
}
}



using System;
using System.Linq;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace TransparentSmartDevice
{
public partial class TransparentPanelBase : ScrollableControl
{
protected bool HasBackground = false;

protected override void OnPaintBackground(PaintEventArgs e)
{
IControlBackground form = Parent as IControlBackground;
if (form == null)
{
base.OnPaintBackground(e);
return;
}
else
{
HasBackground = true;
}

e.Graphics.DrawImage(
form.BackgroundImage,
0,
0,
Bounds,
GraphicsUnit.Pixel);
}

protected override void OnTextChanged(EventArgs e)
{
base.OnTextChanged(e);
Invalidate();
}

protected override void OnParentChanged(EventArgs e)
{
base.OnParentChanged(e);
Invalidate();
}
}

}
GeneralRe: Transparency in compact framework Pin
netmonster18-Aug-08 17:51
netmonster18-Aug-08 17:51 
Questiondate picker in web application Pin
SSN10-Jul-08 20:32
SSN10-Jul-08 20:32 
AnswerRe: date picker in web application Pin
J a a n s10-Jul-08 21:39
professionalJ a a n s10-Jul-08 21:39 
Questionstrange name2ee output Pin
George_George10-Jul-08 20:19
George_George10-Jul-08 20:19 
AnswerRe: strange name2ee output Pin
Vimalsoft(Pty) Ltd11-Jul-08 6:58
professionalVimalsoft(Pty) Ltd11-Jul-08 6:58 
GeneralRe: strange name2ee output Pin
George_George13-Jul-08 0:07
George_George13-Jul-08 0:07 
QuestionDataReader memory size??? Pin
Raheem MA10-Jul-08 20:00
Raheem MA10-Jul-08 20:00 
AnswerRe: DataReader memory size??? Pin
half-life10-Jul-08 22:35
half-life10-Jul-08 22:35 
AnswerRe: DataReader memory size??? Pin
N a v a n e e t h10-Jul-08 22:37
N a v a n e e t h10-Jul-08 22:37 
QuestionException of type 'System.OutOfMemoryException' was thrown" Pin
Raheem MA10-Jul-08 19:45
Raheem MA10-Jul-08 19:45 
AnswerRe: Exception of type 'System.OutOfMemoryException' was thrown" [modified] Pin
killabyte10-Jul-08 20:06
killabyte10-Jul-08 20:06 
Questionhow many microsoft products installed Pin
Mogaambo10-Jul-08 19:18
Mogaambo10-Jul-08 19:18 
AnswerRe: how many microsoft products installed Pin
Paul Conrad10-Jul-08 20:32
professionalPaul Conrad10-Jul-08 20:32 
AnswerRe: how many microsoft products installed Pin
Thomas Stockwell11-Jul-08 4:01
professionalThomas Stockwell11-Jul-08 4:01 
QuestionRetrieving the updated table from datagridview Pin
Praveen Raghuvanshi10-Jul-08 19:03
professionalPraveen Raghuvanshi10-Jul-08 19:03 
QuestionCD burning using IMAPI Pin
Darmi10-Jul-08 18:21
Darmi10-Jul-08 18:21 
AnswerRe: CD burning using IMAPI Pin
Vimalsoft(Pty) Ltd11-Jul-08 7:09
professionalVimalsoft(Pty) Ltd11-Jul-08 7:09 

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.