|
What is a pixel if not a rectangle of size 1x1?
He who makes a beast out of himself gets rid of the pain of being a man
|
|
|
|
|
There is in fact a SetPixel method.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
There's Bitmap.SetPixel , but no Graphics.SetPixel .
Standards are great! Everybody should have one!
|
|
|
|
|
Well, you didn't say that you needed it on the graphics object. You spoke of image processing, there's no way you can do image processing without a bitmap, so I assumed you were working with a bitmap. A 1x1 rect or a line that is one pixel in size, are your best bets then, I guess.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
winform program,
I had a DataGridView, and Added some Columns.
the colum1's text is ABC,colum2's text is BCD.
query Data from sql:"select id, name from test"
this.dataGridView1.DataSource = ds;
this.dataGridView1.DataMember = "test";
the data biding at dataGridview new Column caudal.
how to biding at ABC and BCD of DataGridView's Column?
|
|
|
|
|
You have to use <boundfied datafieldname="ABC">
Best Regards,
Chetan Patel
|
|
|
|
|
Hi,
If you are looking to set the Column caption of DataGridView to "ABC" and "BCD" after binding it to DataSource (DS) then you can do it in the following manner:
BEGIN CODE
this.dataGridView1.DataSource = ds;
this.dataGridView1.DataMember = "test";
this.dataGridView1.Columns[0].HeaderText = "ABC";
this.dataGridView1.Columns[1].HeaderText = "BCD";
END CODE
I hope this helps .
Regards,
John Adams
ComponentOne LLC
|
|
|
|
|
Still won't do.
when buiding, report Index foul.
before dataGridView binding data,the DataGridView don't has columns,
so report Index foul.I think to is so.
|
|
|
|
|
Your suggestion is viable.
The index foul is my own problem.
Thank you very much.
|
|
|
|
|
Hi, i have a doubt..
I want to send an object to next page..directly....At there using this object, i want to use its memebers and methods. I need to send objects between aspx pages.
Please help me regarding this...
Thanking you
G. Satish
|
|
|
|
|
Store That object in Session
Best Regards,
Chetan Patel
|
|
|
|
|
By storing the objects in session, the perfomance of applciation will degreed. Any alternative rather than using sessions?
G. Satish
|
|
|
|
|
You've posted this in more than one forum, haven't you ?
The session is really your only hope for what you want to do, that's why it's a bad idea. What specifically are you trying to achieve ?
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Actually first i wrongly posted in c# board, later i realise and post the same in asp.net...
This is not intentionally done..
G. Satish
|
|
|
|
|
Have you considered using Delegates?
I will use Google before asking dumb questions
|
|
|
|
|
This is an ASP.NET question, he's just posted it in the wrong place.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
you can use session or application object for that purpose
|
|
|
|
|
The Application object is a dangerous thing to use here.
Cheers,
Vikram.
Zeppelin's law: In any Soapbox discussion involving Stan Shannon, the probability of the term "leftist" or "Marxist" appearing approaches 1 monotonically.
Harris' addendum: I think you meant "monotonously".
Martin's second addendum: Jeffersonian... I think that should at least get a mention.
|
|
|
|
|
|
Load XML File using DataSet
DataSet ds=new DataSet();
ds.ReadXML("XMLfileName");
Best Regards,
Chetan Patel
|
|
|
|
|
Hi all,
Can any one suggest me how to call a web user control in my HTML page. Both the web user control and the html pages are in the same folder. I tried by registering it, but the register tag does not executed, it's simply printed in the HTML page. How to ake it work.
Thanks in advance
Know is Drop, Unknown is Ocean
|
|
|
|
|
What sort of web user control are you talking about ? If ASP.NET, that would explain the post in the C# forum ( but it's still off topic ), but certainly, your ASP.NET control will only work in an aspx or ascx file. Perhaps you need to do some basic reading on how ASP.NET works, and what it is.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
You are not clear about the Web Development tool.
When the extension of the page is .html the ASP.Net Compiler just pass it to IIS so it print the control register stirng on page.
You must have to use .aspx page to include .net user controls.
Best Regards,
Chetan Patel
|
|
|
|
|
HI,
I have two generic collections.
One is populated with data and the other is empty.
How do I copy the data from the first one to the empty one please?
Thanks
|
|
|
|
|
I think there's an addrange method that takes a collection.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|