VB And Utilize The 64-bit Processing Power Available In Windows 7
Feb 9, 2010
For sometime now, we have developed an applicatio in Visula Basic (Express Edition). We would like to utilize the 64-bit processing power available in Windows 7 (our application runs currently in a Windows XP environment). So we are contemplating to migrate our VB application from a Windows XP-based environment to a 64-bit hardware platform running on Windows 7.
[Code]...
View 2 Replies
ADVERTISEMENT
Jul 26, 2010
Im coding an application that needs to list all computers inside my LAN, and get the status of the machines ex. Power On, Power Off.. in order to Wake On Lan, or Turn it Off.. im using Visual Basic .Net.I all ready listed all machines, now i need to get the status of them..
View 5 Replies
Jun 7, 2010
I have done a search on Google but not really found anything. Worst case I suppose I could use "powercgf.exe -l" to list them modes then try to get the GUIDs out of that.
View 6 Replies
Dec 7, 2009
I am writing a program on my Windows XP computer at home and installed Power Packs 3 so I could take advantage of Printforms I copied the project to my flash drive and brought program to my office that has windows 2000, the program wouldnt load because Power Packs wasnt intalled. Windows 2000 wont allow Power Packs 3 so I installed Power Packs 2 hoping that would work. Its looking for version 9.0.0.0.0
View 2 Replies
Mar 18, 2011
I just learned some basics of multi threading in VB.net recently as I came across processing a large List of records and inserting them into SQL database one by one.
I have code look like this:
Private Sub btnLoadNow_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnLoadNow.Click
Dim autoLoad1 As New Thread(AddressOf AutoLoad)
autoLoad1.Start()
[CODE]...
Itemlists is a global lists i retrieved from database, everything looks fine to me but when i run this program, I found that the threads are inserting one records 9 times into the database(I have 9 threads in total), which makes me think that maybe i need to specifically assign 1/9 of a list to each thread? Is there another way to do it which doesn't require the splitting of the list, if not , how do i split it then assign?
View 1 Replies
Dec 4, 2009
I've discovered a problem that's fairly huge in my work environment and unusual. I'd say that it's impossible for it to be happening except that it is happening.
You have a window (we'll call it window 1) open with a page in it, you enter some data on the form, push the button to submit the data...behind the scenes a decent amount of work is going on.While data is processing in window 1 , you open window 2 and try to load the same page that is processing data in window 1.Window 2 will not render the page until window 1 is done doing whatever it's doing behind the scenes and has re-rendered on the screen.This is happening for all .NET pages in our environment.
View 3 Replies
Jan 6, 2010
2008 Array Processing and Sequential File Processing
View 14 Replies
May 19, 2011
Im a college student and this is my first programming class, i am having extremely diffcult time with arrays and sequential file processing. Im not asking for the whole program, just something to get me started and hints along as i progress with it. Please help me get started on my program, its due in 2 days.
Here are the requirements....
1. The program must input any number of individual�s last and first names using two separate textboxes.
2. The array of names must be sorted by the last name using a bubble sort. You must code the sort.
3. The program must be able to recall the names from the file and add to the existing list of names so that more names can be added to, sorted, and written back to the file in sorted order.
4. Sort in ascending order: A to Z
5. All names must be displayed in a listbox in sorted order when the user wishes to see them.
6. In the listbox the last and first names must be separated by a comma and a space. Example: Smith, Mary
7. The user must be able to search for a name in the array, using the binary search algorithm. You must code the search.
8. Do not use module-level variables. Instead you may choose to use Static.
9. The program must be designed using Visual Basic 2008
View 3 Replies
Feb 20, 2012
I'm having the reverse problem as this thread.We save off data in several formats, one of which is .XLS, however, some users may not have MS Office installed already, so I want to allow them to use the OS's "open with" dialog to associate with notepad or something so they can open the file.[code]...
View 2 Replies
Jun 8, 2010
I have a messagebox with a "yes" and "no" buttons. I am asking the user upon "exit" (ing) the app, if they haved saved their work. The default button is defaultbutton2 "no" and it saves the file. If user selects "yes" they have saved their work, then I need the app to close.Here's the code:
'show messagebox to save work....default button2 = 'no' then saves file....default button1 'yes' is spose to close app
MessageBox.Show(
"Have you saved your work?",
"Garman Music Pro", MessageBoxButtons.YesNo, MessageBoxIcon.Question, MessageBoxDefaultButton.Button2, 0, HelpButton)
If MessageBoxDefaultButton.Button2 = MessageBoxDefaultButton.Button2
Then[code].........
View 3 Replies
Aug 6, 2010
However, I am wondering if there are any workarounds or plans for incorporating this feature into VB.NET in the future?What I'd like to do:
Public Delegate Function Deserializer(Of T)(ByRef Buffer() As Byte, optional ByRef BufferPosition As Integer = 0) As T
'Implementation of a func that matches the delegate'
Class A
Public Function Deserialize(Byref Buffer() as Byte, optional Byref BufferPosition as integer = 0)
....
In the absence of specifying "optional" inside the actual delegate itself, it'd at least be nice to be able to do it in the function implementation only:
Public Delegate Function Deserializer(Of T)(ByRef Buffer() As Byte, ByRef BufferPosition As Integer) As T
'Implementation of a func that matches the delegate'
Class A
Public Function Deserialize(Byref Buffer() as Byte, optional Byref BufferPosition as integer = 0)
....
At least this second way, the functions for the delegate will always have a value mapped to each parameter, although some may come from the function side and not the calling side.
View 2 Replies
Nov 13, 2011
I am currently building a vb windows form application (.net 3.5 framework). For the next part of the application I want to be able to use an existing excel process which will have been checked out from sharepoint and manipulate the worksheet with my app.
View 1 Replies
Feb 6, 2010
What is the best way to log into a website from a program. I can login using a web address. But I can't figure out how to utilize the web address and get it to log me in. I'm not too sure how to go about getting a login to work really. What is the best way to go about this? It is just a PHP-based website.
View 12 Replies
May 13, 2012
let's say I create a basic windows form with 100 textboxes, and create a variable that starts at 0, and counts up to 100. How could I pseudo-effortlessly have, for example, textbox7, when the variable is at 7, display a piece of text, instead of writing 100 lines of code such as
if vara = 7 then textbox7.text = "hello"
is there a way to utilize something in the nature of LINQ, where you could somehow say,
if vara = 7 then textbox & varA & .text = "hello"
this is just an example, I know it will not work, after paying a small bit of attention to the likeliness and possibility.....
View 5 Replies
Jun 29, 2010
trying to print a Form that I created using a VB.Net console application. My console application creates an instance of a Windows Form and fills it with data. I then created an instance of the Print Form class from the Microsoft Power Pack and am trying to get the form I filled with data to print but no matter what I've tried it just prints the command console window.
Dim firstPage As New FrontPage 'Windows Form
Dim pf As New PrintForm 'Print Form Power Pack
firstPage.Visible = True
[code].....
View 7 Replies
Mar 9, 2009
I would like to utilize classes that inherit the System.Data name space.Specifically, I would like to have classes CarColumn, CarTable, and CarSet derived from DataColumn, DataTable, and Dataset respectively.I would like to be able to add additional properities to each class. As an example this is how I would like to reference items within the classes:
CarSet.CarTable(0).Columns(0).foo
CarSet.CarTable(0).bar
I know that VB.Net is not capable of Multi-Inheritance.
View 1 Replies
May 31, 2011
I have two unrelated databases and I need to pass data back and forth between them. Right now I have created two separate entity models - one for each database - but this is causing issues in my code b/c I have to do a Using nameofcontext / End Using and when I try to then use some of the results from the first section of the code in a second Using nameofcontext / End Using it doesn't like it - b/c I've closed the connection to the first database!
View 1 Replies
Apr 25, 2012
figuring out which multithreading approach to utilize in my current work project. Since I've never written a multithreaded app in my life, this is all confusing and very overwhelming.I've been assigned to take over work on a control application for a piece of test equipment in my companies R&D lab. The program has to be able to send and receive serial communications with three different devices semi-concurrently. The original program was written in VB 6 (no multithreading) and I did plan on just modding it to work with the newer products that need to be tested until it posed a safety hazard when the UI locked up due to excessive serial communications during a test. This resulted in part of the tester hardware blowing up, so I decided to try rewriting the app in VB.Net as I'm more comfortable with it to begin with and because I thought multithreading might help solve this problem.
My plan was to send commands to the other pieces of equipment from the main app thread and spin the receiving ends off into their own threads so that the main thread wouldn't lock up when timing is critical. However, I've yet to come to terms with my options. To add to my problems, I need to display the received communications in separate rich text boxes as they're received while the data from one particular device needs to be parsed by the main program, but only the text that results from the most current test (I need the text box to contain all received data though).
So far, I've investigated delegates, handling the threads myself, and just began looking into BackgroundWorkers. I tried to use delegates earlier today, but couldn't figure out a way to update the text boxes. Would I need to use a call back function to do this since I can't do it in the body of the delegate function itself? The problem I see with handling threads myself is figuring out how to pass data back and forth between the thread and the rest of the program. BackgroundWorkers, as I said, I just started investigating so I'm not sure what to think about them yet.
View 1 Replies
Apr 5, 2012
Background : I have built a VB .NET application on the 4.0 Framework, part of the primary functionality is the built in AxWMPLib.AxWindowsMediaPlayer which allows us to pass a file path as a URL to the player and then play it through the built in media player. My Development Platform is VS 2010 Pro on Windows 7.
View 1 Replies
May 29, 2010
i got a program i ran that says unable to install bla bla microsoft.visualbasic.powerpacks.vs version 9.0.0.0 be installed in the global assembly cache (GAC)first
View 2 Replies
Jul 12, 2010
component id for Visual Basic Power Pack 3.0.I need to determine if or not it is installed on my system for my setup.
View 3 Replies
Jul 12, 2009
I have a simple USB fan that just runs on the power from the USB port. I want to be able to turn of and on the fan from a simple application.
View 1 Replies
Sep 18, 2009
I am looking to record information about the computers power consumption over time, is there any way I could do this using vb, I can get the current voltage from the processor but do not know the current therefore can not work out the wattage. I know of application which do have power consumption recorders but I would like to create my own.
View 1 Replies
Feb 17, 2011
I'm trying to make a program to communicate with a power analyser (wt1600),Yokogawa gives an example programm in vb6.0.Now the problem is if i trie to recieve a message that i get an empty string.6.0..Declare Function TmReceiveBin Lib "tmctl.dll" Alias "TmReceive" (ByVal id As Long, ByRef buf As Any, ByVal blen As Long, ByRef rlen As Long) As Long [code]
View 1 Replies
Apr 23, 2011
I'm trying to make a program to communicate with a power analyser (wt1600),okogawa gives an example programm in vb6.0.Now the problem is if i trie to recieve a message that i get an empty string.6.0 Declare Function TmReceiveBin Lib "tmctl.dll" Alias "TmReceive" (ByVal id As Long, ByRef buf As Any, ByVal blen As Long, ByRef rlen As Long) As Long
View 4 Replies
Nov 16, 2009
I got a new laptop friday, it has windows 7 and its a 64 bit system. I installed visual studio 08. everything was fine until I opened one of my projects.Seems like the powerpacks drawing items no longer exist, there is only a pointer and reort viewer in the group now and all of the items that I have used in the past are keep my app from running.
View 2 Replies
Jan 29, 2012
Im coding a little app for my self that generates me a string. Recently I came to contact with a program that is about 50 times faster then mine just because it's using a graphics card GPU to do its calculations.I'm running 3 5770 and I think that 1 is enough for what I need, but I was wondering if it's possible to do such a thing.how can I use my GPU power to do my calculations? All my calculation is stored in 1 function in case you're wondering.
View 6 Replies
Sep 28, 2011
add notes in the powerpoint slides notes part under the powerpoint slide.using Microsoft.Office.Interop.PowerPoint. I'm using vb.net code.Now it si creating the ppt file and I can add text,comments,image. in the slide . But I need to add notes in the powerpoint slide , in the bottom part of the slide.
Here is the code i'm using for creating slides.
Dim oApp As Microsoft.Office.Interop.PowerPoint.Application
Dim oPres As Microsoft.Office.Interop.PowerPoint.Presentation
Dim oSlide As Microsoft.Office.Interop.PowerPoint.Slide
Dim bAssistantOn As Boolean
[code]....
View 1 Replies
May 10, 2009
I have a project with sql database and customer require to create this function .I mean when user use my program , they can delete, edit... but not still save yet. Suddenly power failure , and i want to recovery database when user turn on program again.
View 4 Replies
Nov 19, 2008
How do I copy data from excel to a power point slide using virtual basic. The idea is to generate automatic profile slides from excel data. I found some code on how to copy chart objects but not data.
View 2 Replies