Access ProgramFiles(x86) In Code?
Dec 5, 2009
I have and application in VB 2005 that runs on a 32-bit os right now. One of teh first things it does is call a an API from Novell GroupWise like such, which allows ir tun on either OS but I can't email from the program like I can on 32-bit. Is tehre anyway under the 64-bit section to use the api which on the 64-bit box i assume is in (x86) since GroupWise client installs as a 32 bit app.'determine 32-bit or 64-bit OS
If IntPtr.Size = 8 Then
'64 bit machine
ElseIf IntPtr.Size = 4 Then
[code]....
View 8 Replies
ADVERTISEMENT
Jun 22, 2012
I am trying to launch a third-party program from my own. I have done a quick search in Program Files and Program Files (x86), and I just realized that the path returned by getenv("ProgramFiles") actually depends on whether I am running in x64 or Win32.How can I search (both in c++ and c# or VB.NET) both Program Files folders, using environment variables and not hard-coded names - since regardless of the version of my program running on the user machine, he might have the other one installed in a different version ?
My code now: in c++:
fs::path root_directory = fs::path(getenv("ProgramFiles"));
// and then I change to
root_directory = fs::path(getenv("ProgramFiles(x86)"));
in VB.NET:
System.Environment.GetEnvironmentVariable("ProgramFiles")
View 2 Replies
Aug 6, 2009
I am using the following code to retrieve information about a folder on my computer.
My.Computer.FileSystem.FileExists(Environment.GetFolderPath(ProgramFiles)My problem is that the computer I am using has two operating systems installed. When running on the D: drive, the code returns the C: path. How can I get it to return the D: path?
View 1 Replies
Jan 16, 2010
I need do move the file from one App in root/ProgramFiles to another app in program files. It happens thta in Vista/Win7 I can nod do this... And wehn i try to do this im getting frllowin exception: "Access to the path is denied"
this brings me to the question: How can I write move files to the directoris that are other then MyDocuments? For me this is critical as I need to move custom library to existing app if it is not found there, otherwise my app will not work :
View 3 Replies
Oct 13, 2010
I have a similar problem posted in the forum similar to this : started learning VB. I am not able to get my example code to work to access an Access database through automation. The author of my book suggested that I might not have the correct Jet 4.0 engine. The specs I have are: MSJet40.dll, Dated 7/14/2009, Prod Ver 4.00.9756.0.
View 3 Replies
Nov 3, 2011
We're working on a big project and we're stuck a bit here.I need to access the <img>'s from an .ASPX from the code-behind on the PageLoad() to assign the right image (attrib src) depending on the value we just collected from the DB from an SQL Query.We can't use the runat="server" attribute to see it server side because we got a bunch of jQuery using the img name tag to work with.I'm sure there's a way to access and modify the src attribute of the images from the code behind view?
View 3 Replies
Apr 12, 2010
I have an application in vb.net thats part of a big app. My team member requested I create an object with constructors to allow him to be able to access my classes and functions from his C# code and I will still be able to work on my checked out version.
View 5 Replies
Jan 14, 2012
I am using vb 2008 and this is a simple project to use split function to translate English language to Arabic but the problem with database it be in code (array) can anybody make this project use access database or other database instead of [code]...
View 1 Replies
Mar 8, 2010
Doe anyone have a code that can be used for access database or were to put the code? In class they want us to use a Access program but we havnt taken a class on it. I have everything up and running so far but I want the information to transfer between the VB adn database and I am not getting to far.
View 1 Replies
Mar 15, 2012
I have MS Access Data Base with tow tables table 1 has relashiship with Table 2 when I try edite tabe 1 error message shown
View 3 Replies
Mar 25, 2011
CheckBox1.Checked = DataGridView2.CurrentRow.Cells(10).Value
CheckBox2.Checked = DataGridView2.CurrentRow.Cells(11).Value
CheckBox3.Checked = DataGridView2.CurrentRow.Cells(12).Value
CheckBox4.Checked = DataGridView2.CurrentRow.Cells(13).Value
CheckBox5.Checked = DataGridView2.CurrentRow.Cells(14).Value
how to set this code at boolean in access 1 and 0..
View 3 Replies
Jan 11, 2011
Is it possible to use a constant defined by the compiler in code like below?[code]...
I'm running batch processes and I'm experiencing problems with one of my customer's data. I want to add special code for only that customer, but I want to keep the code there so I can easily switch the customer ID in the future should i need to debug a different customer.[code]...
View 2 Replies
Sep 6, 2010
I have a Crystal Report that I am trying to access thru my VB.Net app. My problem is that I keep getting a "Database Logon" prompt (see screenshot). My code is below and I think I might have more than I actually need. I created the report from with the VS 2008 IDE.
Private Sub rptSingleWorkOrder()
Try
strSQL = "Select A.productName, " & _
"A.productDesc, " & _
[code]....
By the way, this code runs cleanly completely thru from the time the procedure is called until it exits.
View 4 Replies
Apr 15, 2010
If I have added an html file to my vb 2008 form app project - for use with the webbrowser control. What would be the correct syntax for navigatingto it from the webbrowser.navigateto method.
View 11 Replies
Jan 17, 2011
I am using VB 2010 and have the following code written in C that is used to access some PDF properties. translate this to VB?
[Code]....
View 3 Replies
Nov 3, 2009
Is it possible to see the source code through the program debug database file. I lost the source code file but eventually I just have the exe and the pdb file, I am just wondering is there a possibility to get the source code through the pdb ?
View 3 Replies
Jun 6, 2011
Can I get access to the code of an application without having the Project Solution file? We had someone leave the company and we need to get to the code that they created. What we have are the following files:[code]....
I only know how to access code by clicking on the project solution file for an application but I'm not sure if there is another way to do it.
View 3 Replies
Apr 20, 2010
I'm currently working on my VB.NET certification and I'm using Murach's Visual Basic 2008 for my class textbook. Chapter 16 of the text covers writing my own ADO.NET data access codes. The code I have included here is for two classes of the project:
frmAddModifyCustomerDB.vb is prewritten by murach for this assignment and CustomerDB.vb is included written in the book as my assignment to build but not prewritten for me in the solution. According to the assignment, frmAddModifyCustomerDB.vb should not be modified unless instructed by the book. The procedure in question is Private Sub btnAccept_Click on the line that reads: "If Not CustomerDB.UpdateCustomer(customer, newCustomer) Then".After copying the CustomerDB.vb class directly from the book the assignment stated that the database should update properly when using the UpdateCustomer function that is fired when the Accept button is clicked. Every time I tried to modify a customer when doing this I kept getting the Database Error message box and the changes would be canceled.
After playing with the code I changed the "If Not CustomerDB.UpdateCustomer(customer, newCustomer) Then" to check against the boolean return from CustomerDB.vb by inserting "= False". When the modified code reads "If Not CustomerDB.UpdateCustomer(customer,
newCustomer) = False Then" the application updates properly and does not fire any exceptions. I'm confused by this because the book specified that I should not need to modify the code for the Add/Modify form in order for this to work.
Public Class frmAddModifyCustomer
Public addCustomer As Boolean
Public customer As Customer
[code].....
View 3 Replies
Apr 26, 2010
I have the following code that I want to return to a variable "t" in javascript:
Code behind:
Public Shared Function GetSomeText() As String
Dim result = "This is from code behind"
Return result
[Code].....
So, how can I make variable "t" get the "result" from Function GetSomeText from code-behind?
View 2 Replies
Jul 6, 2011
vs2010 pro running on a win7 machine
Private
Sub
EnableDisableCalender()
[Code].....
I am working on a form with several databound textboxes, each with its own label to identify it. I would like for the label to enable/disable based on code logic. I see the label properties in design mode, but cannot access the label properties in code. The intellisense tells me my label name is not declared. Am I not able to access label properties as in vb6 or the same as a textbox?
View 6 Replies
Sep 30, 2011
I am creating a Microsoft Access 2003 database which will be using Visual Basic code in the backend.I have a form called frmReports. On this form are three option groups consiting of checkboxes. What I want to happen is if one of the checkboxes is checked, then the other two option groups are made invisible.
The context of the problem is a teacher is reporting on pupils. If a pupil is marked as being absent from class, the other two option groups (Behvaviour and Homework) disappear as no other information can be input.
View 2 Replies
Dec 10, 2010
One of my application is taking a lot of time on Windows 7 compared to XP. What application basically does is it creates some PDF files reads the content and emits on a form and then deletes the files. I ran ANT profiler on both XP and Win 7, and i could notice some differences. On win 7 some CAS related methods are widely called and those method calls were missing on XP.. Is this the reason ? If someone has faced similar issues,
View 4 Replies
Apr 21, 2012
i am trying to update the info in my access database and i keep getting a syntax error. This is my first database program and i found a site online that showed my how to do it but when i get to the update it keeps giving me the syntax error.
Private Sub CreateBT_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CreateBT.Click
Dim con As New OleDb.OleDbConnection
Dim dbProvider As String
[code]....
View 1 Replies
Nov 21, 2010
I am trying to convert a C#/XNA project to a VB.Net project with access to the XNA framework. I have added all of the XNA framework as references in the VB project and imported them as well.Most of the code translation is going well but I am getting mixed up with some graphics issues and some event handling issues (neither of which do I understand in any languague). I have tried to puzzle it out but am digging myself a deeper hole with each attempt.I am ok with converting the variable declarations and the first three lines of the Game1 Sub. It is when we get to "graphics. preparedevicesettings . . . " that the trouble starts.
public class Game1 : Microsoft.Xna.Framework.Game
{
private GraphicsDeviceManager graphics;[code]....
View 6 Replies
Jun 22, 2010
i need a logout code in .net back end access?
View 1 Replies
Nov 21, 2011
How can i create a Database file in Access 2010 file format (.accdb) and create tables in it through Vb code at runtime by taking the filename and table names from the user.PBL (Visual Studio 2010 Ultimate)
View 16 Replies
Sep 10, 2008
I recently just started working somewhere which will involve me coding VB in MS Visual Studio .NET 2003. I've been trying to refresh myself in VB by reading things online, but I just discovered an error while trying to run some practice programs (attached as error.png). Basically it says that I need administrator access.I'm waiting on an IT guy to grant it to me, but in the meantime I'm trying to figure out if there's a way that I can test my code without being an administrator.
View 1 Replies
Mar 24, 2012
How do access a code to do something for only the last clicked text box and turn it into an If...ElseIf...End If statement?
View 3 Replies
Dec 18, 2010
I have a checkbox and a panel inside of a FormView control, and I need to access them from the code behind in order to use the checkbox to determine whether or not the panel is visible. This is the code that I originally used, but since I put the controls inside of the FormView, it no longer works.
Protected Sub checkGenEd_CheckedChanged(ByVal sender As Object, _
ByVal e As System.EventArgs)
If checkGenEd.Checked = True Then
[Code]....
There aren't any errors anymore, but nothing happens when I click the checkbox. I think there needs to be some kind of event to trigger it but I don't know how you can put an event handler inside of an event handler.
View 2 Replies
Jan 11, 2012
How to access controls from class files in app code?
Markup:
<%@ Page Language="vb" AutoEventWireup="false" Inherits="shoppingCart1.ShoppingPage" CodeFile="ShoppingPage.aspx.vb" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
[Code]...
View 2 Replies