Over 1 million tech questions and answers.

Very basic visual basic Win32_ScheduledJob help

Q: Very basic visual basic Win32_ScheduledJob help

Hi everyone,

I've been trying to get my feet wet in creating a .vbs file from notepad to do a basic function. I wanted to be able to run .reg files remotely but also interactively. This led me down the path of simply finding an example of a .vbs that would open anything remotely at all. Notepad is what came up with the most results and the Win32_ScheduledJob object appeared to be what was needed.

I researched many different places but this is a decent walkthrough. http://msdn.microsoft.com/en-us/library/windows/desktop/aa394601(v=vs.85).aspx

I grabbed the code below out of the website and changed the date parameters to run in a couple minutes from my current time. I could see the task in scheduled tasks but when the time had come and gone nothing would happen and this is just trying to get it to run locally so far.

strComputer = "."
Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate}!\\" _
& strComputer & "\root\cimv2")
JobID = "Test"
Set objNewJob = objWMIService.Get("Win32_ScheduledJob")
errJobCreate = objNewJob.Create _
("Notepad.exe", "********143000.000000-420", _
True , 1 OR 4 OR 16, ,True, JobId)
If errJobCreate = 0 Then
WScript.Echo "Job created successfully: " & VBNewLine _
& "Notepad.exe scheduled to run repeately at 14.30 (2:30 P.M.) PST" & VBNewLine _
& "on Mon, Wed, and Fri."
Else
WScript.Echo "Job not created. Error code = " & errJobCreate
End If
Now I actually did find something that worked locally but it is not using the Win32_ScheduledJob object which I believe is needed to run things remotely the way I need to. In any case the below will actually open notepad locally.
strComputer = "."
strCommand = "notepad.exe"

Set objWMIService = GetObject("winmgmts:" & "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")
Set objProcess = objWMIService.Get("Win32_Process")

errReturn = objProcess.Create(strCommand, null, null, intProcessID)

If errReturn = 0 Then
Wscript.Echo "notepad.exe was started with a process ID: " & intProcessID
Else
Wscript.Echo "notepad.exe could not be started due to error: " & errReturn
End If

Can anyone help me out please

Read other answers
RELEVANCY SCORE 200
Preferred Solution: Very basic visual basic Win32_ScheduledJob help

I recommend downloading and running Outlook PST Repair. It's a PST repair tool that I've used it in the past to recover emails, contacts, tasks and notes from corrupt Outlook files that are damaged or inaccessible. Supports Outlook 2000, 2002, 2003, 2007, 2010 and 2013.

You can download it direct from this link http://goo.gl/1bjhSi. (This link will automatically start a download of Outlook PST Repair that you can save to your computer.)

RELEVANCY SCORE 100.4

Hello,

I guess my question can be asked in two ways, the short way and the long way.

Here's the short one:

Can you do everything that you can do with VBA with VB?
The long one is:

I need to be able to write programs that conceivably invovle web forms/web services (VB right?), Microsoft SQL Server 2002 (VB again right?) but also Microsft Office applications like Excel and Access (VBA??). Does that mean I need to learn both Visual Basic and Visual Basic for Applications? In my initial research into Visual Basic I've learned that Visual Basic for Applications is a subset of Visual Basic, so shouldn't that mean that Visual Basic, being the parent and more powerful than Visual Basic for Applications, is capable of performing all of the functions that Visual Basic for Applications does?

Thanks for your help,
Bsdslayer
([email protected])
 

A:Solved: Visual Basic vs. Visual Basic for Applications

I do not know VB at all, only some VBA. The main difference is that VBA has words specifically for the applications, a classic exanple would be the
Range("a65536").End(xlUp)
both range and .End(xlUp) are for use in Excel.
 

Read other 3 answers
RELEVANCY SCORE 88.8

can u people just list a few basic commands for visual basic 6 cause i just bought it and would like to know a few basics thnx
 

A:basic visual basic help

There are too many variables and other things you need to know, you just don't throw out commands and thigs work. Get a good book on VB programming and use any of the help or online tutorials that come with VB. There also plenty of forums on the net that are specific to programming.
 

Read other 3 answers
RELEVANCY SCORE 85.6

