Access Folder Properties Exe?
Mar 15, 2011i want to acess folder properties control of a particular folder in vb.net. how to do this?
View 2 Repliesi want to acess folder properties control of a particular folder in vb.net. how to do this?
View 2 RepliesAfter I run the setup to install the program, I will use the program to capture image and answer a survey.Having said that, I have a folder contains image of image capture and database using Ms Access 2007 in my program . Is it possible to make it both in one zip folder (Embedded both together in one folder and locate it in desktop?
View 6 RepliesI am using Visual Studio 2008 Professional to build a VB.NET console application. I have a text file that I want to copy to the output directory after a build. I would like to create a build event to do that, but I do not see a "Build Events" folder on the property page. Is there a setting where I can get this folder? Or, is there another way I can set up a post-build event to copy a file to the output directory? The folders I see on the Properties page:
[Code]...
i can't seem to access a folder on the internet.. it keeps giving me the Access Forbidden ERROR 403..
View 18 RepliesIs there anyway that I can access all the properties of a control during runtime and
get their values. I dont want to specify the property name. I should get the all the
property names and their values. It is something like reflection namespace in VB.NEt
In c# asp.net mvc I can declare some public class like:
public class Foo {
public static string Bar {get
{return "bar";}
}
}
and access it from any html like:
<%=Foo.Bar;%>
right?Well, I have to do the same in ASP.NET MVC VB.Net but I cannot access any variable or method:
public class Foo
public Shared ReadOnly Bar as string
Get
[code]....
UPDATE:standard VB.NET puts modules in the namespace defined in your project.I had to type
MVCApplication1.Foo.Bar
how to create a module that doesn't wrap this into a namespace? Or have the view import the application namespace by default?
I have an application which is grouped in a MainApplication and serveral Modules (DLL's) The Main Application is basicly a Form with a NavigationBar on the Left Side (like in Outlook 2003) and an MDI-Parent. There is also a Simple Login Routine on this Form. I store the UserName after Loggingn to a Property. The DLL's holds functionallity and Forms for various Sections for example there is a Employee.dll which holds functions and a form to show all Employees.
On Loading of the Main Application I loop trough all dll's in a "Module"-Folder and extract NavigationItems from them which I add to the MainForms NavigationPanel. I don't have a reference to the Modules because I want to make it as flexible as possible so that it is possible to delete a Dll form the Module directory in order to remove the functionality from the MainApplication. The Modules could work also without the MainApplication if they are Complied as an exe insted of DLL of course. This works fine so far.
[Code]...
I have Form Class A, which is the "Main Form". An Event fired by Form A instantiates Form B, and sets Form A as it's owner. (which makes it be on top of FormA at all times)[code]...
View 4 RepliesIs it possible to access the horizontal offset, which I can't find in the property list of the datagrid?
View 2 RepliesI 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]....
In c# you can auto property a value with different level of access for the get and set . . . e.g.
public String myString
{
get;
[code].....
I have a sub (Sub 1)that passes a control to another sub (Sub2) Sub2 only knows that the control will either be a picturebox ("Pict1") or a rich textbox ("Rchtxbx").I want to put code in Sub2 that does the following if the control that is passed is aPictureBox:ictureBox1.Load("C est.bmp")However I don't know how to do this as when I type in "x" in Sub2, it does not default to the PictureBox properties and methods.Is it possible to use the name of a control and wrap it in some sort of ControlType() enclosure that identifies its type and grants access to its properties and methods?
View 1 RepliesI have dynamically generated some number of buttons. Now i need to manipulate them in such a way that clicking on one button should do something on another button. How to do it? I would prefer the code to be as simple as possible as i am tutoring amateurs.
Private Sub NewButton(ByVal ButtonNumber As Integer)
' set the button properties
btn.Name = "Button" & ButtonNumber
[Code].....
On my Bussiness Layer, I have something like
Dim object as New ExampleObject
Where ExampleObject inherits BaseExampleObject.I want to know how can I access ExampleObject Properties by reflection on my BaseExampleObject.
Something like:
MyBase.GetType.GetProperty("PropertyName").GetValue(mybase.gettype, Nothing)
Of course thats not going to work because this is not an instance of an object and if I instantiate a new object, I'll lose the reference from my Bussiness Layer.
I have the following code from a textbox leave event:
Private Sub txtdebt_Leave(ByVal eventSender As System.Object, ByVal eventArgs As System.EventArgs) Handles txtdebt_0.Leave, txtdebt_1.Leave
Dim txtbxName As String = eventSender
CType(eventSender, TextBox).BackColor = System.Drawing.Color.White
search_index = Val(VB.Right(txtbxName, 1))
End Sub
I would like to assign the name of the textbox to the variable txtbxName.
I know it's within eventSender as I've seen it when drilling down but how do i get it out??
I have a navigation bar which is dynamically populated with LinkButtons by an ASP repeaterControl.I have no problem accessing, and setting properties for the clicked LinkButton. This I can do using the sender object from the fired LinkButton. Once a LinkButton is clicked, it is highlighted in bold.
My problem is to clear the bold property of the previously clicked linkButton when a new LinkButton ( another RepeaterItem within the same repeater) is clicked. I cannot access the buttons through their ID, since they all have the same ID within the repeater. I have unique arguments on each RepeaterItem (CommandArgument), but when I try to iterate through all linkbuttons, only static linkbuttons are found, none inside the repeater. See below:
Dim c As Control
For Each c In Form1.Controls
If TypeOf c Is LinkButton Then
MsgBox(DirectCast(c, LinkButton).CommandArgument)
End If
Next c
I made a program that is started and running in memory and minimized to the system tray.
When it is first launched it registers global hot keys in windows.These hot keys are used for resizing the current focused window. I'm trying to use it so you can hotkey windows to resize to half the screen, a third of the screen, etc... For instance, if I have two notepads open and notepad 1 is focused and I hit Ctrl+Shift+LeftArrow it will resize notepad1 to the left and half the size of the screen. I have notepad 2 focused and Hit Ctrl+Shift+RightArrow and resize notepad2 to the right side of the screen. So, I can easily see both windows at once.Now, I can successfully get the focused window handle when the hot key is pressed. I'm stuck at this point.
I can use the Windows API call:
[code]...
I am looking for some code that will allow me to set field properties of fields in a table I have just created in code using vb.net (2005). I have seen a number of articles to do this in vb6 but not vb.net.
View 2 RepliesI create an Access database in runtime, but when want to change the column properties I can't,the IDE tooltip say: "Property 'Item'is'ReadOnly'".I have a VB6 application with an Access 2003 database and not have any problem to manipulate to many properties like OrdinalPosition, ValidationText and others.
View 2 RepliesI am trying to access the controls' properties on another form without having to modify the code of the other projec (the one containing the controls that I want to access) because it is already compiled as a DLL. In this DLL that I am trying to access, the functions/sub-procedures are all declared as private. Would there be any way of accessing the controls' properties without having to modify the DLL? Basically what I am trying to do is create a sort of console application wrapper for the DLL that would create a new instance of the DLL's form and then make certain checkboxes checked and click certain buttons. Basically, I am trying to automate the form as it currently exists.
View 7 RepliesI am trying to figure out the best approach for setting and getting properties in a nested class I am creating. I have a class, Car which has a nested class ControlPanel and want to make the properties of the Control Panel only accessible to the Car and Control Panel class.
[Code]...
I'm trying to build an app that will read custom properties set in an accdb file. Basically, I'm trying to build a Front End updater (Yes I know there are others already built, but they don't work the way I want). The Custom properties are initially set manually by pressing the Office button, going to Manage, then Database Properties and selecting the Custom tab.
I've got most of the code set up, but my sticking point is how to read the custom properties.
Following is the function I use within Access VBA to get the properties, but obviously this is not going to work in VB.Net.
[Code].....
I think I need to replace one or more of the 4 lines after the On Error (yes I know I need to change the Error trapping too). I'm guessing I need to connect to the database file (an accdb, btw) and then go from there to define the container and documents collections.
i am using vb.net 2005 and ms access, i have a column called accountnumber in ms access. i want to enter 14 digit number in that column, i am confused to choose which data type, because longint cannot accept more than -2,147,483,648 to 2,147,483,647.
View 6 RepliesI've created a class library and built a dll (release build). I've then referenced the DLL in another project (I've tried several). I can see the namespace and classes in Object Browser and I can declare instances of the classes but I cannot use or see any of the methods or properties! there is no IntelliSense whatsoever and calling the methods manualy results in a 'Declaration expected' error.
Within the class library solution I have a unit test project referencing the class library project which works all works fine (and all the tests pass).
Can anyone provide any pointers to what might be going wrong here? I've built plenty of dlls in the past and have had no trouble referencing them at all.[code]...
I am trying to select some images that I have in a folder called images in my project however when I select image url in the properties URL the image folder is not found I am only getting App Data and my project with nothing in the folders, I have copied the images to those folders and still nothing.Also I am used to being able to select images for buttons but I am assuming you can not do this in the same way in ASP?
View 3 RepliesI have a main form, a separate plugin interface dll and another separate dll. Now this is my problem:I'd like to access the properties of the controls of the main form for manipulation in the other dll.
Example:
MainForm
Plugins.dll
Data.dll
Main form have label control I define properties in the interface Plugins.dll from Data.dll I load Plugins to read the label control from the mainform.The question is how can I do that?
After taking a few years off from programming, I decided to start learning vb.net. I have created a user control that contains a picture box. I added some custom properties to the picture box that will hold general string data from a database.
My problem is that the user control is programatically created during run time, and during this time a DoubleClick event handler is added for the picture box that is within the user control.
I need to be able to set the custom properties for the picture box during the creation of the user control, so that when the control (picture box) is double clicked I can read these values but am unsure on how to access them.
The picture box is the entire size of the user control, or I would just add the custom properties right to the user control and add the DoubleClick event handler to that. However, double clicking needs to be done on the picture box since it takes up the entire user control, unless anyone has an idea to trigger the DoubleClick event of the user control when the picture box is double clicked.
[Code]...
I's there a way that I can access the properties of all controls stored into my array of object using LINQ.
Public Sub DisAble(Byval ParamArray ctrlCollection() As Object)End Sub That is my sub routine where im trying to reset all controls that will stored into that object of array. But im trying to attain that using LINQ so I wont use any loops to access all of it.
I'm learning LINQ and VB and just spent an hour trying to access the fields of an anonymous type defined in a linq query. The key (I learned) is to convert the query to a list before you try to iterate through it with a for loop. How to access property of anonymous type in C#?
This does not work: edit (this compiles, but intellisense does not recognize the type)[code]...
How does one gain programatic access to the information that is entered into the "My Project" properties Application section?I am able to pick up the assembly name from those properties, but I haven't been able to pick these up.Below is the line of code that makes me interested in picking this up programatically. I have found that if the name within the quotes for Sections (GenConfig) doesn't match exactly what is entered in those properties, I will get an application error during run time.How do I reference that property?Is there a better way to pick that value up?
Dim applicationSettingsSection As ClientSettingsSection = config.SectionGroups("applicationSettings").Sections("GenConfig.My.MySettings")