|
As for the textBox, assign it a location as a point:
this.TextBox.Location = new System.Drawing.Point(20, 150);
As for reading a column and row, first I'd fill a dataSet with it. Once you've put it in a DataSet then:
string text = dataSet.Tables[0].Rows[3][4].ToString();
//row first, then column
RABB17
"Even in my Dreams I see the flashing of my cursor."
|
|
|
|
|
how can i set access rights to an olap cube in sql server analysis services 2005 using .net c# code? which class do i need?
|
|
|
|
|
I was looking at a tutorial on System.Drawing.Graphics manipulation utilizing GDI+, and I was wondering whether or not it was possible to add an Image.FromFile("C:/full/path/to/file.gif") to a rectangle.
Rectangle rect = new Rectangle(100, 100, 200, 200)
Can a graphics object such as a rectangle be assigned to a image file?
-- modified at 19:19 Saturday 20th May, 2006
|
|
|
|
|
new_phoenix wrote: add an Image.FromFile("C:/full/path/to/file.gif") to a rectangle.
What exactly do you mean. Do you want to resize the image to fit the rectangle or draw a rectangle on the image?
You know you're a Land Rover owner when the best route from point A to point B is through the mud.
Ed
|
|
|
|
|
No, I would like to show a picture "photo" image in the Rectangle. Most of the functions provided are to draw an ellipse, arc, circle etc.
I would like to take a "picture photograph" and show it in the Rectangle. Is it possible?
|
|
|
|
|
There are several options:
1. To draw the image unscaled but cropped inside the rectangle then use the Graphics.DrawImageUnscaledAndClipped(image, x, y, width, height) method.
2. To draw the image scaled down to the rectangle then use:
Graphics.DrawImage(image, x, y, width, height). <br />
<br />
<hr>You know you're a Land Rover owner when the best route from point A to point B is through the mud.<br />
<br />
Ed
|
|
|
|
|
Thanks, Ed. I will try your suggestions this Memorial Day weekend. I appreciate the input, as I have limited experience with GDI+ functions.
Enjoy your holiday!
New_Phoenix
|
|
|
|
|
If you mean "how to draw image into rectangle" use Graphics.DrawImage function.
Best regards, Alexey.
|
|
|
|
|
No, I would like to show a picture image in the Rectangle. Most of the functions provided are to draw an ellipse, arc, circle etc. I would like to take a picture photograph and show it in the Rectangle. Is it possible?
|
|
|
|
|
Use Graphics.FillRect function with Brush wich uses your image.
Best regards, Alexey.
|
|
|
|
|
Thanks, Alexey. I will try your suggestions this Memorial Day weekend. I appreciate the input, as I have limited experience with GDI+ functions.
Enjoy your holiday!
New_Phoenix
|
|
|
|
|
Does anyone know of any .net controls like the Windows Vista Command Links? A picture can be found here[^] (about a quarter of the way down).
Thank you!
|
|
|
|
|
Can't you just use a Label and handle the mouse events? If you want snazzier graphics effects then you can override the drawing of the label.
Better thought, can't you do this with a LinkLabel control, my impression of the control is simply that the link label control is a copy of the LinkLabel control but has slightly different layout logic and/or rendering styles.
You know you're a Land Rover owner when the best route from point A to point B is through the mud.
Ed
|
|
|
|
|
hi,
any can give me details for what are new fucture is awailable ,what are major fucture
mohamad rafi
|
|
|
|
|
Google
If the first two results don't grab your attention then I don't know what will.
You know you're a Land Rover owner when the best route from point A to point B is through the mud.
Ed
|
|
|
|
|
One wonders whether posters who ask these kinds of question have ever tried googling first?
Kevin
|
|
|
|
|
Maybe we should get Chris to put "Google it" as the first item in the "How to get an answer to your question" topic.
You know you're a Land Rover owner when the best route from point A to point B is through the mud.
Ed
|
|
|
|
|
Ed.Poore wrote: Maybe we should get Chris to put "Google it" as the first item in the "How to get an answer to your question" topic.
That is an excellent idea. 5 for your post
Paul
|
|
|
|
|
:->
You know you're a Land Rover owner when the best route from point A to point B is through the mud.
Ed
|
|
|
|
|
I bet that a person who takes the time to read Chris's 'How to get an answer to your question' topic would also be the type of person who uses Google before asking dumb/lazy questions. What might be better, but definitely more difficult to create, is a script which analyzes a posting and automatically rates it with a '1' if it detects that the question is dumb.
Josh
|
|
|
|
|
Josh Smith wrote: I bet that a person who takes the time to read Chris's 'How to get an answer to your question' topic would also be the type of person who uses Google before asking dumb/lazy questions.
So true
Now that would be a good article. Any takers?
If only I was going to do Computer Science instead of Electronics for my degree then that would make a great project.
You know you're a Land Rover owner when the best route from point A to point B is through the mud.
Ed
|
|
|
|
|
I have an app that connects to a MySQL DB on a site that doesn't have SSL. Is there a way to create a secure connection so query strings and passwords aren't vulnerable?
Maybe encrypt on the user side and descrypt on the server side, but how should I set up the relay?
Any help is appreciated!
RABB17
"Even in my dreams I see the flashing of my cursor."
|
|
|
|
|
I have created a report in SRS 2000 that prompts for a value before running the report. It requires the 'full name' for the report to produce data.
Is there a way to allow use of a wildcard in this prompt? I have tried several methods with no results.
Thank you,
Karen
Karen Turner
|
|
|
|
|
I am trying to fill a DataTable with data from sql databae by using Background worker but it throws an exeption (calling it from the main thread works fine). I have read that BackgroundWorker can be used for database operations but can't find any examples. Here is the code:
Dim conn As SqlConnection = _
New SqlConnection(connectionString)
Dim command As New SqlCommand(cmd, conn)
Dim adapter As SqlDataAdapter = New SqlDataAdapter()
adapter.SelectCommand = command
Dim table As New System.Data.DataTable
table.Locale = System.Globalization.CultureInfo.InvariantCulture
adapter.Fill(table) ' the exeption is thrown here
What should I do? Please help.
--Nikola--
modified 7-Dec-20 21:01pm.
|
|
|
|
|
Please post the type and message of the thrown exception.
|
|
|
|