Hello everyone. Right now im doing a proyect in Visual FoxPro v. 6.5 where i am using a control names MAPX.OCX, this is used to display maps and its cordinates. I have already started to use this control, but im a bit stuck. I read in the manual of the control, but it is made for Visual Basic and C++ and I have very little experience using Visual FoxPro.

The instructions of the VB as the following:

Private sub Globessymbol_click()
Dim top20cities as mapxlib.layer
set top20cities = map1.layers("ciudades")
top20cities.style.symbolbitmapname = "x.bmp"
end sub

The Map1 is the name of an OLE object that identifies the MAPX.OCX and this also has some layers to put the name, icons, lines, etc. This layers are the ones i am having trouble codificating it in Visual FoxPro.

does someone here have any knowledge of how to do this? i'll thank very much the help.
 

Read other answers
RELEVANCY SCORE 84

Hi there
I'm just messing around a bit with Visual Basic - I just want to use EXCEL (mainly) and a couple of really simple Windows stuff. I can't be bothered with C# or .NET -- I'm not (nor intend to be) a professional programmer -- but would like to have a go with some small applications and get to grips with the Basic in EXCEL.

I've got the old Ms Visual Basic 6 disks -- is it worth while messing about with these on W8 (Ms believe it or not is going to support the platform through W8 releases !!!) or should I just bite the bullet and download Visual Studio express which seems a bit overkill also for what I'm really trying to do.

As I'm running a 32 bit version of Office it would seem that most of the VB6 stuff could run quite simply in EXCEL 2010 (32 bit) even though my OS is x-64 --or I could even run it in an XP VM.

Any suggestions as to which is the better way to go -- I just want this for casual use -- not as a professional.

Cheers
jimbo

A:Visual Basic 6 or Visual Studio for EXCEL use

Doesn't Office 2010 still support VBA (Visual Basic for Applications)? I think that is what you mean by Basic in Excel?

As far as supporting VB6 in Win 8, VB6 apps do run in Windows (32 bit), though we've had issues at work with some 3rd party components. I'm pretty sure 64 bit is out for VB6! I couldn't get any VB6 executables to run on my Windows 7-64 box, though they will run just fine in an XP VM.

I think your options are VBA in Excel if you want to stick with classic VB...

Read other 3 answers
RELEVANCY SCORE 81.6

Hello.

im developing an application under visual basic, Now im stoped because I dont know how to setup the parameter about that my application can print automaticly the "PDF file loaded into my application" inmediatly after after a print job is send from another application what ever Word, excell or POS software.

Its possible to make my application can print automaticly after other print job is send to the default printer ?....
 

A:Visual basic

Welcome to TSG Jeismair,
I worked with this issue in 2012.(I did a TSG thread on it). Seems we were not able to autoprint a pdf. The best I could come up with was to open the PDF so the user could then manually print. He was only wanting to print 1 page. So your request may be different.
 

Read other 1 answers
RELEVANCY SCORE 81.6

I have heard of chipmunk but that changes code around a bit. I am looking for a way to run some time of shell or something like that so i can program in VB on the mac operating system. who knows what to do
 

A:visual basic on MAC

The closest thing I have seen to VB for the Mac is REAL Basic. I haven't even messed with a Mac in quite a while so I'm not sure how easy it is to get ahold of. From what little programming I did on the Mac, the syntax and code is much the same.
I hope this is what you're looking for and that it helps you out some. I really liked REAL Basic but I wasn't very experienced when I used it so I'm not certain about it's limitations, etc.
 

Read other 3 answers
RELEVANCY SCORE 81.6

just got this program and dont no how to use it. is there anywhere on the internet with an easy to learn guide of how to do things with it?
 

A:visual basic 6

Read other 9 answers
RELEVANCY SCORE 81.6

Hello,

I have a couple of questions about visual basic,

I have used vb before long time ago, now i look around and i see stuff like visual basic.net, visual studio, etc...
I looked at a software store on the internet to see the price of visual basic, and i thought there would be like visual basic version 7, 8 9... like it used to be
But there isn't any, could someone explain to me the difference between these different visual ___ softwares? especially .net and studio

Also, how old is visual basic 5 now? How outdated is this program? Like would i be able to still use this to make a powerful program?
 

A:Visual basic, which one!?!?

Read other 13 answers
RELEVANCY SCORE 81.6

