Click here to Skip to main content
15,889,867 members
Home / Discussions / C#
   

C#

 
GeneralRe: DBase Pin
just4ulove77-Jul-05 10:05
just4ulove77-Jul-05 10:05 
GeneralRe: DBase Pin
Rassul Yunussov7-Jul-05 18:41
Rassul Yunussov7-Jul-05 18:41 
GeneralDBase Pin
Rassul Yunussov6-Jul-05 0:01
Rassul Yunussov6-Jul-05 0:01 
GeneralTreeView - select a node by program Pin
fracalifa5-Jul-05 23:04
fracalifa5-Jul-05 23:04 
GeneralRe: TreeView - select a node by program Pin
WillemM5-Jul-05 23:57
WillemM5-Jul-05 23:57 
GeneralRe: TreeView - select a node by program Pin
S. Senthil Kumar6-Jul-05 0:56
S. Senthil Kumar6-Jul-05 0:56 
Generalimport excell file to datagrid in c# Pin
dabuskol5-Jul-05 22:14
dabuskol5-Jul-05 22:14 
Generalpanel picture Pin
romantic boy5-Jul-05 22:07
romantic boy5-Jul-05 22:07 
I need to convert the picture on the panel to bytes.
I did that but it works only for the backgroungimage of a panel.
in my program I use 3ds max to draw on the panel
I need to convert the picture on the panel to bytes
this is the function I use to get the bytes of the backgroungimage of the panel

private void fun()
{
pna1.BackgroundImage.Save("m"); //m is the name of the file
bm = new Bitmap("m");

//the size of the panel is 240*160
byte [,] matrix= new byte [240,160];

byte red=0, green=0, blue=0;
byte [] test=new byte [1];
for (int y=0; y < 160; y++)
{
for (int x =0; x < 240; x++)
{
Color u=bm.GetPixel (x ,y);
//I need only one byte represent each pixel
blue = (byte)(u.B/64*64);
green = (byte)(u.G/32*8);
red =(byte)(u.R/32);
matrix[x,y]=(byte)(red + green + blue);
}
}
}
GeneralHopping from form to form Pin
JorisFromHolland5-Jul-05 20:59
JorisFromHolland5-Jul-05 20:59 
GeneralRe: Hopping from form to form Pin
mav.northwind5-Jul-05 21:21
mav.northwind5-Jul-05 21:21 
GeneralUdpClient Problem Pin
Zishan Haider5-Jul-05 20:32
Zishan Haider5-Jul-05 20:32 
GeneralDataGrid Row Select Pin
lovelylooney5-Jul-05 20:22
lovelylooney5-Jul-05 20:22 
GeneralRe: DataGrid Row Select Pin
xrado5-Jul-05 20:45
xrado5-Jul-05 20:45 
GeneralRe: DataGrid Row Select Pin
lovelylooney5-Jul-05 21:36
lovelylooney5-Jul-05 21:36 
Generalhelp me override keypress in datagrid Pin
xrado5-Jul-05 20:06
xrado5-Jul-05 20:06 
Generalread stream to unmanaged memory Pin
ZejulioZ5-Jul-05 17:03
ZejulioZ5-Jul-05 17:03 
GeneralRe: read stream to unmanaged memory Pin
leppie5-Jul-05 20:08
leppie5-Jul-05 20:08 
GeneralRe: read stream to unmanaged memory Pin
ZejulioZ5-Jul-05 20:59
ZejulioZ5-Jul-05 20:59 
GeneralRe: read stream to unmanaged memory Pin
leppie5-Jul-05 23:26
leppie5-Jul-05 23:26 
QuestionExecutable Wrapper in C# Anyone? Pin
dotbomb5-Jul-05 16:43
dotbomb5-Jul-05 16:43 
QuestionHow to get the user fastswitch, User Logon and logoff event Pin
aocraft5-Jul-05 15:13
aocraft5-Jul-05 15:13 
QuestionReusing threads? Pin
Lord Kixdemp5-Jul-05 14:54
Lord Kixdemp5-Jul-05 14:54 
AnswerRe: Reusing threads? Pin
S. Senthil Kumar5-Jul-05 19:58
S. Senthil Kumar5-Jul-05 19:58 
GeneralRe: Reusing threads? Pin
Anonymous16-Jul-05 11:30
Anonymous16-Jul-05 11:30 
General.net 2005 beta2 auto generated staic class Pin
Member 6362865-Jul-05 10:14
Member 6362865-Jul-05 10:14 

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.