Appbase Being Set To Nothing At Runtime
Feb 23, 2009
I have a difficult to reproduce error on about three user installs out of 20. This is a .net Windows application, 2005 in VB.Net running on XP. After opening up a window, we get an error:[code]This happens also for the ReportViewer dll and a couple other infragistics dll's.I turned on Bind Logging, and the first binds are ok, but when I get the error, the Appbase has been set to blank:[code]
View 2 Replies
ADVERTISEMENT
Nov 16, 2009
Reference Assembly outside the AppBase-Directory
View 1 Replies
Dec 20, 2010
I have created multiple dropdown list at runtime and populated with data. I also have added an eventhandler to determine the selected value of the drop down list.
The code is as follows :
Dim tbl As New Table()
tbl.EnableViewState = "true"
[code].....
View 2 Replies
Aug 6, 2007
I have a Visual Basic 2005 program which runs fine if I execute the built Executable. However if I start the application in VS2005 debugger it gives a weird error
[Code]...
View 5 Replies
Jul 29, 2010
Soemone recently downloaded my software and they got this error: microsoft common languages runtime version 4.0.30319.0 how do i fix this
View 1 Replies
May 24, 2012
I'm creating an app to manage the movies I've watched and get some info about these movies and then display these info in labels.At moment I'm trying to load the "runtime" and "genre" into label3 (runtime) and label5 (genre). Once the movie name is clicked in the listbox control, these info are loaded from a website (webbrowser control) and then displayed in the labels. My question is: Is there any way to make the My.Settings save these info for EACH movie? Something like this:
Saving the info:
vb
If ListBox1.SelectedItem.ToString > 0 Then 'LOADING THE INFO CODE... 'SAVING... 'create: My.Settings.(ListBox1.SelectedItem.ToString & "1") = Label3.text 'create: My.Settings.(ListBox1.SelectedItem.ToString & "2") = Label5.textEnd If
[code]....
View 15 Replies
Aug 2, 2009
How to create Combo box at run Time with its Click events and Key Press events.
View 1 Replies
Jul 28, 2011
I'm working on a project wich has a MenuStrip and a button.
So what I want to become is when u press the button the process 'notepad' starts and then a MenuItemToolstrip with the notepad icon and text will be added to the Menustrip.
everything works fine when i press the button but when I press the button a second time it doesn't want to add a new menuitemtoolstrip.[code]...
View 4 Replies
Apr 20, 2010
I'm designing a rather specific form in VB.Net 2008 Professional Edition for my company per a PDF file I have been provided. I just noticed that everything seems to shift at runtime... The change is drastic enough that the blank space is displeasing to the eye and doesn't match my predefined form.
[Code]...
View 3 Replies
Mar 11, 2009
I made DLL files using VB and placed them in the same directory as .exe. When I edit the source code for .exe and type Dim obj as Object obj = new DLLname.DLLclass everything works fine. The problem comes when I try to use Dim obj as Object obj = CreateObject("DLLname.DLLclass")'error line and an error "Cannot create ActiveX component." is produced. The second code block is more useful to me because I don't want to explicitly specify the name of each DLL file in the code, but rather handle the names as string variables.
So basically I need to import DLL's on the run - how can I do that?
View 2 Replies
Sep 6, 2009
VB.Net 2008 I have a problem when loading dlls.Such that I have a dll which contains a class like:
Public Class class1
Function fnc1(ByVal par1 as Boolean, ByVal par2 as String) As Point
Return New Point(0,0)
End Function
[code]....
View 4 Replies
Apr 15, 2012
I am lookin for source from where i can learn to change control properties at runtime using VB.NET. Actually I havent started working on the project so I cant mention exactly what I need.
View 4 Replies
Nov 23, 2009
I am working on an application which will be used to read/write/provide custom functionality using an mdb file. I have been able to create the program, and access my test mdb file just fine using the normal ado connection protocols. The final product will be used in an application/file format where each user will have thier own mdb file, and multiple users will be using the same application on the same computer to access their files. I need to figure out how to load the mdb file at runtime using both an open file dialog, and to be able to double-click the file in windows and have the applicaiton open and load the db that way (I know how to create file associaitons, it is just the databinding that I am having issues with- and the mdb file uses it's own filetype, so I won't step on the toes of MSACCESS).
View 8 Replies
Sep 28, 2009
I'm trying to make my program have plugins that don't require real installation. My plan is to have the plugin consist of two files:a dll file, and a xml file describing the dll so the program knows what to do with the dll. However, I have NO idea where to start.I've referenced dlls and used them in my program before, but that was BEFORE compileing the program. Could someone please point me in the right direction? I am using Visual Basic in Visual Studio 2008 Professional.
View 1 Replies
May 25, 2010
Having problem with the following code. the gender and status variable is used before it is assigned to a value. which may result in null value during run time.
View 3 Replies
Feb 18, 2012
when user clicks the print button, i am reading from xml file, which is saved earlier and loading into a empty form. it is displaying all the controls and the data when i use the code like
Dim frmPrintform as New frmUserCreateReport
'Looping here the Xml File
'if xml Start Element is texbox
[code]....
Here by using frmPrintform.Show() it is showing the form, but i want to print all the controls to the printer. for frmPrintform.Print() there is no intelesence displaying and giving error.how can i print all the controls with out showing the form to user. by clicking print button all the above work should be done and show print preview.
View 3 Replies
Sep 10, 2009
more than one picturebox is create at runtime. i have the menu strip called "1" and "2". when i click the menu "1", i want the picturebox image to change to whole.png . when i click menu "2" i want the picturebox change the image to half.png. the images is on my resources. when i try to do, picturebox.image = my.resources.whole, i give me this error "Object reference not set to an instance of an object.".
View 1 Replies
May 12, 2009
im pretty new to VB 2008 and programming in general.im using a button_click event to run a .exe i am adding it as a resource and in run time the button_click wont work, i cant figure out the code to make it run on from the click event.i can get my .exe to run at runtime
View 25 Replies
May 31, 2012
I know this requirement may seem weired to many of you but it is one of my project requirement.Is it possible to add code in Sp and execute in .Net exe. Like on button click i call one SP that SP returns few line of code and then program execute the code.
View 4 Replies
Apr 4, 2012
For debugging purposes, is it possible to get the value of Option Compare at runtime?
(I am working on a legacy Windows Forms application that uses InStr with the first parameter as String (three parameter version of Instr), without the third parameter that is then determined by Option Compare. Option Compare Text supposedly makes InStr case-insensitive; the default is Option Compare Binary.)
View 1 Replies
Aug 23, 2011
I have 9 tables with state information in them. They all have the same field names. I have a Crystal Report that is based on one of them. I want the user to be able to select a state and change the Crystal Report to use that table instead of the one it was based on.I mean when user select text in combo box and then click on "OK" then report show (using only one rpt for all the tables of same fields).
View 2 Replies
Feb 15, 2010
I'm writing an application for a device running Windows XP. There are 2 versions of the device and each version has its own API to communicate with the device's software. The application I'm writing needs to pull the same data from the API. My question is how to write a application that will detect at runtime which version of the device it is on and use the appropriate API.
I've created an interface containing all of the common methods and also classes for each device that implement the interface. Now I need to know how to activate the correct one at runtime.
Public Interface IAPI
Sub InitializeMachine()
Function GetActiveProgram() As String
[Code]....
View 2 Replies
Jul 23, 2011
But my application sometimes needs to acces the registery for some special functions and is there a way to change the permisssion on runtime to 'requireAdministrator' with a button or something?
View 2 Replies
Dec 8, 2010
Private Sub Button6_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button6.Click[code]...
View 5 Replies
Jan 25, 2012
I've got this code
ToolStripTextBox1.ProgrammeTemplatesToolStripMenuItem.DropDownItems.Add(btn)
ToolStripTextBox1.TS.Visible = True
How to save this button so that when the program runs again, it's still there?
View 5 Replies
Mar 18, 2006
I am using VS 2005. My que. is that how to add column into datagridview at runtime?
View 3 Replies
Jan 15, 2012
"add controls at runtime" how to add code to the controls. kinda useless with no code, ehh? all results only told me how to add the control, that's it. well, this result is different. i will teach you firstly how to add controls at runtime, then how to apply code to them at runtime
Firstly, add the controls:
[CODE]..............
Now run it. do you have a button on the form? if yes, excellent. if not, you made a mistake. try again now how to add code? you may have noticed that when you double click on any control, it says private sub button1_click(blah, blah, blah) Handles button1.click where it says handles button1.click is what determines when the code executes under what event for what control (in this case the click event for the button1). this won't work when adding code at runtime. did you notice in the above example i added a with event, and addHandler? this is what creates the handler (same as Handles button1.click)
Now we add the code for the runtime control
[CODE].........
Above, the addressOf button1_click tells the program to execute the sub button1_click when the button is clicked on (as determined by .click) but i know what you're thinking! your thinking "why would we even BOTHER doing this at runtime? isn't it easier to do it at design-time in the first place?" yes it is, providing your not writing a plugin. plugins are code based, not GUI (also reffered to as WYSIWYG). to update existing forms using plugins, you need to use this method.
View 6 Replies
Mar 29, 2012
I have created a form Dynamically at run time using this below code but how can i add controls to it.
Dim NewFm as Form
NewFm.ShowDialog()
how can i add treeview to this form and populate with data during runtime?
View 2 Replies
Aug 25, 2009
I have data in an arraylist and i want to add data to checklist box on runtime and i also want to display a textbox besides it so that i get the comments
example :
checklistbox "text" textbox
checklistbox "text" textbox
checklistbox "text" textbox
checklistbox "text" textbox
checklistbox "text" textbox
View 3 Replies
Jun 27, 2010
Is it possible to add Enum entries during runtime?
View 7 Replies