Here is the story. My dad's friends called this morning, and told me he had signed up for online courses. He said he only pays $25 a month, and gets all he wants. Suprisingly, he gave me the site, and his user name and password. Well, I looked through what they had, and I decided I want to learn visual basic. How much is the program to write in VB cost? Where can I get it? Help is appreciated.
 

A:Visual Basic

Ok, I feel a little stupid now Checked out VB, looks nice, I think I'm going to stick to learning it
 

Read other 2 answers
RELEVANCY SCORE 81.6

hi all im new to programming and am interested in learning visual basic or c++ can anyone think of a good start for me to learn?
 

A:new to visual basic

I say start C++, you can always go back to VB, but VB is kind of a handicapper for a first language IMO.
 

Read other 1 answers
RELEVANCY SCORE 81.6

Does anyone know where I can learn visual basic? I've read several books on it and they have tought me the basics (variables, data types, arrays, controls, etc) But I want to learn how to take my programming to the next step.

I want to be able to create programs that can communicate across the internet/local network, maybe some visual basic gaming. Anything.....
I'm really eager to learn visual basic, as well as other programming languages.

Please Post

Thanks!!
 

Read other answers
RELEVANCY SCORE 81.6

hey everyone.... im going to take some programming classes this semester and i can take c# and visual basic. my question is would it be a bad idea to take the classes together in the same semester? I ask because one of my previous teachers recommended not to take java and C# at the same time cause they have very similar commands. i looked at some visual basic.net and C# and they seemed really different but still would like to get a better opinion.
 

A:C# vs. Visual Basic .Net

ZaUcY said:





hey everyone.... im going to take some programming classes this semester and i can take c# and visual basic. my question is would it be a bad idea to take the classes together in the same semester? I ask because one of my previous teachers recommended not to take java and C# at the same time cause they have very similar commands. i looked at some visual basic.net and C# and they seemed really different but still would like to get a better opinion.Click to expand...

Well C# and Java is in high demand so you should take both of these classes. You can also take VB also. VB is easy to learn so you might want too add this course also.
 

Read other 4 answers
RELEVANCY SCORE 81.6

http://www.vbtutor.net/vbtutor.html

Where can i download the program that is discribed in this tutoral. I have googled it but cant find a suficent download. And also if i can get it for free?
 

A:Visual Basic

Read other 13 answers
RELEVANCY SCORE 81.6

This is probably a really simple question, but I'm just starting out with VB.. What I want to know is how to launch an external program from within my program, for example when I click a button launch say explorer?
 

A:Visual Basic 6

To start Calculator in Windows 95 via VB code:

Private Sub Command1_Click()
Shell "C:\Windows\Explorer.exe", vbNormalFocus
End Sub

That will start explorer when you click the button. You can change the second argument (vbNormalFocus) if you want it maximized or minimized or whatever. Also, of course, you need to make sure the path is correct.
 

Read other 2 answers
RELEVANCY SCORE 81.6

I need to pass an array of values to a select statement in VB6 but need help with the syntax

cmnFileGet.CancelError = True
cmnFileGet.FileName = txtFilePath.Text
cmnFileGet.Filter = "*.txtDate"

cmnFileGet.FileName = txtFilePath.Text

is the line of code that is currently passing a single file to the select statement. I want all files that qualify for the filter "*.txtDate"

txtDate is a text box the end user fills in. For example I want all files that qualify for "*.7/30" if the end user has entered 7/30 into the text box.

The syntax in the case statement must somehow cause the program to go back for the next value in the array once all the other code in the case statement is executed.

Any help will be greatfully appreciated.
 

A:Visual Basic Fun

If I understand your question, you would want to do something like this:

cmnFileGet.Filter = "*." & txtDate.Text

That would limit the dialog box to files with an extention "7/09" in your example. Again, I'm not sure I understand the question. I appologize if I'm way off here, but let me know if I am...

As far as the array part of the question goes, if your array was called Dates() where each member of Dates() was a date entered by the user:

for x = 1 to UBound(Dates)
Select Case Dates(x)
case "7/09"
...
case "7/10"
...
case else
...
End Select
Next x
 

Read other 1 answers
RELEVANCY SCORE 81.6

Hi, can anyone show me code that i can apply to a button in Visual Basic to open up a program, i am having trouble... Thanks in advance (Y)
 

A:Visual Basic

http://msdn2.microsoft.com/en-us/library/sxz296wz(VS.80).aspx
 

