Generate A Map Of A Real Place?

May 19, 2011

I am working on a project in which I would like to generate a map. It should be in bitmap form, and should include such things as roads and cities. I DO NOT want to generate a map of a real place.

View 6 Replies


ADVERTISEMENT

Generate Real Random Numbers?

Jun 30, 2009

I need to generate 'real' random numbers from 0 to 500 (e.g. 247.214, 477.125, 1.247, 54.078, 147.001 ......etc). I am using this method:

Dim Myrand As New Random
Dim Res As Double
For i = 1 To 10
Res = Math.Round(Myrand.NextDouble, 3)
Next

This method gives numbers between 0 and 1. if I use: Res = Myrand.Next(0,500), then this gives Integer numbers.

The questions is: Is this possible with (Dim Myrand As New Random) or I have to try another way (e.g. Rnd() ) for doing this?

View 4 Replies

Generate A Real Time 2D Plot With Autoscaling?

Oct 27, 2010

I have finally made the switch VB.net and I am using VS2010 .NET 4.0 with WinForms. I want to generate a real time 2D plot with autoscaling and update the graphics/picturebox/form/<insert control here> from another thread so when I click a menu the device doesn't halt. The graphics are intensive in that a function is continually reading from hardware and drawing the data. I have been able to do this in VB6 (minus the multithreading) with GDI API and it ran great. Now in VB.NET GDI+ is used which is extremely slow. So my questions are as follows:

1) Should I go back to GDI commands or will this be outdated soon.

2) Should I use Direct2D, if so do I need to switch to WPF and are there any WinForm examples

3) Best approach to multithread this, if I double buffer can I have the GUI thread periodically read the buffer and display it. How can I tell the drawing thread to post an update and the UI thread displays it when it has the chance, similar to using InvalidateRect()

View 1 Replies

How To Generate All Real Combinations From String Array

Apr 2, 2012

I need to generate all combinations (not permutations) in VB .NET, I've been search and all I found is for permutations (some says combinations but when I was try it, all are permutations).

What I need is to generate combinations from string array:
Dim data_array As String() = {"one", "two", "three", "four", "five", "six"}

I need that: If I say just 1 length, it must returns:
one
two
three
four
five
six

If I say 2 length, it must returns:
oneone
onetwo
onethree
onefour
... etc ...
twoone
twotwo
twothree
... etc ...

And continues til end with all combinations. If I say more length do it as well.

View 2 Replies

VS 2008 Navigating My Code - Flow Can Jump From Place To Place

Mar 11, 2010

Like I imagine everyone, I often have problems navigating my code because the flow can jump from place to place. For example, if my code calls routine1, and I then want to go to routine1's code, I know that I can click in the dropdown menu and it will take me to that sub. But wouldn't it be easier if I could somehow right click on the call to routine way and select something like 'take me there' which would transport me from the function making the call to the code for the function being called? Then it would be easy to hop from place to place.

View 1 Replies

Copy Folder With Its Content From Place To Another Place?

Dec 18, 2011

How copy folder with its content from place to another place. example from C: to D:

View 15 Replies

Cant Move My Form From Place To Place ?

Jun 21, 2011

My form cant move i set none to formborderstyle and made my form transparent using

CODE:

So now i cant move my form from place to place.

View 4 Replies

Place All The Objects In The Same Place On The Screen

Nov 30, 2011

I am learning Visual Basic 2010 and I am working on a space combat program for my own education and amusement (a simulation of the Honorverse space combat system). I have a routine to add ships to the enemy ship roster and then place them randomly on the viewscreen. When I step through the sub with the debugger, it works fine, but when I run it without stopping, it wants to place all the objects in the same place on the screen. It's actually assigning 2 random numbers pertaining to the size of the viewscreen and assigning those numbers to GameObjectScreenLocation through GameObjectWorldLocation.X and GameObjectWorldLocation.Y. The objects are fully initialized to 0 in their constructor, FYI. Code is below:

[Code]....

View 3 Replies

Place A Picture In A Picture Box In Differrent Place?

Aug 9, 2009

i am using vb.net i just wanna ask if we can place a picture in a picture box in different places... for example, we place a picture in the center of a picture box then we place another picture on the left side of the picture box. is it possible?? and also can we use one picture box that can contain more pictures or images on it??? to make it clear, it is a drag and drop senario, first you have to drag a picture from a toolbar for example, then you are to drop it on the picutre box, the problem is, we have to drop more than one picture in the picturebox, so is it really possible?

