|
Hello,
Thank you for your attention.
I can understand your surprise, and I've been surprised myself to get an answer after such a long time !
First, I've never been a software developer, I'm just an aerospatial engineer retired for a long time.
When retired, I begun to write applications for my personal use. It was under XP. I used first vbscript, then Excel/VBA and I discovered that it's not possible to write big real-time applications with them. So I got a VB6 license and I wrote successfuly some rather complex applications with it.
I also discovered that, even if these languages are all "VB" ones, you have each time to learn a new syntax and a new way of writing. That's the reason for what I didn't want to migrate to VB.net or other language.
Then, it was vista, win7, win10... I succeeded to reinstall VB6 under win10, and to run my programs with some minor corrections.
BUT, doing that, I lost the integrated help... So I need to use the on-line MSDN documentation (but µsoft doesn't continue to support VB6 and all the examples I can find are in VB.net or C++). Sometimes it helps me, sometimes not !
So I finally have to search in the web forums the answers to my questions.
Doing that, I discovered in the original post the existence of the MSVidCtl library and the possibility to use it in VB6. I think it can bring me a solution to my need to retrieve the power status of my monitor.
I finally succeeded to make it appear in my VB6 objects list, and when I declare : "Dim display as IMSVidDevice" i get no error.
When writing "ret = display. ", the editor proposes effectively (the wanted method) "Power". Now, for the different reasons above, I can't successfuly use the desired function.
Neither "ret = display.Power" nor "ret = display.Power (p)" works correctly, and with no help I finally will lose my last hairs (and perhaps my wife !!..)
So, if somebody could help me, it would be very very kind of him.
|
|
|
|
|
I have a deployment project in the same solution with my main project.
I add the primary output from the main project to the deployment project.
When I build the deployment project it does not include the most current build of the main project's .exe
I cannot figure out which build of the .exe the deployment project is using.
Can anyone provide any way I can tell the deployment project which build of the main project to use?
Than you
|
|
|
|
|
Clean the project before you rebuild it.
|
|
|
|
|
Thanks, that helps.
Can I ask one more question?
What is the setting that allows the user to update the application even if it is in the same version without having to first uninstall?
Thanks
|
|
|
|
|
I believe it's a combination of the setup project's UpgradeCode property and Version property.
|
|
|
|
|
can anyone provide me with source code to connect my phone through usb port to achieve the following:to be able to receive and read them on my laptop,to send message through my laptop to the recepient.this code has to be in visual basic 6.0
|
|
|
|
|
sikadiwe wrote: can anyone provide me with source code to connect my phone through usb port to achieve the following
No. We don't supply you with source code for anything. We'll help with any specific problems you have writing your own code, but we're not going to do your work for you.
|
|
|
|
|
Try rentacoder.com
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
Why on earth would anyone still use VB6 ? It's so dead that anything that was still going to be in use this far out, should have been converted to a real language, long ago.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
I have completed a small project, and I want to learn, how to access that program by internet from different place. Iam also a one of the LAN user.
Which is the best way to do that?
Any Ideas for me?
Thanks
|
|
|
|
|
Buy a copy of GoToMyPC.
Henry Minute
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
|
|
|
|
|
I may be new to these forums, but I'm pretty sure that you will struggle to get help with that question. Even if your own intentions are honest, I'm not calling into question the legitimacy of your own project. But others that view these boards might not have the same things in mind.
|
|
|
|
|
You're going to have to precisely define what you mean by "access that program by internet". What does the app do?? Where do you want the code to run?? Do you want it to run on the server and just expose a user interface acrossed the internet, or do you want to download the app to the local machine and run it there??
|
|
|
|
|
Hi Dave,
By the help of you & mr.Johan I have completed this small project. But I have 3 more users located in different place. Not in LAN. Now my intention is, those users has to connect with my server, and through this program, they have to give entries and feed their data's.
For that what I have to do? Can you provide any samples to learn?
ThankYou
|
|
|
|
|
No need to download anything, just they have to connect with my server & run my program.
ThankYou
|
|
|
|
|
And what sort of services does this server expose? Is it a file server, web server, SQL Server, ftp server, ... What does this server host that the clients need to connect to??
If your app is already installed on these remote clients and you need them to connect to a SQL Server on your end, you need to expose the SQL Server using different methods other than normal access. Exposing an SQL Server directly to the internet is as about as safe as dousing it in gasoline and lighting a match.
|
|
|
|
|
Hi all,
I am newbie in vb.net and I have a simply (I think) quenstion.
I have tree Pictures Boxes and I want when the user clicks the button the first time the PictureBox1 to be filled and when the user clicks for the second time the PictureBox2 to be filled and so on.
I have succeed to doing that using if statement and I was wondering if I could do that by using a loop.
Thank you in advance
|
|
|
|
|
You could, but why would you want to?
If the reason is that you want a lot more pictureboxes than just 3, then it will be easier to create and place a new picturebox each time the user clicks the button.
My advice is free, and you may get what you paid for.
|
|
|
|
|
Why would you need a loop?
If you wanted to fill all three pictureboxes every time the button was clicked, a loop might be useful, but not for individual fills.
Henry Minute
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
|
|
|
|
|
I was thinking to avoid to write the same thing three times.
For example I am imaging that it could like the following:
for (i=0, i<3, i++)
PictureBoxi.Image = CropBitmap(GetWindowPicture(PictureBox2.Handle.ToInt32), 100, 100, 50, 50)
so the first time the result would be
PictureBox1.Image = CropBitmap(GetWindowPicture(PictureBox2.Handle.ToInt32), 100, 100, 50, 50)
the second
PictureBox2.Image = CropBitmap(GetWindowPicture(PictureBox2.Handle.ToInt32), 100, 100, 50, 50)
and the third time
the second
PictureBox3.Image = CropBitmap(GetWindowPicture(PictureBox2.Handle.ToInt32), 100, 100, 50, 50)
May I accomplised that in VB.NET, to create the full name of the Picturebox using a variable?
|
|
|
|
|
athinaix wrote: to create the full name of the Picturebox using a variable
I'm afraid not.
You could put the pictureboxes into a collection and get at each like:
Dim activePicBox AS PictureBox = myPBCollection(i)
Henry Minute
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
|
|
|
|
|
May be like this(in C#):
((PictureBox)(this.Controls["PictureBox"+i.ToString()]).Image
Not sure if doing things like these are recommended.
It's not necessary to be so stupid, either, but people manage it. - Christian Graus, 2009 AD
|
|
|
|
|
I am looking to retrieve a value from an existing file and copy it to a new one, for the sake of a header. The value is a date. I am using a mix of old and new files, some have the information I need and it has to be copied to the new file, some older files don't and new data will need to be written in it's place to the header.
The question is, can I use ->
If ('Old Chicken' Is Nothing) Then
'Fill the freezer'
Else
'Put Old Chicken In New Freezer'
End If
Or would it be sesible/is it acceptable to ->
Try
'To put old chicken in new freezer'
Catch As Exception
'Call it quits and just fill the freezer'
End Try
Any help would be greatly appreciated.
|
|
|
|
|
The if/else approach. What if you get an exception in the try block? (Not because Old chicken is nothing but some other reason)
It's not necessary to be so stupid, either, but people manage it. - Christian Graus, 2009 AD
|
|
|
|
|
Good good. I'm pretty new to programming and VB especially. I'm just worried that the if/else would just throw an error if the object I was trying to acquire did not exist at all and wasn't just empty. Thus the code would exit anyway, the try/catch would solve this. But yes, I take your point, if there was any other error in this snippet, it would be rather sidelined.
|
|
|
|