Model Train Set - Control The Track Switches Etc Via Computer?
Jul 16, 2009
I'm doing some very basic ground work, I know someone who is building a model train set and believe now you can control the track switches etc via computer, does anyone know anything about these? could something be built in VB to do this?
View 9 Replies
ADVERTISEMENT
Oct 18, 2009
How do I retrieve the computer model information?For example, I have a dell inspiron 1545. How do I retrieve that information in a label? I search a lot of WMI information but can't seem to find it. It SAYS 1545 on my system properties
View 5 Replies
Jul 4, 2010
Im using My.Computer.Network.DownloadFile(OnlineLocation, FullLocal) to download a file, how can i check when its done and also i want to track the progess with a progressbar. How do i do this?
View 25 Replies
Jul 3, 2009
Does anyone have a good website for the basics of using Model View Control pattern with either vb.net or C#.
View 1 Replies
May 30, 2009
My.Computer.Network.DownloadFile is a built in .NET method, can I make it display the download via a progress bar;It currently hangs my whole application until the download is complete; i would like to make a thread and have a visible view of the download progress;
View 3 Replies
Jul 11, 2008
I am in the process of designing a computer control program to control a HF communications receiver (radio), and have found a problem with the Serial port. I am using VB Express Edition 2008. This module of the program is supposed to take an input string from another part of the program, format it, break it into 4 bytes, and send it to the radio in hex form via COM port 1. The problem comes in when you try to enter a frequency with an 8 or a 9 in it. The 8 or 9 is usually replaced by 45, ex.-input 9900, receiver tune 4545. The exact same thing happens with 8's, input 8800 and receiver tune 4545. All other numbers other than 8 or 9 work fine. The strange part of it is that sometimes the 8's and 9's work, and work correctly. For instance, 900, 1900, 2900, 3900, 4900, 5900, 6900, and 7900 all work correctly. This led me to believe that is may only be when the 8 or 9 is in the first position, but that is not the case, it also shows up in other positions as well. All other frequencies that do not have 8 or 9 in them also work. I ran into this same problem with VB Express 2005, and worked on it for weeks before giving up and going back to VB6.0. This same module (with exception of the port open command) runs flawlessly under VB6. I have even tried importing the MSCOMM control from VB6, but it gives the same results. In de-bugging mode, all of the inputs, decimal and hex seem to be correct, so the problem must come in after you click the command button, but before it leaves the COM port.
[Code]...
View 19 Replies
Jan 26, 2010
I am utlizing a piece of code for an FTP upload process that we want to occur when the check mark is checked, The download function (virtually same structure) works extremely well and without any issues. But the uploadfile function merely creates a file on the destination path called what it should be called, but does not upload any information. I think there is some uploadstream that I have to invoke which I am not. This is just the code starting at that process.
ftp.Method = System.Net.WebRequestMethods.Ftp.UploadFile
'If we were using a method that uploads data e.g. UploadFile
'we would open the ftp.GetRequestStream here an send the data
[CODE]...
View 3 Replies
Jan 22, 2009
It is my first time to program using VB. I need to use 3 buttons on the top to do different work. When each button is pressed, different screen with a lot of tool boxes pops up, but in the same form. Can anybody tell me how to switch to different screen after button switches? E.g. when program runs, the first screen pops up together with the first button. If I press the second button, do I have to write code manually to turn off these tool boxes and turn on the boxes for the second button? Any easier way using Visual Studio to draw boxes for the second button?
View 3 Replies
Nov 30, 2010
This may be a dumb question, but I am stumped. I wrote a simple desktop application in vb.net (vs2005) and published it via the "deploy" method. After I deployed the app and ran the deployment exe - the application runs fine. However, I have recently added some command line switches so I can run the app via a scheduled job. But I cannot find the "exe" file in order to run the application from the command line. Am I missing something or did I deploy/publish the application wrong?
View 1 Replies
Nov 9, 2009
I am told that the code does not seem to contain any reference to a template file for controlling the device. This information might be in the array StatoCubo, and perhaps the text file is used to populate that array, but there is no code here to do that.
I am using VB 2008 Express edition. I did not write the code below but i was told that it works but it dont. I am building an 8 x 8 x 8 led cube and have most of the code i need to make it work but i can not figure out how to make VB callup(?) a .txt (template)file to control the cube designs. Below is the code so far (some of it is in Italian i think) and the file name i want to use is; RainbowExplosion_8x8x8_bw_bit01 VER1.txt
Public Declare Sub Out Lib "inpout32.dll" Alias "Out32" (ByVal PortAddress
As Integer, ByVal Value As Integer)\par
'--------------------------COSTANT FOR LPT1
ADDRESS--------------------------------\par
Public Const IndirizzoData As String = "&H378" 'DATA REGISTER: 8 bit\par
[CODE]......................
View 12 Replies
Jun 22, 2010
I am new here and even newer to VB so if this is the wrong place to post this or i use the wrong terms i apologize, it is not my intention to offend or insult. I am told that the code does not seem to contain any reference to a template file forcontrolling the device.This information might be in the array StatoCubo,and perhaps the text file is used to populate that array, but there is nocode here to do that.I am using VB 2008 Express edition. I did not write the code below but i was told that it works but it dont.I am building an 8 x 8 x 8 led cube and have most of the code i need to make it work but i can not figure out how to make VB callup(?) a .txt (template)file to control the cube designs. Below is the code so far (some of it is in Italian i think) and the file name i want to use is;
RainbowExplosion_8x8x8_bw_bit01 VER1.txt
Public Declare Sub Out Lib "inpout32.dll" Alias "Out32" (ByVal PortAddress
As Integer, ByVal Value As Integer)\par
[code].....
View 1 Replies
Feb 26, 2011
i want that i control my compute through vb.net. i mean to say that i want that i have a projec on which i have buttons though which i could go to any drive of my computer, or any folder, or can play any song or can open any image or any other file. can i do this?
View 7 Replies
Sep 24, 2010
I am trying to figure out how to make a program which can accept switches like cmd.exe /k or /c basically i want it to accept commands by myapp.exe /c mycommand.i tried searching and googling but no luck. Also is there a way to run a function like that? And if anyone is wondering why then basically i am copying a script to my domain computer and executing it. This i already have done but problem is its just getting too much copyin multiple scripts and executing i would put everything in on and run em by switches.
View 2 Replies
Nov 30, 2009
i have a drop down box, with 2 Options Yes and No,what i want to do is
if questBox = Yes
do this
else if questBox = No
do that
end if
but not sure how to do it.
View 1 Replies
Jan 20, 2011
I need to control the main computer volume in vb.net. I have searched the web and tried all the examples I could find. None of the have worked.Does anyone have some snippets of code that work with vb.net 2010 to control volume?
View 2 Replies
Feb 17, 2010
I need to have a PC talk to a Mac (apple) over a network (or alternately the internet, SSH, whatever works) in such a way as to open a shell window on the Mac to execute a number of commands to have it talk to a UNIX box and transfer files from a device attached to the Mac to the UNIX box where it can then be accessed later on in an shared area (SAMBA) by the PC.
The Mac has a fixed IP and I can have it configured to open the appropriate ports, but I would like to minimize any potential security issues.
Part of the reason why is the copy time is significantly lower. Copying from the PC to the shared area takes over 90 minutes vs about 10 for the Mac. No doubt this has to do in part to translation and network overhead.
So I need to
1) Connect
2) Open Shell window
3) Execute commands
4) exit Shell window
5) Disconnect.
View 1 Replies
Sep 10, 2009
how to open excel with switches using vb.net, similar to what "Run.." does in Windows.. eg: this is what you would put in the "Run" ComboBox : excel.exe /r "C:ook.xls"
View 1 Replies
Jun 28, 2009
I am using or trying to use the mp3 tag switches to create a lame options string. Here is a list of the switches that I am currently using;
--tt "title"
--ta "artist"
--tg "genre"
Here is the code I am using;
Private Sub gbtnCreateString_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles gbtnCreateString.Click
'For Encoding ONLY. Decoding to .wav = NO MP3 tags.
'Exception Prevention
[Code] .....
I then add the lblLameOptions.text to the Lame.Arguments = lblLameOptions.Text. The following example is for mp3 to mp3. The text would display this;
--resample 44.1 --tt TNT.mp3 --ta ACDC
--tg ClassicRock
View 3 Replies
Dec 22, 2008
can i in some way change the power that the usb sends to a usb device?i want to connect a computer fan to the usb and control the speed is this posible??
View 1 Replies
Dec 11, 2009
My VB.NET application uses Microsoft Flex Grid Control 6.0. This is a legacy application which has been ported from VB6 with the Visual Studio conversion wizard. Although I can compile the assembly, I get a COMException because some class is not registered. I've found out that this class is the Microsoft Flex Grid Control 6.0.
Where can I find the control and how can I register it on machines so that the application will run?
View 1 Replies
Jan 30, 2012
I'm trying to create a querystring so when a user switches languages, the URL changes to ?lang=NL, for example. I have this in the code behind on homepage.master (VB, NOT C#):
Me.Request.QueryString("lang") <> Session([Global].SESSION_KEY_CULTURE) Then
Visual Studio underlines it in blue. When I hover over the left side of the statement, it says "Property Value Must Assign to the property or use its value" When I hover over the right side of the erred statement, it says, "End of Statement Expected".I'm not sure if the code I was given is C#, but when I use the Teleflex translator to check, it says "EOF Expected" and won't translate. All of this is tied into 3 classes I created, BasePage.vb, Culture.vb, and Global.vb. But I think it's just this line that's screwing everything up.
[code]...
View 3 Replies
Apr 20, 2009
let's say i have this application running, preset size. and there are other applications, like, firefox, vb, etc. in the background where i can click on them to bring them to front and use. now, when that's done, i'd like my application to minimize by it's self instead of just becoming a application that got sent to the back of another one.. the minimize is just to get me started, since i'll probably resize it to a button or so.just a squirrel looking for my nut...
View 4 Replies
Oct 27, 2011
When user clicks on a button on my form, it sends the datagridview on that form to another class that [basically] does a bunch of stuff and shows a dialog with a print preview. Everything works perfectly fine, except that if a user switches around columns it won't print them in that current order. For example, if user moves the LastName column before FirstName column, then it should print in that order, but it prints in the column order that the datagridview was originally loaded. The dgv1, is the datagridview that was originally loaded, not the current one. [Code]
View 10 Replies
Dec 9, 2011
I like to have a code which switches cursor to 2 lines by clicking a button (or with checkbox). Both lines starts from the edge of window and at the intersection is the cursor's position.
View 1 Replies
Jul 10, 2009
I'm using VB2008 Shell function to execute file with arguments. But I'm not sure how should look my PathName in Shell function with all necessary arguments and command-line switches. Without arguments: [Code]
View 4 Replies
Feb 3, 2012
I currently have a subroutine that switches focus to a textbox when TabPage2 is selected. This works fine. [code] However, this doesn't prevent the Textbox from losing focus when TabPage2 is clicked on even though it's the active tab.I have a single button on that tab that disables the textbox if clicked using this: [code] Apart from that button being clickable, I would like the textbox to never lose focus as long as TabPage2 is the active tab.
View 3 Replies
Mar 14, 2012
Currently, i am trying to connect the EPP (Encrypted Pin Pad ) device to my computer by using mscomm control. May i know what are the possibility problems may cause the DSRHolding does not return to "True"?
View 3 Replies
Jan 29, 2012
I am trying to make a Christmas light animation via computer control. I am using VB.Net and have tried several examples I have found, but I get the same error: port is closed. The code I am using is this:
Imports System.IO.Ports
Public Class Form1
Dim instance As New SerialPort
[Code].....
I have tried several things and I still get the error message that the port is closed.
View 6 Replies
Mar 19, 2012
i have a task to create a TCP Server (a program that is listening on its network card interfaces for incoming data stream).I have search on the internet and i found that i can use two methods : Socket or TCPListener class.I have created an example for Socket class, but i wondering how could i test it? I need to check that if another computer in the network send some string data to the listener computer , then this message should be displayed.Here is the example from microsoft that i am using for TCP Server using Socket:
Public Shared Sub Main()
' Data buffer for incoming data.
Dim data = nothingc[code]....
But it does not work because of the PORT setting.If in the TCP Server i have "Dim localEndPoint As New IPEndPoint(ipAddress, 0)" the client crashes, but if i change the port from any (0) to 11000 for example,the client works fine.Do you know why?
Later edit2:Maybe i should have started with this question:Which method is recommended for my scope?asynchronous or synchronous method ?
View 2 Replies
Jan 29, 2009
I am developing a computer application designed to monitor the network and CPU statistics on a computer remotely. The monitored computer would have my program installed and the monitoring computer would display, in a form, the information being sent from the remote client.The application does not send any information regarding packets, user names, passwords, etc. It is solely meant for monitoring CPU performance and Network resources remotely.
What would be the best method to send this information over to my host machine?I am programing in Visual Studio 2008 on windows XP. The client machine is also XP. I know this sounds a little shady, but it is required for my little business (http://www.iquorum.net) to monitor what and when something happens on our machines when I and my employees are away.
View 2 Replies