I have a 3-axis robotic machine. But due to training purposes, i would like to create a simulator/emulator that act just like the 3-axis robotic machine. I want the simulator to be able to create its own virtual parallel port. So instead when i execute the coding that operates the actual 3-axis robot,whenever i send a trigger to my virtual parallel port, my simulator will start working. So my question is,
1) How to develop a simulator/emulator using Visual Basic.NET
2) How to access and create a virtual parallel port within my computer.
i want to build my own electronic circuit simulator which is use mathematical models to replicate the behavior of an actual electronic device or circuit. Simulating a circuits behavior before actually building it can i do that with vb.net is there any library that deal with simulation or something
I'm trying to create a Windows Simulator. It will do basics, of course not the whole systemWhat I have currently:esktop with full screen (Optimizes for your screen and streches it for your resolution).simple taskbar with the menu.clock at the notifcation area.Desktop refresh (Will refresh icons as Windows does).now how to.
I am new to VB I get this error message "Conversion from string "" to type 'Double' is not valid. when running my app, (the underline codes are the errors), which is a basketball simulator. How can I correct this: Private Sub playButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handle playButton.Click Dim rank As Integer Dim player As Integer Dim shoots As Integer Dim RandomGenerator As New Random [Code] .....
I've been working on a graphical simulator application using GDI. GDI is terrible for rendering what simple graphics I need, too much flickering and definitely not efficient. From what I have been reading GDI and GDI+ are pretty much out of date and what I should be using is Direct2D. But my problem starts when I cannot find ANY reference material to even begin coding. I found some examples for C++, but my little knowledge of C++ prevents me from implementing and translating it to VB2010. I have found someone on VBForums through a Google search that says he is starting a tutorial for Direct2D for VB2010 but I have yet to see anything happen.
All I am rendering are small circular shapes used for simulating cell growth, I have no problem rendering 10-20 moving shapes at a time with a small amount bearable flickering, but any more the lag worsens exponentially and the application will use a ridiculous amount cpu. Overall I want to be able to display and render over 100 shapes at a time. So my question is... Where can I find some reference material regarding Direct3D for VB2010?
A gyrocompass simulator? Basically i work with stabalized VSAT antennas that track a satellite around 30,000 K in the sky from a ship getting tossed around at sea. These antennas need to know where they're pointing so they can find the satellite, this is where the gyrocompass comes in. It tell the antenna how many degrees from north it is pointing.
I need a simulator to imitate the output of a gyrocompass on a ship that is moving around. The program would pass data out of the serial port so i could hook it up to the antenna and it would know where it is pointing when i am testing it.
I am making a program for Microsoft Flight Simulator X, and When you are in Multiplayer in most games there is a Chat room, or Chat Box. Do you think that there is any way I can reach maybe an API or possibly monitor the Screen so If someone types !Help in the chat box my bot would Respond like "Software by (whoever) other commands" stuff like that. But I cant seem to find any info about API's in the Microsoft Flight Simulator X SDK about Multiplayer Chatbox or any multiplayer functions in that matter.
Of course I know the Now() function, but what, if the user sets the date on the computer f.e. 2 days back? I have tested it, I get the date from 2 days earlier.
Is there another way to determine the REAL actual date?
I have a screen full of puzzle peices they are all rotated at different angles (90,180,270). is there a way to track the peices rotation? I was thinking of using a 2d array to store there rotation. however, I am using this code to rotate the peices:
I am running windows xp media player. Everthing works fine except my photos. They show in library normal but when I select them to play they look as if they have visualized bars. No actual image displays. How can I correct this?
The Print Preview document is set to the print document.[code]...
When I print the document (from print preview or my print button) the papersize/margins are different...this is how:
1. If I draw a rectangle from (0,0) to some width or height the point is in the corner of the print preview but on my actual printed page it is about 1/4 in to the right and 1/8 in down.
2. I have an extra inch or so on the right side and bottom of the "page" that print preview will print to but will be cut off in actual printing.
I am assuming that there are some default settings (like the printer gutter and letter paper size) that print is getting from the printer that print preview is not, possibly. I need to have my print preview look exactly like my actual printed page.
I am having the following problem with a chart displaying a value that is heldwithing a variable but 10 times lager. But this is only happening in my programfor a user that is located in the Netherlands.If I run it from the UK or other people run it from other countries the valuesare displayed correctly, it only seems to be a problem for this one userin the Netherlands.I have checked my code and all is correct and there are no Multipliers added tothe value.To show what I mean see below, as I do not have the code to hand as I am currently at work.
I'm using VB2008 and I have a CmdButton and a Listbox. When the CmdButton is clicked, it will look for all the files contained on a fixed directory and the names of the files will be enumerated to the listbox. I have that piece working perfectly.
The question is -- after the listbox is populated with the filenames, can I select one or multiple items from the listbox and copy the actual files from the original directory to a directory that the user will specify via browse folder dialog? Maybe right click on the selected item(s) then export? Just a thought..
lets say i have a string that holds "Monday" and another string that holds "9:45:00 PM". would it be possible to look at the Date.Now() function and see when the next Monday is, and then convert those two strings into a date? lets say the next monday was 05/20/2011. I would want the date variable to hold "05/20/2011 9:45:00 PM". any ideas guys?
I am converting a VB.Net application to C#. Everything else is going great. Except this bit. I have a function which builds menus,sub menus and seperators from a database. It can build a MenuStrip or a ContextMenuStrip which can then be assigned to a form.
This means that menus can be extensive and conpmex but managed outside the application, which I also use as part of my security access model. All menus are controlled from the database externally, it also means I can develop visual tools (Treeviews etc) to manage user menus. The application uses menus extensively which is by design.
Programmatically I want to assign an eventhandler to every item that isnt a dropdown or a seperator
In VB I would do this, (works perfectly)
[Code]...
"System.Windows.Forms.ToolStripItem' does not contain a definition for 'DropDownItems' and no extension method 'DropDownItems' accepting a first argument of type 'System.Windows.Forms.ToolStripItem' could be found (are you missing a using directive or an assembly reference?)"
Public Interface IHasDateUpdated Property DateUpdated As DateTime End Interface Public Class MyClass
[code]....
Now, assuming I was referencing an instance of MyClass as an IHasDateUpdated; how would I determine the actual name of the property that implements the interface property via reflection?For example:
Dim x As IHasDateUpdated = New MyClass()
' How do I derive "MyDateUpdated" from "x" using x.DateUpdated?
Is there a way to make the actual tabs different sizes? I just want the tabs themselves different sizes not the whole thing. Seems like the itemsize property does this but it will only allow you to set one size. I want each tab to be a different size depending on its text.
so I was originally having problems even saving the data, but I can now get it to stay in the dataset, and when I switch to another page it stays there when I go back to it. Although when I close the form and reopen it, the changed data has not saved. I know that it is because I have only updated the dataset and not the database, so was hoping someone could give me pointers of how to approach it.
There appears to be a problem when I use the CallByName function in my actual script. While testing it I used some hardcoded arguments to pass to the procedure in CallByName function. This worked fine. In the actual script these arguments are coming from an XML file. When I read this XML document the values are string values by default:
It seems that the autosize columns will only make them bigger. For example, if I have a DGV that fills most of the form and then only three small columns are loaded, there is a whole bunch of darkgrey empty space. Is there any way to snap the side of the DGV to the actual data?
I'm using the following iTextSharp VB.NET script to generate a PDF document containing this barcode:
Dim pdfDocument As iTextSharp.text.Document = Nothing Dim filename As String = HttpContext.Current.Server.MapPath("barcode.pdf") pdfDocument = New iTextSharp.text.Document()
[Code]....
When this PDF is generated, however, the image is appearing larger than expected, and is distorted:
I can't see anywhere where I'm setting the image to be a specific size, so why would it distort like this? And how can I prevent it?
It's crucial that this image remains the size it is intended to be so that it can be read by barcode scanners.
In VB.NET, I can't seem to figure out how to do a similar thing.
This doesn't work:
Dim handler As EventHandler = Me.SomeEvent
...due to the following error:
Public Event SomeEvent(sender As Object, e As EventArgs)' is an event, and cannot be called directly. Use a 'RaiseEvent' statement to raise an event.
But this doesn't work either: [Code] So how can I actually get an EventHandler from an event in VB.NET? The only idea that's immediately coming to mind is to use reflection, but that seems pretty ridiculous.
I managed to print in landscape, however this setting is not being passed onto the printer driver, and when I click on 'preferences' in the printing dialog the printer seems to think that it is printing in portrait. Is there a way to change this in the code, without having to ask the user to do it?
How would I go about changing the actual shape of the RichTextBox caret?
I have tried using the CreateCaret and ShowCaret API calls, but they only seem to work with normal text boxes. Is there any way to modify them so they work with RichTextBoxes?
as part of a small encryption program i am making, i am converting the contents of a textbox to hashcode. I used the built in feature for this:.GetHashCode Now once i have the hash code how do i convert it back to regular letters?