View 2 Replies

How To Get Real IP

Feb 25, 2011

How to get my real IP using vb.net?

View 3 Replies

Cannot Add Real Player

Jul 7, 2009

I have problem, when I add Real Player in form. This one..

This is a problem...

I reinstalled real player , and nothing happened , the problem still with me.

The VB in the attachment....

View 6 Replies

Convert Integer To Real

Sep 4, 2009

I have written a VB (6.0) progam that pulls data from a Comm Port. I get two bytes back everytime I real the data (i.e. FF E1).Does anyone know how to represent this as a Real number (or floating point)?

View 5 Replies

Cannot Add Real Player In Form

Jul 10, 2009

My Program is Visual Basic 2008 professional..I have problem, when I add Real Player in form.url...When I add Real Player In the form, I cannot open the form, and it comes this error.url...This is important information..My laptop is HP, and I have vista 64 bit.I have new version of Real Player.I added the Real Player to form from here,,url...How can open the form with Real Player?

View 4 Replies

ConnectionString On Real Website

Jul 29, 2009

How does a real life connectionString look like? I my sample application, I have this in the app.config file:

[Code]...

View 9 Replies

ConnectionString On Real Website?

Jan 16, 2010

ConnectionString on real website

View 1 Replies

Get Real Assembly Version?

Feb 24, 2011

Get real assembly version? [code]...

View 8 Replies

Get Real Top Window Hwnd

Mar 13, 2011

If an external window (external to my program) is set to TopMost it will be always visible, even if it is not the active window.This means that, for example, if I press a Internet Explorer page, the external TopMos window loses it active state, but remains over the IE web page.Now the question is: How to retrieve by a Timer routine the Hwnd of the REAL Top windows, intending for Real Top windows the ones that MY EYES see as top windows?If the TopMost window is not active both GetForegroundWindow() and GetActiveWindow() get the Handle ot the Internet Explorer window....

View 5 Replies

Get The Real Size Of A Flowlayoutpanel?

Jul 2, 2011

i've a flowlayoutpanel that will be filled with other controls dynamically. this flowlayoutpanel will not have scrollbars. now my problem is to get the real size, comprensive of the invisible part of the flowlayoutpanel.

View 3 Replies

How To Get Real Serial Number Of A Cpu

Sep 16, 2011

what i want is to get the serial number of my cpu.i have used the code you give at your website,that refers at the function GetProcessorId, at 3 different pc's,where all these pc's were using cpu's of the company INTEL.so my problem is that i took the same ID from the 3 pc's i used. is there any way that will make me able to get a real serial number from a cpu,that this serial number is unique?i am using visual studio 2008.do you have something to suggest?

View 3 Replies

Real-time Spelling In .net?

May 24, 2010

Is there any open-source component for VB.NET that offers real-time spelling (i.e., as you type) much like word? I found some free and open source components but without that ability.

View 2 Replies

VS 2010 - How To Get Real IP Address

Feb 1, 2012

In a WinForm application, if you want to get the IP address of the machine the code is running on (for instance, to log in the database what the IP address is when a user deletes a record), I would use this

Dim xEntry As System.Net.IPHostEntry = System.Net.Dns.GetHostByName(System.Net.Dns.GetHostName)
Dim ipAddr As Net.IPAddress() = xEntry.AddressList
blIP.Text = ipAddr(0).ToString()

While the code works, and it returns the correct IP address (for example: 140.139.138.137), Visual Studio doesn't like that code, and tells you that GetHostByName is obsolete, and needs to be replaced with GetHostEntry.

But if I do that, then I get back something that does not look like an IP address:
fe80::28ba:e091:1056:949f%11
So my question is, if I'm not supposed to use GetHostByName because it's been replaced by GetHostEntry, how come GetHostEntry doesn't give me the IP address?

View 4 Replies

Checking For Entered Value - Real Number

Nov 14, 2009

Imports System.Math
Public Class Form1
Dim var_ghost As Object
Dim var_number As Double
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
[Code] .....

My question is; when you enter a variable to inputbox like "100.5" it shall return a numeric value at line1 and "100,5" too. But when I need to check for entered value is a real number or not (Look line2) CDbl("100.5") returns 1005 CDbl("100,5") returns 100,5.