Read other 2 answers
RELEVANCY SCORE 81.6

hey. prolly shudnt paste stuff twice but im told this really isnt that hard, im just way out of time... and desperate.

at 6:00 i have to submit an interface game for a major project... ive prolly messed this up, but im still hoping.....

anyway, i have a circuit board with 12 LEDs (6 red, 6 green) and 12 buttons. its basically a really small version of a roulette table... and i have to write a VB program to control this.... so you click a button to start, pick one of the numbered lights with a button, and then the game picks one of the random 12 lights. If it is the same then you win... a 1 in 12 chance game

does that sound simple to anyone? cos i just cant learn it and produce it in time and im facing failure.

id appreciate any help so much, even if you just know someone else who mite know...

thanks

B
 

A:please someone who knows visual basic! PLEASE!

Hi, Brad.
I'm really sorry to say that it's highly unlikely that you'll get anyone to help you out. Most people will not assist you with homework, much less when you have not taken the responsibility to do it on time.

I'm sorry, but please don't hold out hope for it. I have to lock this thread, and I'm gonna delete your other duplicate.
 

Read other 1 answers
RELEVANCY SCORE 81.6

Tech Support Guy System Info Utility version 1.0.0.4
OS Version: Microsoft Windows 10 Home, 64 bit
Processor: Intel(R) Core(TM) i3-5020U CPU @ 2.20GHz, Intel64 Family 6 Model 61 Stepping 4
Processor Count: 4
RAM: 8097 Mb
Graphics Card: Intel(R) HD Graphics 5500, 1024 Mb
Hard Drives: C: 419 GB (265 GB Free); D: 24 GB (24 GB Free); F: 1863 GB (0 GB Free);
Motherboard: LENOVO, Lenovo Edge 15
Antivirus: Avast Antivirus, Enabled and Updated

See screenshot. Do I need all these Visual Basic files? I do not use it. Or will they be needed by the system for some actions I will do?
thanks, Frank
 

Read other answers
RELEVANCY SCORE 81.6

I use VB 2008 Express Edition, and I cannot get my multiple form application to work correctly. I am trying to get frmNext to show up after frmInput is done. So, in frmInput's button click event, I type in strName = TextBox1.Text, frmNext.Show(), and Unload frmInput. Unload does not work in vb 2008 anymore I guess, because it gave me an error. So, I typed in Me.Close(), which closes the application altogether. So, I decided to go into frmNext's form load event and type in Me.Text = strName and frmInput.Close(), which causes the entire program to close. I need help getting frmNext to show up and frmInput to close down.
 

A:Visual Basic Help

Read other 6 answers
RELEVANCY SCORE 81.6

Hello,

Please need help urgently, I am trying to send(FTP) a file via visual basic 6.0 to a server, also the user name and password need to be included in the application too.

Thanks,
 

A:Visual basic and FTP

Use the Microsoft Internet Transfer Control. You can find examples of its usage at http://www.pscode.com. Search for FTP and you should get a ton of results.
 

Read other 1 answers
RELEVANCY SCORE 81.6

first post so please go easy on me -

I have written a macro in VB within Excel to send a saved copy of the wokbook as an attachment in an email to predetermined addresses, this part is so far fine and working okay, however i now want to set the importance of the email to high when a certain priority is selected in the spreadsheet anyu help would be great, this is what i have so far...

Sub email()
On Error GoTo NotSent
ActiveWorkbook.SendMail Recipients:=Array("[email protected]"), Subject:="New RSPR Request"

MsgBox "Do Not Save Any Changes To This Document. Any problems contact EATF x54512."
Exit Sub

NotSent:
MsgBox Prompt:="This RSPR Request has not been sent. To send the request select Yes when the file has loaded."
MsgBox "Do Not Save Any Changes To This Document. Any problems contact EATF x54512."
End Sub

Thanks
 

Read other answers
RELEVANCY SCORE 81.6

I just need to know two things, how to get the current date, the second is the program that Im writing is linked to a Microsoft Access Database, I need a way to print the contents of the database through the program, anyone happen to know any code for that?
 

A:How Do I?... In Visual Basic 6

Read other 15 answers
RELEVANCY SCORE 81.6

I want to start learning visual basic. I have office 2000, I was told to press alt + F11 to go to visual basic. I have done this and it brings me to the visual basic screen, when I hit the help menu it say this is not installed so I put my office 2000 disk in the cdrom to install it and it cant find it. Do I actually have visual basic and its help files or do I need to purchase them seperate from office 2000.
Also does anybody no any good site that I can go to for learning. I am a complete green horn when it comes to visual basic, so I have to start right at the begining. I don't even no where to start entering the code or if I have to complile it or how to complile it. So thats what type of site Im looking for.

Thanx
 

A:visual basic

Read other 8 answers
RELEVANCY SCORE 81.6

I just installed Visual Basic C++ 2010 Express and I was wondering if I could uninstall older versions. It's about the following applications:
Microsoft C++ 2005 Redistributable
Microsoft C++ 2008 Redistributable x86 9.0.30729.4148
Both have one security update as well. So is it safe to remove them or will this cause problems?

A:Visual Basic C++

Try the uninstall and see.

Create system restore point first -
START | type create | "create a restore point"

Uninstall the older C++ versions. If problems occur, restore the system using the restore point created -
START | type rstrui

Regards. . .

jcgriff2

`

Read other 2 answers
RELEVANCY SCORE 81.6

who's got some good links to learn either or both of them. I know there's a few of you out there with good links.

It's a simple request *evil laughter*
 

A:Visual Basic .net and or C#

Read other 11 answers
RELEVANCY SCORE 81.6

Hello,

I am looking for help with a macro. Here's the basics (what I want it to do):

-The macro only works out of one workbook, with 3 worksheets, WIP_Watch Old, WIP_Watch New, and Stocked. Column headings for these worksheets include order number, part number, quantity, description, etc... but I'm only concerned with order number

-I want the macro to find and compare order numbers from WIP_Watch Old to WIP_Watch New. When a match is found, nothing needs to happen but when an order from WIP_Watch Old is NOT found on WIP_Watch New, then I want to copy the row containing the order number (columns A through W) from WIP_Watch Old.

-Next, I want to go to the worksheet called Stocked and insert a row at the top (under the column headings, so row 2), and paste the information copied from WIP_Watch Old. I then want to go to column W of this row and insert the date the copy is made.

-I need the above process to loop through the entire list of order numbers.

I have a macro started, but I've gotten stuck. Anyone think they can offer some help? The macro (called ToStock) is below.

Thanks.

Sub ToStock()

Dim Order As String 'Order Number
Dim OrderCol As Integer 'PO Column Number
Dim PrevRow As Integer 'Row number of the previous file
Dim CurrRow As Integer 'Row number of the current file
'Find Column locations in file
Cells(1, 1).Select
For i = 1 To 50
ColHeaders = Cells(1, i)
Select Case ColHeaders
Case "Order"
OrderCol = i
End ... Read more

A:Visual Basic Help

Post your sample workbook and I'll write the code for you.

Regards,
Rollin
 

Read other 1 answers
RELEVANCY SCORE 81.6

Slowly starting to restore all my programs that ran on WinXP.
Seems most of the *.exe programs are running but a few that didn't run I tried to reconstruct them and it appears I need some more dll's. I can't remember if there were 2 CD's that came with VB6 PE. Before I start tearing my computer room apart to find a 2nd disk I thought I would ask here about a 2nd disk.

A:Visual basic 6 & W7 ??

  
Quote: Originally Posted by roehrle


Slowly starting to restore all my programs that ran on WinXP.
Seems most of the *.exe programs are running but a few that didn't run I tried to reconstruct them and it appears I need some more dll's. I can't remember if there were 2 CD's that came with VB6 PE. Before I start tearing my computer room apart to find a 2nd disk I thought I would ask here about a 2nd disk.


If you are trying to install the VB6 IDE on a 64-bit version of Windows 7, you are probably out of luck (short of creating a 32-bit virtual machine and installing VB to that image). Here's a link that might help - Support Statement for Visual Basic 6.0 on Windows Vista and Windows Server 2008

PS - the download info from MSDN indicates that the VB6 Enterprise Edition is definitely on 2 disks.

Read other 6 answers
RELEVANCY SCORE 81.6

Where can I download Visual Basic 6
 

A:Visual Basic

Nowhere. You have to buy it. It's an old version, so you might have trouble finding it. Check eBay.
 

Read other 1 answers
RELEVANCY SCORE 81.6

Well I think I'm definately going to start learning more about IT and make it my profession but I wanted to start learning some Visual Basic but I see that the pricetag is pretty hefty but yet Express is free. Is Express even really the same or just elements of VB 6? Just curious also anyone have any recommendations on the order of learning types of code? I was thinking to go with C++, I know quite a bit on HTML now, and Visual Basic to start and then moving onto Java, XML, SQL, and .net. Any suggestions on the VB prices(ebay is expensive too, I looked) or a partial pack and coding let me know.
 

A:Anyone know or have Visual Basic 6?

FWIW, if you're serious about learning more about programming, VB is probably not the language to start with. Basic allows too many sloppy programming practices. I'd consider just starting with C++, it's the major language of most larger applications are programmed in nowadays.
 

Read other 1 answers
RELEVANCY SCORE 81.6

I am completely new to this but I would like to start writing small little programs... just for my self. For example maybe a little reminder program, no fancy graphics. I would like to be able to take this and run it one any computer with windows without having to download other software to run this. Is visual basic the way to go, if so what software do I need and is there any good online tutorials for this.

PS Years ago I took a course in BASIC computer programing and did well at it... will this help me now days?

thanx
 

A:visual basic

Read other 7 answers
RELEVANCY SCORE 81.6

ok im new at this stuff
can anyone please tell me if visual basic is a freeware or shareware or do i have to pay for it
if it is a shareware were can i download it please i really need this
Thanks in advance
and i googled it too
 

A:Visual Basic

Read other 6 answers
RELEVANCY SCORE 81.6

Hello,

I was interested in programming and I was wondering if Visual Basic would be a good language to learn.

Thanks,

Mike
 

A:Visual Basic 6

Read other 13 answers
RELEVANCY SCORE 81.6

I need some help with my Visual Basic class. I am a student, but have done all of the coding, so no coding is needed. I just need some troubleshooting with the coding itself. I cannot get the correct alignment I need in my listboxes. Once you see the coding, you will understand what it is that I need, especially if you are decent in VB. In the first and second listboxes, the content is not properly aligned. I need the text to be perfectly aligned from top to bottom.

I have included the zipped file for those who wish to help to view. You will need Visual Basic 2008 Express Edition or Higher, I think.
 

Read other answers
RELEVANCY SCORE 81.6

Hello I am thinking of getting into visual basic but it's too expensive for me (yes I'm a tight little ****) but does anyone know of a freeware clone of it at all. thanks.
 

A:Visual basic

Excel had it's own version of VB, as far as the coding goes it's all the same, you can even run class modules etc from it. A good starting point to learn VB coding. Obviously you can't make executables with it though.
 

Read other 14 answers
RELEVANCY SCORE 81.6

I've got some time on my hands and thought to teach myself VB. Can someone give me a quick differentiation between VB6 and VB.NET? Is the latter just the more recent version, or does it include internet controls?

Thanks
Pradhan
 

A:Visual Basic.NET vs Visual Basic

Read other 6 answers
RELEVANCY SCORE 81.6

do any of you guys know of any sites out there that offers visual basic help? i'm currently taking the second half of the course. right now the programming is probably simple to anyone who knows VB, but i'm having trouble w/ a couple my projects that are due. anyone who knows VB and wants to help, feel free to post here and i'll tell you the problem i'm having trouble w/ and the trouble's i'm having w/ it. or if you know a good site for help, post that here too. thanks a lot.

calibretto
 

A:visual basic help

Read other 8 answers
RELEVANCY SCORE 81.6

I really wanna learn how to make these two work together. Can anyone tell me where I can learn to make VB work with the web in many different ways?
 

A:Visual Basic and the web?

Read other 7 answers
RELEVANCY SCORE 81.6

I am writing a simple little program for school, and it turns out that it is not as simple as I thought it would be. Here is my problem:
I have a text box named txtPass, and I need to make the contents of the text property invisible. I was told to declare the the global variable of sPass and have it capture all the characters of the txtPass text box. I'm probably making this sound harder than it is, but in other words, i just need the password to be invisible when it is typed into the text box. Anyone know how to do this?
 

A:Visual Basic Help

Read other 10 answers
RELEVANCY SCORE 81.6

A stupit question to most of you but can some one tell me step by step how to program in a clock know basic fetures just the programing side i am having trouble with chears!
 

A:New To Visual Basic (VB)

Read other 9 answers
RELEVANCY SCORE 81.6

how do u make things transparent in Visual Basic?

becuase when i make things transparent in it the egdes have 2 be harp, you can have glowing edges.

A:Visual Basic

Does this help?

http://www.codeguru.com/vb/gen/vb_gr...cle.php/c6979/

Read other 4 answers
RELEVANCY SCORE 81.6

I am looking to learn one of these languages.

Basically I want to create simple windows applications. The first application I want to create will be a simple mp3 player with a playlist.

I am very good with PHP and web development programming, but am bored of it and want to move on to creating simple but very useful windows applications with GUI's that use the default windows buttons etc.

Would Visual Basic be better than C++?

What are some disadvantages of using Visual Basic in this day and age?
 

A:Visual Basic or C++?

Basically I want to create simple windows applications. The first application I want to create will be a simple mp3 player with a playlist.Click to expand...

Thats not a "simple application". Also, iirc, being able to support mp3 files requires the sdk which costs money.

If you are just wanting to create simple windows applications though, I would probably go with Visual Basic over C++. Anything more advance (or portability) then I would go with C++...it all depends what your goals are.
 

Read other 2 answers
RELEVANCY SCORE 81.6

Is there a freeware (opensource) version of Visual Basic? There are a boatload of good powerpoint templates and games that require VB but my school does not have it. My administrator is hesitant to buy something that she doesn't understand, so I am trying to find a freeware version of it to show her and the rest of the teachers how useful it can be.

A:Visual Basic and Win 7

Delphi Open Source

Read other 1 answers
RELEVANCY SCORE 81.6

Hi everyone,

I have a relatively simple question. I have a ms access database app written in vb6. I have a function in the app that allows the user to edit a record. The way i'm currently working this is by using the adodata.recordset.addnew method which writes an new record to the database and then i'm going through using SQL and deleting the old record. I was wondering if there is, and i'm sure there is, a way to bring up a record and edit it and save it as opposed to writing a whole new record and deleting the old one.

Thanks to all who read!
 

A:visual basic 6.0 ADO

G-Man:

As you are using ADO then you have the ability to Update a record:
Code:

With ADOData.Recordset
.Fields("MyField1").Value = "My New Value"
.Fields("MyField2").Value = 400
.Update
End With

This updates the current record with the new field values. Now this appears very simple (and it can be) however you do generally need to consider a few things. Firstly you need to ensure that the recordset (table) that you are updating has a primary key. If you don't then you will either get spurious results or you will get an error message that may say something like "insufficient base information for updating".

I would strongly recommend that you avoid using the ADO Data control and create your recordset(s) in code as this gives you much more flexibility in terms of setting the cursortype/locktype of the recordset which governs whether it is updatable etc.

Another method that you can employ is to use a standard SQL statement to perform the update (though here again a primary key is strongly recommended to avoid odd results) and do something like this:
Code:

ADOData.ActiveConnection.Execute "Update MyTable Set MyField1 = 'My New Value', MyField2 = 400 Where MyKeyField = 123456"
 

Read other 2 answers
RELEVANCY SCORE 81.6

I am having a go at Visual Basic Express 2008 and looking for books or websites for training.
One thing has me confused what is the difference between Visual Basic Express 2008 and Visual Studio 2008?
I would also like to know of any good websites for training.

Thanks
jack

A:Visual Basic

This guy has done a really good Youtube series about VB 2010.

Read other 2 answers
RELEVANCY SCORE 81.6

Here is my code...The only error I am getting is a identifier expected after the "b" on Private Sub at the very top. Can anyone help me out??

Private Sub
btnFactorial_Click( _
ByVal eventSender As System.Object, _
ByVal eventArgs As System.EventArgs) _
Handles btnFactorial.Click
Dim x As Double
Dim Fact As Double

lblOutput.Text = "To determine the Factorial of a number. " _
& "Please enter a number less than 10."
& "Then, click on the Factorial Button to view the results."

x = Val(txtInput.Text)

Fact = Factorial(x)
lblOutput.Text = ("")
lblOutput.Text = (" " & x & "! is " & Fact)
End Sub

Private Function Factorial(ByRef x As Double) As Double
If x <= 1 Then
Factorial = 1
Else
Factorial = x * Factorial(x - 1)
End If

End Function

End Class
 

Read other answers