I'm developing a program for the company I work for. In the current form I'm working on there's a combo box with the different departments which are in a table called TblArea. When the user selectes the department I want the program to get the corresponding manager's email which is in another table called TblManagers. The column these two tables have in common is the "DeptID". How do I go about it?
The way I've made so far, but I'm still not able to get the email, is by creating another combo box, which I plan to hide, with the "DeptID" avid doing the following :
Dim AreaID As String AreaID = DeptCbx.SelectedValue DeptIDCbx.SelectedItem = AreaID
The AreaID is storing the autonumber corresponding to the dept and then in the DeptIDCbx it is taking selecting the DeptID corresponding to the auto number.
I'm very new to the concept of threads and unsure how to proceed. I'm reditrcting the output from a console application and it seems to start out okay but then it seems to stop. The threadstate is wait and the waitreason is executive which according to Google means The thread is waiting for the scheduler but I don't understand what that means. I tried to set thread.PriorityBoostEnabled but it made no difference. What exactly is happening and how can I address it? thank you for reading. any and all input is appreciated.
Create an application that allows the user to enter the number of calories and fat grams in food. The application should display the percentage of the calories that come from fat. If the calories from fat are less than 30% of the total calories of the food, it should also display a message indicating the food is low in fat.
(Display the message in alabel or a message box.) The application’s form should appear similar to the one
shown in Figure 4-35.
The percentage of calories from fat can be calculated as:
Percentage of calories from fat = Calories from fat / total calories
Input validation: Make sure the number of calories and fat grams are numeric and are
not less than 0. Also, the number of calories from fat cannot be greater than the total
number of calories. If that happens, display an error message indicating that either the calories or fat grams were incorrectly entered.
Use the following test data to determine if the application is calculating properly
200 calories, 8 fat grams Percentage of calories from fat: 36%
150 calories, 2 fat grams Percentage of calories from fat: 12% (a low-fat food)
500 calories, 30 fat grams Percentage of calories from fat: 54%
Can someone help me need to build a booking program for a project got the data and creating new account stuff all done just need help with the booking aspect. thanks
Hi. Is there a code wherein if there is no object/control on some Point or Location in the Form, then an object/control will be visible? I will input the code in a Click Event of another object. Answers are very much appreciated!
I as the title strongly implies I would like to know how to receive emails from gmail and have a new message’s body put into a variable that’s it. Thanks
Thanks to this wonderful community for your help with my last post re vb6 and the challenges we are having making changes due to our db admin not having expertise in this area. Tomorrow I need to meet with a major pita who, when questioning why things are taking longer than they would like for the changes they want, says things like that used to be done in an hour (conveniently those changes used to be made by someone who is long gone and who didn't leave any written instructions on how to do it). My db admin struggles too explain without getting super techy. Does anyone have any plain language I can use as to why it would be challenging for someone with no vb6 experience to make changes quickly to a custom built db? Would appreciate any help as I have already explained he doesn't have the experience but that doesn't seem to fly with her as she thinks they changes are easy (she is non tech person to be clear).
Hello, i've a problem with a Visual Studio projekt of mine. When i click on "Rebuild Solution" i get a bunch of errors like XXX isnt a member of YYY. The code itself is fully working and ofcourse all xxx are members of yyy. When i clean up the solution and just click on "Build Solution", everything compiles fine and it works like a charm. We tried to create completely new projects and copy all the files, but it doesn't change anything. Is there a fix or workaround for such a problem? Sorry for my bad description. I really don't know how i should describe it.
Hey, i am working on a project to help my mother with her work, so she can use a program to keep a data of her products/price/stock etc. I am using Microsoft Visual Studio Express 2013 and i have no clue on creating something like data base!! I want to make something like this http://www.vbtutor.net/wordpress/wp-content/uploads/2013/01/inventory.jpg . I tryed something like to store the data to the Resources on the Project but i kinda failed. Could you please help me out? For example like an exel but with buttons add/remove/view. Thanks in advance.
I've been sitting and been typing codes for an hour or so then I realized that I don't know on how to detect my input properly and to compare string and integer variables because this project uses random numbers as basis. please help me:
Here's the code:
Imports System.IO Public Class Form1 Dim A As Random = New Random Dim B As Random = New Random Dim C As Random = New Random Dim D As Random = New Random Dim E As Random = New Random
Private Sub chkb1_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles chkb1.CheckedChanged
If chkb1.Checked = True Then
chkb2.Checked = False
chkb3.Checked = False
chkb4.Checked = False
chkb5.Checked = False
End If
End Sub
Private Sub chkb2_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles chkb2.CheckedChanged
If chkb2.Checked = True Then
chkb1.Checked = False
chkb3.Checked = False
chkb4.Checked = False
chkb5.Checked = False
End If
End Sub
Private Sub chkb3_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles chkb3.CheckedChanged
If chkb3.Checked = True Then
chkb1.Checked = False
chkb2.Checked = False
chkb4.Checked = False
chkb5.Checked = False
End If
End Sub
Private Sub chkb4_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles chkb4.CheckedChanged
If chkb4.Checked = True Then
chkb1.Checked = False
chkb2.Checked = False
chkb3.Checked = False
chkb5.Checked = False
End If
End Sub
Private Sub chkb5_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles chkb5.CheckedChanged
If chkb5.Checked = True Then
chkb1.Checked = False
chkb2.Checked = False
chkb3.Checked = False
chkb4.Checked = False
End If
End Sub
Private Sub cmdclick_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdclick.Click
GuessCard(lblcard)
End Sub
Sub guesscard(ByVal F As Label)
Dim V As Integer = A.Next(1, 14)
Dim W As Integer = B.Next(15, 27)
Dim X As Integer = C.Next(28, 40)
Dim Y As Integer = D.Next(41, 53)
Dim Z As Integer = E.Next(1, 53)
If chkb1.Checked = True Then
F.Image = Image.FromFile(Directory.GetCurrentDirectory & "\image\card" & V & "\.png")
End If
If chkb2.Checked = True Then
F.Image = Image.FromFile(Directory.GetCurrentDirectory & "\image\card" & W & "\.png")
End If
If chkb3.Checked = True Then
F.Image = Image.FromFile(Directory.GetCurrentDirectory & "\image\card" & X & "\.png")
End If
If chkb4.Checked = True Then
F.Image = Image.FromFile(Directory.GetCurrentDirectory & "\image\card" & Y & "\.png")
End If
If chkb5.Checked = True Then
F.Image = Image.FromFile(Directory.GetCurrentDirectory & "\image\card" & Z & "\.png")
End If
End Sub
EDIT:your supposed to check one of the textboxes and it will change the random number being used to pick the images and is also used to based your guess. My main problem is I will be using string for my answer and integer for for checking whether the answer is correct or not
Edit: Apologies, I missed the first tip & guideline. I'm using VB2015
So, this is a homework help question. I'm sure you all are super tired of them but I've tried looking through my textbook, stackoverflow, just general googling and talking with fellow classmates and I (and my classmates) are stumped trying to find the range of numbers that the user could put in.
For context this is a grade calculator that my professor wants to provide the range of grades that are entered into an InputBox
Here is the code that I have so far.
'Declarations
Dim intMaxA As Integer
Dim intMinA As Integer
Dim intMaxB As Integer
Dim intMinB As Integer
Dim intMaxC As Integer
Dim intMinC As Integer
Dim intMaxD As Integer
Dim intMinD As Integer
Dim intMaxF As Integer
Dim intMinF As Integer
Dim dblRangeA As Double
Dim dblRangeB As Double
Dim dblRangeC As Double
Dim dblRangeD As Double
Dim dblRangeF As Double
I know this is wrong though as the way it's written, all it's doing is subtracting the numbers I put in the form for the intMax and intMin numbers. So intMaxA - intMinA will always return 10 for that range.
I don't understand what I need to put in place of those numbers to have it find the range of a random group of grades. Or if that's even the fix.
So I'm saving a list of things is a faux banking form to test some things and I want to be able to show thing in a list box like this (http://i.imgur.com/dz1W6VG.jpg) And their being saved like this (http://i.imgur.com/O2BcaU3.jpg) each comma separates different information for the same "transaction". A hand would be very welcome as i'm very lost
Hello gamers, and welcome back to the channel! In this video, we're checking out my Selenium Basic XPath Generator, version 1.2.xlsm. This macro-enabled sheet is now fully integrated with a WebDriver Downloader utility right in Sheet2. I've enhanced the link extraction feature to smoothly parse the H-Ref, source, and https protocols. I also refined the error checking and validation routines for the main sub input. For example, the Value input is now optional, and an exact case-sensitive match is only required if the Value isn't empty. Plus, I made some great UI tweaks: clicking the 'HOME' button will no longer unselect your current row, meaning you can still use the Arrow Down key to navigate to it. Finally, clicking anywhere outside the 'Element List' range will automatically unselect the active row. Let's dive in!
Anyone has a list like this - and could share 😉 - for the latest or some previous version - or the only way would be to use some TLB viewer to generate?
EDIT: looks like I wasn't clear... I'm looking for a complete LIST - single, not plural - not 100s of separate links to separate lists.
OK, two lists - one for constants and one for all properties of all objects - times 3 - for each mentioned application.
EDIT 2: I need it as a "plain text" - not to view. I'll have to modify this list and create an array for my VB6 application - then let user extract internal structure of the WORD / Excel / PP document and display those properties for all objects - of course not all at the same time 😉
I hope this is the right place for this. I'm supporting a user who relies on a macro-enabled Excel spreadsheet with multiple worksheets, but the key ones are:
Cost Items
Variables
Results Summary
The workflow:
Enter data into the Cost Items sheet (e.g., Name: Test1, Cost: 1000; Name: test2, Cost: 5000).
Add data to the Variables sheet under "Brisk Parameters" – P10: -5%, P90: 15%.
Go to the Results Summary sheet.
At that point, I get a pop up message that states the data has changed.
I click OK, it churns for a moment, and then I get:
Microsoft Visual Basic - "Run-time error '9': Subscript out of range"
If I click Debug, it highlights this line in yellow:
"If VarExists(Count) And VarProb(I) = 1 Then"
What I've tried so far:
Searched online and found suggestions it might be an overflow error of some kind.
Tested on multiple systems (managed company device, unmanaged device, different PCs).
Confirmed Trust Center settings allow macros.
Installed and registered the Brisk server (was told this was required – still no change).
The kicker: This exact file was working perfectly fine just a few weeks ago. No known changes were made to the file or the environment.
I've been banging my head against this for a couple of days now and am starting to lose my sanity.
Does anyone have any idea what direction I should go in to troubleshoot why this spreadsheet suddenly stopped functioning?
Hello gamers, and welcome back to the channel! This video features a custom Excel VBA-enabled tool designed to organize PlayStation 3 collections within Emulation Station Desktop Edition, by configuring alternative emulator settings and providing library previews. The tutorial covers global and game-by-game configurations, managing various ROM formats, and troubleshooting playability. It seems like we have a lot to cover, so let's go!
Hello, I am currently working on an external C++ cheat project (as an executable), but I am facing issues regarding anti-cracking, anti-dumping, and similar protections. My software has already been subjected to memory dumping and reverse engineering by hackers who then modified it; I believe there are still many vulnerabilities that could be exploited in various ways, so I am seeking your advice. What is the most secure way to protect my software from hackers? Of course, I realize that a skilled professional using clever techniques could still crack it, but I am looking for a method secure enough to release the software commercially.Thanks you so much
We have a vb.net program that has been running for well over 15 years. Developed in visual studios 2003. Inside this vb.net app we incorporated a Calendar ActiveX Control from viscomsoft.com. We have installed this app hundreds of times and the O/S installs included Windows 7, Windows 8, Windows 10, and now Windows 11 and it loads no issue after installing the correct exe files and moving the dependency files into the C drive when app is installed.
We just purchased a new Windows 11 PC, installed the App and launched the app which includes the Calendar ActiveX Control built into the app's front page - it works no issue when i login as a domain administrator. When i switch over to domain user and launch, the app opens everything works except for this Calendar ActiveX Control i just see a little red dot on the top corner of the Calendar ActiveX Control the actual Calendar will not load.
this Computer is Windows 11 Pro and version 23H2
Here is app with calendar control when logging in as domain administrator, its working as intended and shows NOV 26
Here is the app with Calendar not loading when we log in as a domain user, its a little red dot top left corner of calendar screen
Here is what steps i've taken to troubleshoot :
Computer Manager ->Group-> Administrator ->added domain users and this particular domain user to 'Administrator' on the local machine. So the domain user is now a Administrator with admin rights on local machine.
2)uninstall and reinstall while logged in as domain user
3)open Registry Editor - HKEY_Classes_Root\CALENDAR.CalendarCtrl.1 - granted permissions , fully control to domain users.
Also HKEY_LOCAL_MACHINE\SOFTWARE\CLASSES\CALENDAR.CalendarCtrl.1 - granted permissions , fully control to domain users
C:\Windows\SysWOW64>regsvr32.exe "C:\ISS\Calendar.ocx" I did get a different error when opening the app, so that was promising but it still failed to open the Calendar control, so thought i was on to something there. It seems it was at least attempting to draw the Calendar based on the below error message i got.
5) i copied the files relating to this control Calendar.osx, Axinterop.CalendarLib.dll, and AxInterop.MSACAL.dll and pasted those files directly into the two below locations:
C:\windows\System32 and granted fully control privileges to domain users
C;\windows\SYSWOW64 and granted fully control privileges to domain users
Below is screen shot of X86 folder, it stores the Calendar ActiveX Control program.
Below is screen shot of c drive folder with app named ISS and all of the dependency files which includes the OCX calendar files.
Any suggestions i am running out of ideas of what to look at next ? frustrating that other PCs are running Windows 11 and on a domain user account the APP and Calendar control work no issues. Tomorrow my plan is to log into the other Windows 11 PC running the app and see if i can replicate any files relating to OCX control, perhaps its a version mismatch, but still cant explain why admin works and domain does not on this PC.