View 8 Replies

Convert A Drawing To Real Points?

Aug 25, 2009

I have an application which draws a graphicspath in dot style using pen.dashstyle = dot. after all, i need to send the drawing points to another hardware. I have to extract the points out of the drawing in order to send them to hardware. the background of the drawing is totally black and the dots were drawn in yellow color. as an example suppose a simple circle drawn in dots with fixed distance in yellow on a black background. how i can convert this drawing to an array of points()?

View 13 Replies

Convert OEM Keys In REAL Keyboard Value

Nov 13, 2010

I have the e.keyvalue (or e.keycode) of a pressed Key. Now the problem is, when is pressed a Oem key, to know the real $char of the key, depending from kekboard and language. In few words, starting from the e.keycode (that is not the ascii code), I would like to get the $char that the pressed key whould write in a text box....

View 5 Replies

Display Real Time On Form?

Apr 7, 2010

How can I display a running stopwatch on my form? I am creating a timer but I do not want to use the timer class.

View 4 Replies

FTP Chat Update In Real Time?

Jun 15, 2011

I making a simple online chat using an ftp server by downloading and uploading text. I use a thread to update the chat log continuously. But it doesn't update in real time. Is there a way to create a server that clients can upload to and download from extremely quickly? How do programs like MSN messenger or better online multiplayer games do it?

View 1 Replies

Get Cursor Position In Real Time?

Nov 17, 2009

What would be the proper way to get the cursor position while the mousebutton is held down? I've tried using a do while loop with a background worker, but it freezes up the application.

View 1 Replies

How To Cache Real-time Data

Jan 14, 2009

I'm working on a windows forms application (.NET 4.0).My form contains a 'Fast Line' chart using the Microsoft chart control included in VS2010.The chart gets filled with about 20,000 datapoints.My application then starts receiving market data from a server via DDE (Dynamic Data Exchange) in real-time and adds it the chart.

View 5 Replies

How To Send Real-time Data Over UDP

Sep 19, 2010

I have to send a sequence of video frames over UDP as fast and real-time as possible and while I got the basics working, I am running into all sorts of difficulties. Some of my goals:Data will normally be sent over dial-up (hence UDP instead of TCP), but also needs to support fast Ethernet.It's OK to occasionally drop frames (hence UDP instead of TCP).Need low latency. The frame the remote receives should be one that was recently sent (no more than a few frames waiting in buffers).I need to be able to detect the effective bandwidth so that I can compress the frames more or less to keep frame rate up.I break up frame data into one or more datagrams of about 500 bytes and each has a sequence number and other info. The receiver reassembles the entire frame and detects if any datagrams are missing.If the receiver detects more than a certain percentage of dropped frames (e.g. 50% over the last 10 frames), I send a TCP message to the sender to slow down by 50%. Sender than slowly increases speed by 5% each subsequent frame.Using System.Net.Sockets.UdpClient to send and receive the data.I have a separate TCP channel used for control messages back to sender.My main difficulty right now is detecting the effective bandwidth and dealing with latency, especially over dial-up (max ~4,000 bytes/sec). For example, if I try to send 100,000 bytes/second using TcpClient.Send() they ALL seem to arrive (no dropped datagrams) but with large latency by the time last datagram arrives. I think the TcpClient.Send() function is blocking until the buffer is able to send which messes up my current algorithm.

Can anybody point me to any sources of information for how to:Detect actual bandwidth over UDP.A better algorithm for dynamically adjusting bandwidth to suit the available pipe.Send data smoothly at the desired bandwidth.A way to detect and keep latency down to a minimum.I have been spinning my wheels over the last week and every time I solve one problem it seems another rears up is head.

View 1 Replies

Make An Application That Actually Listens To Real FM?

Apr 20, 2011

Is it possible to make an app (with VB.NET or any other language) that actually listens to real FM? not internet radio, or XM Radio, or any of that, but actual (Signal) FM radio, the type you listen to in a car or with a radio? if it's possible, is there any special hardware that's needed? I mean, if i wanna make it will all the consumers be able to run it? or only a selected few? Im sorry if this question is too long...

And is radio dead now or is that what people say? Am i the only one that stil listens to radio?

View 2 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved