VS 2010 Using External Data File?
Feb 21, 2012
I would like to include a text file for easy ediing of data that my app will read and pull data from. My external data file is a csv fileI want to display a checked list box that display this info and based on selections in the checked list box cand in a procedure later call commands based on those selections.
View 4 Replies
ADVERTISEMENT
Jan 24, 2010
how to compile other files into an external file, where they can be accessed by the simple "application.startuppath" code. I got all the files i need, the .dlls, my .exe, and my resources, but the tut's i have been finding havn't been working for me. [URL] tried that with a few adjustments after it didn't work twice, and still no luck.
View 12 Replies
Aug 27, 2011
I am trying to write a simple standalone windows forms project that basically contains various buttons which run external application setup files. The problem is I want to be able to run it from a USB stick. I have created a folder inside the project with all the files I need to call in it. I am using Process.start but the paths are obviously going to be wrong when the project is running from the stick as the drive letter may be different each time. How do I over come this.
View 1 Replies
Sep 12, 2008
I'm rewriting a legacy application in .NET. In the earlier version, I used a few control .INI files that could be edited by the advanced user to provide variation in certain program options. (The program also permitted override of these same variabes via menus and such.) I used the API functions to read the .INI files and rewrite them to alter the user's environment for subsequent runs.
View 19 Replies
Dec 17, 2010
I am using data annotations to validation my class properties. A requirement has emerged to store the validation error messages in an external file from which they would be loaded into memory at runtime.I thought I'd be able to load a colleciton of error messages from an XML file and then set ErrorMessage:=[StringVariableHere] ... but apparently that doesn't work as you need to use a constant value.If I store the errormessages in a Resource.resx file then those error messages are compiled into the project and can't be loaded at runtime - or am I wrong?
View 1 Replies
Apr 4, 2012
My question is as follows: The user has clicked File>Open in Notepad and also clicked on a file/folder. My Application in VB.NET needs to know the path and filename of the selected file/folder before the user selects the OK button of the Open Dialog box. How can I do this with VB.NET (VS2010).
View 5 Replies
Feb 25, 2010
I use Philip's MfRc500.dll for communicating with RFID chips. It contains a function for reading data, which is defined like this:[code]The second parameter in function Mf500PiccRead can returns "16 byte data block", so my long data type is too small. If I use byte() instead of long, then i get ExecutionEngineException Exception.
View 3 Replies
Sep 3, 2009
Can someone just give me direction on how i could scrap this data and then make it submit the information to a form in my admin panel or via MySql. I just need to get title,url,desc, and Category.
View 1 Replies
Jun 2, 2011
I am using Ms-Access 2007 with vb.net. My problem is that I have a table with column name strval which has following values:
2, 3, 43, 5, 6 etc., in each row.
Now I want to search for that row which contains e.g 2 in column strval. I use
SELECT *
FROM tbl where tbl.strval IN( '2' )
but this doesn't work.
View 3 Replies
Oct 23, 2011
I have changed my Data Base location to external now I am getting an error. I know way, I need to fix it but do not know where
View 4 Replies
May 4, 2012
1 List all of the data from Teams.txt in a Listbox. Include suitable headings.
2 List all of the data from Results.txt in the Listbox (use the same Listbox as in 1 above).Include suitable headings. Note that you cannot assume that the file contains onlyresults for the first 3 weeks of the season. Your program should be able to process a results file with more or fewer results.
3 List all of the data from Results.txt in the Listbox. However, in this case the actual team names should be output (your program will need to get this data from Teams.txt. The data should be formatted so that it is aligned correctly. Include suitable headings.
The output might look as follows:
Home Team Away Team Home Team Goals Away Team Goals
Bunbury Braves Nedlands Nodders 5 2
View 1 Replies
Feb 1, 2012
I have developed a simple software using VB.net, now i want to receive some data from an external device,How to read a hardware transmitted data using VB.net, where hardware is attached to a USB port?"
View 1 Replies
Jun 21, 2009
I'm trying to write a vb.net application that works with a 3rd party application called FuzzyTech. Unfortionalty FuzzyTech is quite old so the only way I can interact with it is buy using DDE. FuzzyTech acts as a DDE server. After a bit of research I found a library called NDde which enables me to use DDE. I understand that vb.net does not natively supprt it as it is an old technology.
Now fuzzyTech seems to only respond to the DDE connect and pokes when in debug mode. The only way I can find to get the program in to debug mode is from the menu bar (Debug > Interactive). So I have written an application that runs fuzzyTech, grabs the window and then accesses the menu to put it in to debug mode. My code can then use DDE. I have all of this working ok (although it does feel like a bit of a hack). The problem is I don't want users to be able to see this happening.
I want fuzzyTech to be hidden.After more research I found I could hide the window on startup by using fuzzypProcess.StartInfo.WindowStyle = ProcessWindowStyle.Hidden. However when I do this my code to grab the window and send the menu commands then fails. I think this is because the window title becomes blank when hidden.So I need to know a way of controlling the program after it is hidden or hiding it after it is in debug mode. This is where I am stuck. I'm very new to programming and this has got me completely stumped.
Here is some of the code I am using:
Private fuzzypProcess As Process = New Process()
Private Sub LoadFuzzyTech()
Try
fuzzypProcess.StartInfo.FileName = projectPath & projectTitle & ".ftl"
[code]....
View 2 Replies
Mar 11, 2010
I am presently using VB2010 to develop charting application. I have noticed that whent he applications are developed on my hp dv7-2270us notebook and stored on an external harddrive, if these same applications are then opened on my dell latitude d610, i will recieve a corrupted external harddrive error. Usually this can be repaired with check disk.
View 1 Replies
Jul 26, 2011
Does anyone know how I could get my app to show the ISP of the machine it is running on, I can get internal and external IP addresses, just need to know if possible and how to look up ISP from this information
View 1 Replies
Nov 2, 2009
I am using VS 2010 to create a Mac OSX like dock application.Everything has worked great apart from one of the key features of the dock! So what I want is:When the user clicks the minimize but on any (including external application) it minimize to the dock I have created rather than the windows Task-bar.
View 5 Replies
Dec 25, 2010
I start an external Program using System.Diagnostics.Process.Start I want monitoring when a user has started a new file, saves or opens another file and get the info of the file in current process
View 2 Replies
May 3, 2011
I guess this one is pretty basic, yet i have not been able to figure out.So here's the deal, my application uses an external exe to generate some txt files that the application needs for a use case. Since hard coding the path of such exe would be hideously wrong in so many aspects i would like to include a little configuration option for the user, so he can specify the path of the external exe for the application to be used.I also would like to have something like that for the path of the Database I'm actually using.
View 2 Replies
Apr 1, 2012
I'm trying to send a click to an external app using the coordinates inside it, not the coordinates of the screen, if you can understand me...
How can I do this? Being more exactly, I'm trying to get a radio button's coordinates of an external application, then, clicking it (using its coordinates, not its class/name), if its possible...
View 4 Replies
Apr 8, 2011
I need to take screenshot of another (third party) application window and save it in a folder.
View 5 Replies
Apr 13, 2010
Background: My VB .Net application is a back-end solution that works with a proprietary Linux-based middle-ware messaging architecture developed by our company. My application references to the middle-ware DLLs, obtains connectivity, and subscribes to specific broadcasts with the middle-ware. When the broadcasts are received, it handles processes them and inserts/updates certain tables in a database. To do so, it has specific notification classes to handle each type of broadcast. These classes adhere to the inheritance model imposed by the middle-ware DLLs.
[Code]...
View 3 Replies
Nov 30, 2010
I am trying to read data from an external device using MSComm control but the problem is I am getting wrong data. I am recieving 1 byte data but the first three bits are wrong so anything greater than 31 sent from the external devices is recieved wrongly. eg. if I am sending 63(111111) from the device then the input from MSComm control gives me 159(10011111).Due to this reason I tried SerialPort from .Net framework and was surprised to see that it is working properly.
View 3 Replies
Nov 10, 2010
I have an array of data which is currently updating itself every 10seconds from when my spreadsheet is opened as you can see from the VBA module code given below, that is fine but the charts that I have created manually from the data are not updating themselves as the data changes. When I change the data by editing a number in the range etc. then surely enough the chart updates. Is there any code available which will refresh the chart I have made automatically say every 15 seconds, giving a 5 interval breathing space between the data and chart update?
The code I have attempted to resolve the problem in the Sub AllWorkbookCharts () doesn't work as there is a problem with the refresh part of it.
Sub Update_Time()
Application.OnTime Now() + TimeValue("00:00:10"), "Sort_Table"
Application.OnTime Now() + TimeValue("00:00:15"), "AllWorkbook_Charts"
End Sub
Sub Sort_Table()
[Code] .....
View 2 Replies
Jan 7, 2009
sort the listbox that is being populated by data from an exteranl hard drive. The DB's on the Hard drive are contained in folders with a naming format as follows (Jan94 - Dec08)The issue is that on the HD all the folders(yrs) for Apr are listed together and then the rest listed the same way, just sorted based on 1st alpha character. The format I want to show in the list box is as follows:
Jan94
Dec94
[code]....
View 3 Replies
Jan 15, 2011
In a program of mine, I have a resource (which is a textfile). This contains also vb.net code, It is resource which is binded to an .exe, with the mainprogram that I have. So the main program calls the resource, and the resource bind to an exe file.
I have this line:
Declare Function GetProcAddress Lib "kernel32" (ByVal handle As IntPtr, ByVal name As String) As IntPtr
In the source.txt and I want to replace this whole line by a string(or word) which calls this line from somewhere else. For example in another source.txt. A textbox is not possible because this is not a vb form, but a .txt-file. Maybe I can create another resource, which IS a vb.net form, call it or something? In this case. I can create a textbox with this line that I gave above, And I can use it by: textbox1.text.
View 2 Replies
Jan 13, 2012
I've made great headway with an application I've been working on for the company that I work for. Will probably wind up getting a nice raise just because it's so versitile and can be completely customized. It's to be used to execute remote commands to perform different tasks on the workstations that we have here at my office (approx 100+ workstations).Anyways... After weeks of googling and forum reading, I have all that figured out. Here's a good generalized question:Rather than my application starting an external application with the system.diagnostics.process.start("PathToExternal.EXE", "/ExtraSyntax", "user", SecurePasswordVariable, Domain) is there a way that the External.EXE file being called upon can be compiled INTO the WHOLE application at build time?Can multiple External.EXE's be compiled into the FinishedProject.EXE? Like, I'm in VS2010 Express and I can place multiple External.EXE's into the Solution Explorer. In my application, for the "PathToExternal.EXE" I can drag the file listed in the Solution Explorer INTO the
system.diagnostics.process.start()statement and it'll translate out to "mydocsVisual Studio 2010ProjectMyProjectMyProjectExternal.exe"
If I run it from VS2010 it'll run. It'll do everything it's supposed to do... I check and there's a copy of the External.EXE file's in the paths listed above... Those files are 53.5kb and 135kb each... My built Project.exe is only 35kb... Is there a way to have my External.exe's compiled into the project. exe so that at run time, I can just pull up their function? or extract it from the complete Project.exe, use it, then delete it???? I've done this before with a scripting application called AutoITScript... I'm wondering if VB has this function....
View 5 Replies
Sep 7, 2010
I'm trying to set hotkeys for all my favorite websites. When one of these hotkeys are pressed, I want it to load the assigned website in internet explorer, but I want internet explorer to load on my SECONDARY monitor. I've already set out the hotkeys to load internet explorer, but it loads on the wrong screen. How to check if an instance of IE is already running. To be a bit more specific: the secondary monitor is set to the LEFT of the primary one. And the resolution is at 1440 x 900. So basically, I want to programmatically set IE's position to (-1440, 0) from within my application itself.
View 5 Replies
Mar 31, 2012
<DllImport("user32.dll")> _ Private Shared Function SetForegroundWindow(ByVal hWnd As IntPtr) As <MarshalAs(UnmanagedType.Bool)> Boolean End Function
[Code]...
View 13 Replies
Feb 2, 2012
creating a COM component Instance like this for supporting multiple version of COM components
Creating Instance
Private _cmObjct As Object
Public Property CreatingInstances() As Object
Get
[code]....
at the same time how to declare this method without referenced dll SSDP is an interface so how to declare this interface for my usage is this Correct ...?
Error: Dim d as Object = Activator.CreateInstance(Type.GetTypeFromProgID("SecureTronics.SSDP"))
View 1 Replies
Sep 8, 2011
Weird problem, it only happens for one of my clients, and it happens on all 3 of their computers. Their computers are Windows XP.My form has a Windows Media Player control on it, to play a video from the internet. When the form loads, I get an exception "External component has thrown an exception". It happens in the form's designer, in the InitializeComponent procedure, at this line:CType(Me.wmpVideo, System.ComponentModel.ISupportInitialize).EndInit()
It works great on 100 other clients computers, running XP, Vista, or 7, and this is the first person to have this issue. If I take the Windows media player out of the form, it works fine.BTW, those computers have Windows Media Player installed, I already checked.
View 2 Replies