|
There's several ways you can show tables in SQL Server, the easiest being the INFORMATION_SCHEMA metadata table:
SELECT table_name
FROM INFORMATION_SCHEMA.TABLES You can also query the sysobjects table:
SELECT name
FROM sysobjects
WHERE xtype = 'U' or xtype = 'S' -- U for user tables, S for system tables
Microsoft MVP, Visual C#
My Articles
|
|
|
|
|
Thank you
|
|
|
|
|
Hi
please tell me what exactly the
System.Drawing.Drawing2D.Matrix class and it's operations like
Clone(),Invert(),TransformPoints(points) performs?
Thanks
Roya
|
|
|
|
|
Royaeh kohestan wrote:
System.Drawing.Drawing2D.Matrix
Encapsulates a 3-by-3 affine matrix that represents a geometric transform. This class cannot be inherited.
Royaeh kohestan wrote:
Clone()
Creates an exact copy of this Matrix object.
Royaeh kohestan wrote:
Invert()
Inverts this Matrix object, if it is invertible.
Royaeh kohestan wrote:
TransformPoints(points)
Overloaded. Applies the geometric transform this Matrix object represents to an array of points.
That is how it is stated in MSDN. You can find more information here[^]. Hope this helps you out.
Happy Programming and God Bless!
Internet::WWW::CodeProject::bneacetp
|
|
|
|
|
thanks Dear bneacetp,
i read this explanations before,but i can't have a good conception of them,
can your self give more explanation with one example of its structure and elements?
|
|
|
|
|
thanks Dear bneacetp,
i read this explanations before,but i can't have a good conception of them,
can your self give more explanation with one example of its structure and elements?
|
|
|
|
|
|
it seems your asking not on the class itself, but about matrix manipulations. this is usualy referred to in basic linear algebra courses. you can easily find links such as:
http://www.isr.umd.edu/~austin/aladdin.html#sec3[^]
anyway, the basic idea is that you can do arithmetics with matrices (and vectors), in a way that somewhat resembles number (scalar) arithmetics. These arithmetics can have functional and gerometrical meanings.
|
|
|
|
|
Oh come on - it's all in the .NET Framework SDK which you should already have installed! Look it up in the documentation. how do you expect to learn anything?!
Microsoft MVP, Visual C#
My Articles
|
|
|
|
|
thanks Heath,
i installed sdk and use it but i want more explanation.
Roya
|
|
|
|
|
Then you really should be a little more specific in your question. Asking what they do when the .NET Framework SDK class documentation for the Matrix clearly states what they is asking for trouble.
If you don't understand matrix calculations - because, frankly, the method names are self-explanitory even without reading the documentatin - I suggest you do a google search on matrix operations[^], or something similar.
This forum is for programming questions, and while a basic understand of matrix operations may lead to questions asking how to use it, your questions really seem along the lines of basic matrix operation questions. This is a class all by itself.
Microsoft MVP, Visual C#
My Articles
|
|
|
|
|
You are right ,Thanks for Your frank manner and help.
Roya
|
|
|
|
|
I would like to change the background of a TabControl control, but it doesn't seem to have a BackColor property. As far as I know, there isn't a way to change its color from the default "Control" color. Any way around this?
Happy Programming and God Bless!
Internet::WWW::CodeProject::bneacetp
|
|
|
|
|
Besides painting it yourself, no. The Tab Control common control - which is encapsulated by the TabControl class - doesn't even support custom drawing messages. This is why BackColor was overridden and attributed with BrowsableAttribute(false) and EditorBrowsableAttribute(EditorBrowsableState.Never) .
Microsoft MVP, Visual C#
My Articles
|
|
|
|
|
That's not the response that I was hoping for , but thanks just the same.
Happy Programming and God Bless!
Internet::WWW::CodeProject::bneacetp
|
|
|
|
|
When I send data from server,How can I send it?Now I'm trying to use DataSet,But I don't know how to transport byte into dataset in client.
Any other way>?
From China
|
|
|
|
|
For one, you could eliminate the need to define your own protocol if you use XML Web Services or .NET Remoting. A DataSet will be serialized to XML automatically by the Web Services and .NET Remoting serialization (XML Serialization and Runtime Serialization, respectively).
If you want to transfer something immediately, then do so. I guess I don't see what the problem is. If your client/server communication is two way (like you're own socket programming), then just send the data to the client.
For a DataSet , it's really quite easy. Create a new MemoryStream and call DataSet.WriteXml passing the MemoryStream . Now you can read the contents of the MemoryStream into a byte[] array. You could also use a StringWriter then encode the resulting string using the Encoding of your choice to get the bytes and send them down the wire.
If you're using XML Web Services or .NET Remoting via an HTTP channel, then communications is - by design - client-request/server-response only. A server cannot send the client something unless the client requests it, since the client establishes the connection. If you use .NET Remoting using an TCP channel (or a custom transport sink, which then it depends on the implementation), you can send data from the server to the client if the client has registered a sponsor with the server (or used some proprietary means of the server keeping a reference to the client).
If you need more help, please be more specific.
Microsoft MVP, Visual C#
My Articles
|
|
|
|
|
I've been putting the ArrayList to store instances of forms to good use. However the limitation of not being able to change the collection means its not really the ideal thing I'm looking for.
Specifically, I'm looking for a way to access instances of a form / class, and be able to change the underlying collection.
Thanks!
|
|
|
|
|
You can add, remove, and re-reference items in the ArrayList , which, BTW, is used extensively behind the scenes of all your favorite list and collection classes. Where do you get the idea it can't be changed?
If you're having a specific problem, please respond and be specific about what the problem is.
Microsoft MVP, Visual C#
My Articles
|
|
|
|
|
Maybe I misunderstood what you meant in your other response to the windows forms question.
> Using a foreach loop is easy - just be sure you don't change the underlying collection.
I am using a foreach loop to iterate through the collection of instances, and removing them in the destructor (instances.Remove(this)).
However that brings up some InvalidOperation exceptions regarding the collection having been changed. I thought that meant that you couldn't change the underlying collection.
|
|
|
|
|
Don't use the destructor. Override Dispose(bool) - which VS.NET does for you - and remove it there. If anything changes the collection you are currently enumerating in any thread, an exception will be thrown. The collection cannot change - no matter how it is changed - while enumerating. Period.
Microsoft MVP, Visual C#
My Articles
|
|
|
|
|
I strongly suspected it was an issue related to accessing an instance that has been changed. I read up about the ArrayList class, and found the problem was that I was iterating though an altered list (The foreach loop was doing the altering).
To prevent that, when the correct instance is found, the loop is broken.
|
|
|
|
|
Dear gurus,
How do you insert the single-quote character into text columns of database tables, especially with ORACLE? For example,
"INSERT INTO PRODUCT (Prod_Name, Prod_ID) VALUES ('Uncle Ken's Donuts', 1001)"
I am having this kind of problems @work...
Thanks with a million $
Khang
|
|
|
|
|
Use a double apostrophe in your string literal:
e.g. 'The main street in my home town is called Prince''s Street'
"You can have everything in life you want if you will just help enough other people get what they want." --Zig Ziglar
The Second EuroCPian Event will be in Brussels on the 4th of September
Can't manage to P/Invoke that Win32 API in .NET? Why not do interop the wiki way!
My Blog
|
|
|
|
|
First, we've said this in the Forums dozens and dozens of times:
Use parameterized queries! It doesn't have to be a stored procedure, but use SqlParameters! That way, you don't have to worry about escaping your single quoted data at all. The SqlParameter class takes care of all of that for you.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|