|
The code that draws the map uses a graphics object. Set it's rotation transform first, and reset it after.
Christian Graus
Please read this if you don't understand the answer I've given you. If you're still stuck, ask me for more information.
|
|
|
|
|
rotation transform?..do you have an example for the codes in vb 2008?
|
|
|
|
|
On the cell elave event how do you get the name of the column? I am wanting to ren certain calculations for certain columns and need to knw what cell was just left.
Thank you, Chester
|
|
|
|
|
Try this:
DataGridView1.CurrentCell.OwningColumn.Name.ToString
"I love deadlines. I like the whooshing sound they make as they fly by." (DNA)
|
|
|
|
|
hello ,
is this possible in VB Net???
I deed write what we can call a wordprocessor ( well an advanced editor )
and i would like to make it WYSIWYG !
but I do not know how
any one can help??
please
if you_know_the_solution then<br />
help me<br />
else <br />
just a comment <br />
end if
|
|
|
|
|
Yes, it's all possible. Now, get to work
Christian Graus
Please read this if you don't understand the answer I've given you. If you're still stuck, ask me for more information.
|
|
|
|
|
He asked in another forum earlier
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
Hello friends,
I have developed a windows application in VB.Net.
I want the IP Address of the user using the application.
I found some code on internet but it is returning the local IP Address.
I need the main IP Address provided by the ISP.
Can anyone help me, plz its urgent.
Thanks,
Nagendra.
|
|
|
|
|
Does your application actually interact with the internet ?
http://articles.techrepublic.com.com/5100-10878_11-6120605.html[^]
does that return the computers IP address and not the IP address on the internet ?
Christian Graus
Please read this if you don't understand the answer I've given you
"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 )
|
|
|
|
|
Yes it does.
It returns my computer's IP address but i want Internet's IP address.
|
|
|
|
|
I hav already tried method told by u, it gives me my local IP address but i want the main IP address provided by ISP
|
|
|
|
|
Hi,
IFAIK there is no code for getting the public IP address; what you need is a web page that
provides you such information, such as http://www.perceler.com/getipadr1.php[^]
You could use HttpWebRequest.GetResponse() to use it programmatically.
|
|
|
|
|
That is considered an inappropriate thing around here. People help when they can.
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
nagendrathecoder wrote: I want the IP Address of the user using the application.
Prompt the user to turn back. Use a web cam to quickly take a snap of it and we can extract the IP address from the image.
OK,. what country just started work for the day ? The ASP.NET forum is flooded with retarded questions. -Christian Graus
Best wishes to Rexx[^]
|
|
|
|
|
That was not funny. You should crack jokes like these in some social communities.
|
|
|
|
|
Thanks for your answers, i got the way of doing it.
|
|
|
|
|
Hi, beginner programmer here, first post
I am writing a program that uses a arraylist of class part, and class Car consists of
Public Class Part
Public name As String
Public price As Double
End Class
Public Class Car
Public name As String
Public parts As New ArrayList
End Class
There is an ArrayList of Part and I would like each Car to consist of various Parts and the price would be totaled for a Car etc.
I would like to be able to change the price of a Part and if a Car contains that part I will be able to retotal the new amount.
By using something like
Car.parts.Add(partArraylist.Item(i))
Am i adding a copy? reference?
Any advice would be great, or am i approaching it the wrong way?
Thanks
150
|
|
|
|
|
Unless you're using VB 1.0 or 1.1, you should never use the arraylist class. Although I guess in VB it doesn't matter b/c the language is weakly typed, but ideally you should use generic collections such as List<Car> ( I think it's List(Of Car) in VB ).
150db wrote: By using something like
Car.parts.Add(partArraylist.Item(i))
Am i adding a copy? reference?
If Part is a class, you're adding a reference, if it's a struct, you'd be adding a copy. So, yes, you could do that, and then change the price of the part, and all the cars with that part, should reflect the new price. Then you can have a method in the car that iterates over it's parts, adds them, and comes up with a total.
What if a car has more than one of the same part ?
Christian Graus
Please read this if you don't understand the answer I've given you
"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 )
|
|
|
|
|
Thanks for the reply, very helpful, forgot all about generics.
Yes a car is able to have more than one part, ie 4 wheels. Havent thought how to implement it yet, could I do something like,,
Public Class Car
Public name As String
Public parts As New List(Of Part)
Public quantity As New Hashtable
End Class
And have the key as the partname and the value for quantity?
|
|
|
|
|
150db wrote: Public quantity As New Hashtable
Now you have forgotten about generics again.
Public Quantities As New Dictionary(Of Part, Integer)
An alternative would be to create your own generic class Qantified(Of T), that just contains an Integer for quantity and a T variable. Then you could do:
Public Parts As New List(Of Quantified(Of Part))
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
hi
how can i detect a connection string in a program?
i want to detect a connection string in a program and find the database that the program connect to it.
i am writing a program that when it add to other program with sql database it must detect the connection string and the database that the program connects to it... please help me...
|
|
|
|
|
well, this sounds nasty, but, really what you want to do is load the whole program and it's config files as binary data, then go through it looking for something that matches a regex designed to find connection strings.
Christian Graus
Please read this if you don't understand the answer I've given you
"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 )
|
|
|
|
|
i thik that your way is difficult... isnt there any way to answer this question? all the databases are sqlserver
|
|
|
|
|
Well, you could use black magic I suppose.
You have a binary file and you want to find connection strings in it. How do YOU propose to do that ? You MAY be able to write code that detects attempts to connect to a SQL Server, and find them that way. A more obvious approach is to look for SQL Servers that can be seen and then look to see what DBs they have, that would be a ton easier. It won't tell you which DB belongs to which program, obviously.
Christian Graus
Please read this if you don't understand the answer I've given you
"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 )
|
|
|
|
|
how can load the whole program as binary data?
|
|
|
|