|
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.
|
|
|
|
|
System.Data.SqlClient.SqlException was unhandled by user code
Class=16
ErrorCode=-2146232060
LineNumber=1
Message="Could not locate entry in sysdatabases for database 'System'. No entry found with that name. Make sure that the name is entered correctly."
And I'm sure that there is no problem with the SQL because it works fine when I call it from the main thread (but in that case my application is frozen untill it reads data and I'm trying to avoid that).
The same thing happens when I use SqlDataReader. command.ExecuteReader() throws the same exeption.
--Nikola--
-- modified at 6:22 Friday 19th May, 2006
modified 7-Dec-20 21:01pm.
|
|
|
|
|
If the exception is something like "Cross thread UI operations are not allowed", it means that you are trying to update the UI (directly or indirectly) from the background worker thread. If that's the exception you're getting, use Invoke or BeginInvoke[^] to do the update from the UI thread.
Regards
Senthil
_____________________________
My Blog | My Articles | WinMacro
|
|
|
|
|
I am not updating UI. All I'm doing is creating SqlConnection, SqlCommand and DataTable and filling DataTable with adapter.Fill(table)
The same thing happens when I use SqlDataReader. command.ExecuteReader() throws the same exeption.
modified 7-Dec-20 21:01pm.
|
|
|
|
|
In VC 6.0 you can create/ generate MakeFile of your project, but it seems
this option is not there in VSIDE .NET 2003. Anybody know how to create the
makefile of your project or solution ?
|
|
|
|
|
|
I am using a Windows TextBox control, and I need to be able to programmatically scroll the contents. There doesn't seem to be any public methods in the TextBox class for doing this. I need to be able to tell the TextBox to scroll its contents up or down without relying on the user clicking the scrollbar. Is this possible?
TIA
|
|
|
|
|
You could try to use SelectionStart in conjunction with ScrollToCaret but you would have to calculate yourself what index to use.
|
|
|
|
|
Well, I was hoping for some secret trick that might be a little less kludgy. Also, I'm using TextBox, not RichTextBox, and I don't believe TextBox has a ScrollToCaret method. But thank you for your reply. Any other ideas?
|
|
|
|
|
NicHeuser wrote: I don't believe TextBox has a ScrollToCaret method
MSDN[^] says there is one.
|
|
|
|