X86 Application Calling "AnyCPU" User Control
Nov 8, 2010
I'm building a UserControl which will be used by other developers.
If I build the UserControl for "AnyCPU" will there be any problems if another developer uses my UC in an application which he builds for x86.
I mean if the complete application is running on a 32 bit machine then all should be OK but if the app is running on a 64bit machine then the x86 app will run on wow64 but where does my UC run ? In native 64bit or does it default to the same as the parent ?
Or do I have to make x86 and x64 versions of my UC ?
View 12 Replies
ADVERTISEMENT
Apr 11, 2009
how can i call a VB function - deleteevent() in usercontrol.ascx.vb from a javascript function in clickhandler(e) in usercontrol.ascx. The call should cause a postback because I need the usercontrol to display the changes.I am currently trying to do it by using a linkbutton with style display:none, and calling its click event from the javascript function. But i dunno how to call the click event.
View 2 Replies
May 30, 2009
I have a panel2 inside a split container that has several user controls loaded into it. Panel 1 has an exit button and I want to call one of the sub routines that is in one of the user controls loaded into Panel2.
Private Sub btnExit_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnExit.Click
Dim dialogMessage As DialogResult
Dim a As New ucTimeTracker[code]......
This line is giving me trouble "ucTimeTracker.autoWriteFileOnExit()"
I am getting (reference to non-shared member requires an object reference).Basically I want the exit button on frmMain. SplitContainer. Panel1 to call autoWriteFileOnExit() on the user control named ucTimeTracker that is loaded into splitContainer.Panel2
View 2 Replies
Apr 7, 2010
i'm trying to learn about user controls. I created a user control that has a textbox and a button. What i'd like to be able to do is when i click the button in the user control, populate a label in the aspx page. I understand that i could just have a button on the page that uses some properties on the user control to get that information.. but i'd like to know how to do it with the button the user control.. the reason for this is the button is just an example.. a learning tool. if i can get this working, i'd likely be putting thing in the user control that might require this kind of passing information. Anyway.. i've found some c# examples that i tried to get working as vb.. but once started getting into the delegates and events..
View 3 Replies
Apr 13, 2009
how can i call a VB function - deleteevent() in usercontrol.ascx.vb from a javascript function in clickhandler(e) in usercontrol.ascx. The call should cause a postback because i need the usercontrol to display the changes. i am currently trying to do it by using a linkbutton with style display:none, and calling its click event from the javascript function. But i dunno how to call the click event.
[Code]...
View 1 Replies
Jul 21, 2010
control which will need to be reused in several forms in my program. It basically consists of several buttons in a panel. To start with, what I need to do is get the button values from the control into a text box on the first form. But I don't want to have a method calling the textbox directly from within the control, because then it won't be reusable in my other forms. Is there something I can do in VB like parentform.textbox.append for example, where you can generically call the methods of the form in which the control appears?
View 2 Replies
Apr 9, 2011
Our application is one EXE and multiple DLL's. Right now, we are compiling all of them for x86 so we are forcing 32bit because the running size of the application is a lot smaller (memory usage).If we compile the EXE as x86 and the DLL's as anyCPU, on a 64bit machine will the DLL's be 32bit or 64bit?
the reason for my question is if i can compile the DLL's for anyCPU and then have two EXE's, one for 32bit and one for 64bit, then i have only one duplicate program for the 32 or 64 bit change, and if a user wants to run full 64bit they only need to run the 64bit EXE and everything is fine. But if a user is on a 64bit machine but wants to run in 32bit mode, they would run the 32bit EXE.Let me know if this is true. i can't test this as i develop on a 32bit XP machine.
View 3 Replies
Jul 25, 2010
How do I utilize a user control from Application B within Application A?
Application A is a VB.NET App
Application B is a C# app.
This code attempts to register the control for usage in an aspx file:
<%@ Register TagPrefix="uc1" TagName="Pager" Src="../ApplicationB/Controls/PagingControl.ascx" %>
I get the following error:
Parser Error Message: The virtual path '/ApplicationB/Controls/PagingControl.ascx' maps to another application, which is not allowed.
Can I use Application B's PagingControl.ascx within Application A?
View 1 Replies
May 15, 2009
I created my user control for email validation in windows application(C# language).I am using it in the form, if the user leave that textbox it ll show message "E-Mail expected",if its correct value, then it ll be stored in another textbox. How can i retrieve values from the user control into textbox.
View 4 Replies
May 27, 2009
I want to create User Control for vb form application.
View 3 Replies
Jun 14, 2010
Basically i want to run a program that is created in vb2008 with its compiler properties set to AnyCPUThe programmer has a 32bit os, so he has not recognized that his referenced assemblies are not compatible with 64bit OS and therefore throw system.badimageformatexception on 64bit OS (such as mine; im running windows 7)
now it is my understanding that all 32bit applications can be run on 64bit windows because the WOW64 emulator can run them (just like programs that get installed in the program files x86 directory)so the problem here is that my OS cant recognize that this program must be run in 32bit since that programmer foolishly set the compile options to anycpu i can not contact the programmer and therefore asking him to recompile is not a possible solution.So, how do i run this program as 32 bit on my 64bit OS? how can i manually set 32-bit compatibility? it is not available in compatibility options.I tried running in compatibility mode for windows xp sp2 i tried putting the software in program files x86 folder.
View 2 Replies
Aug 17, 2010
I want to create one help file for my whole application. and once user press help button next to any input control then appropriate help topic from file should get display. how can i create this functionality in vb.net?
View 1 Replies
Nov 6, 2009
I have an application going here Form1 has a panel on it named TargetPnl. I need my TargetPnl to display my user control named Vviewer when I click my SearchBtn and also need it to disappear when I click another button.
View 1 Replies
Oct 17, 2011
I have an aspx page that has two different user controls. I want to find user control A and be able to set properties, etc., from user control B.
I was thinking I could do something like this:
Dim CMFilters As Control = Me.Parent.FindControl("CMFilters")
...but that doesnt work to be able to set properties and call methods. I somehow need to get the user control and and declare it as that user control type.
View 2 Replies
Dec 22, 2010
In a user control I have the code shown below.
I now realize that it is incorrect because the container's InitializeComponent property initializations have not run yet and they must be run prior to Refresh being called.
How (where) can I run Refreash after the container has initialized this user control.[cod]e...
View 1 Replies
Aug 31, 2009
i am using vb.net 2005 to developed desktop application I am having two windows form user control , the first control name con.vb containing the design and code for connecting to database and getting a list of my project values in combo box.
Now the second user control report.vb which i am using to generate some reports , since the code behind is using connection to connect to various project database , so i want to get the value of
First user control into another how i can get the i have tried the below but its giving me error in run time but no error in design or code behind -
MR.MainForm.Connection1.project_combobox.SelectedV alue.ToString
Error i am getting is :
System.NullReferenceException was unhandled
Message="Object reference not set to an instance of an object."
Source="MDR"
View 1 Replies
Nov 21, 2010
I'm using VB10. Can someone explain why you would use user events instead of just calling a sub or function? Isn't user events the same thing a sub's or function's?
View 7 Replies
Nov 17, 2010
The purpose of my application is to keep track of users waiting to use another application that may only be accessed by one user at a time.My vb.net application adds the persons name to the end of a text file, removes names when a person either gets to the front of the line or exits by closing my app.It regularly checks the list, and when the user gets to the front of the list, it notifies him and loads that other program.My problem is, I don't want the user to have to sit staring at my app until they get to the front of the line.I want the app to cause the computer to emit a regular, slightly annoying beep,even if the user has minimized my app or pulled up Microsoft Word on top of it, and continue to beep repeatedly until the user switches back to my app and presses a key or clicks the mouse.
View 4 Replies
Mar 27, 2009
I am trying to build a tournament bracket application. In order to build the application efficiently I would like to make a user control "GameControl" that represents a game and give it attributes that represent the names of the competitors "TeamNameA" and "TeamNameB" ,an attribute "Winner" to represent which team should move on, and an attribute "NextRoundGame" that assigns another instance of the user control so that it can assign the "winner" to one of the "TeamName" attributes of the next round in the competition. If the controls were native to VB I feel like I could do it easily (I have only spent about 30 hours self teaching/tutorial following) but I can't seem to find out how to pass values to custom attributes of custom user controls through code.
View 6 Replies
Mar 28, 2012
I am indifferent if you are a VB.NET or C# or other .NET developer. I have a FACTORY class like the following:
[Code]...
View 2 Replies
Dec 9, 2009
I am trying to create a sub routine that I can use to clear all items on various ComboBoxes on a Form; this is the code I was trying to use [To no avail]:
Public Sub Clear_ComboBoxes(ByVal ComboBox_Name as String)
if Controls(ComboBox_Name).Items.Count > Nothing then
Controls(ComboBox_Name).Items.Clear
end if
End Sub
I am writing the code on a seperate module to the Form; which means I can't use ME.Controls; but Form_Name.Controls doesn't seem to work either.
View 18 Replies
Sep 11, 2010
I have create a small routine to Generate Tabpages on a tabcontrol, and on each tabpage I have Created a label and a combobox, my problem is that since Im generating them in the code and the name of the two controls change based on an index.. ie. Combobox.name = "cmb" + Index I need to be able to retrieve the selected item from this combobox in order to move on to my next routine.. but I do not know how to reference these comboboxs since there is no pre or defined named for them.
View 4 Replies
Nov 10, 2011
I may be doing this wrong but I want to call a sub when the user presses enter on a textbox. The sub then shows a window in dialog mode. When I close that window, the computer makes a ding sound. Why is that? Is there a better way for detecting enter being presses on a textbox and not getting that ding?
If e.KeyChar = vbCr Then
LookupItem()
End If
View 3 Replies
Dec 28, 2010
Its been running in production for over a year and this is the first time I saw this behaviour. The application is a VB.NET Console Application which is triggered by MQ server. This application uses a class library which is part of the same project(Say 'abc.dll'). In production around 40+ instances of this exe are running and all of them use the some of the functions from 'abc.dll'.
Last week, we noticed that all the 40 instances were shown to be running in the task manager but they were not doing any activity. There was no exception thrown or error logged in Application logs or System logs. To frantically debug the problem, I tried isolating the problem.
With all these 40+ exes hung up, I wrote a small aplication which would use a reference to this 'a.dll', create an object of one of the classes in that dll and execute a method in there. I was printing console.writelines in between to see to which point it gets to before erroring out.
To my surprise, I found that at the point where I was creating an object of a class in 'a.dll' this sample test application would also hang just like the others. No exceptions thrown. So I killed all those applications as a last resort and then when I restarted all of them, everything worked fine.
I couldn't find any explanation for this behaviour. Since it was a critical error affecting a production system(blanking out the application for 3+ hours), I have to give a very good explanation as to why this would occur. how it can be prevented in future.
(Side note: the servers running these appilcation do not have a maintenance schedule and are supposed to be up for couple of months together.
View 11 Replies
Nov 18, 2010
I am running one fortran exe in .net application(calling from command line with the help of system diagnostic process). If we directly click on fortran exe, it shows inputs to enter for fortran in command window, after input entered it gets executed. We want same behaviour but want to run fortran exe from .net application, If we click on button in vb.net form, this exe should get called and should show inputs to enter on the command line, once inputs entered it should execute. How to achieve this with .net application? Right now, after clicking on button in vb.net form, exe get's opened in command window, but it is blank, and gets hanged. [code]
View 1 Replies
Feb 9, 2011
I have written a VB Program for calculating Power requirements for Heating Water, Air etc. There are some standard formulae, which require inputs in fixed units. The user may have data in other units, which will then need conversion.Example: Formula needs Airflow in Cubic Meters/ Minute, where as user has data in Liters/Second.I do not want to write code to do Unit Conversions from within my Program. There are readily available FREE Applications for doing the conversions. I have one such Application, which I want to bundle with my VB program.How can I Code in my program, so that when the user clicks a Button " Unit Conversion ", the bundled program will open.This is like clicking on a Hyperlink in a Program or Document and a Web Browser opens.
View 1 Replies
Oct 26, 2011
Is it possible to call a function within an asp.net web application from outside that application e.g. with VB.net? If so it would be great to see a hello world type example.
For arguments sake lets say I have my function "helloworld" in a class file within web application: [URL]
My ultimate goal is to enable some reliable / robust scheduling of functions within asp.net. I have read multiple examples about using web services / custom services running on the server etc but I don't really get the implementation.
View 2 Replies
Dec 9, 2010
I have developed IBM UniVerse application before. Now I am developing a .NET application that I want to call the UniVerse application?
View 1 Replies
Jul 6, 2009
I am working on an desktop application in which I am using WEB BROWSER component. There is a Javascript function within the webpage I want to call from my vb.net application. I am not attaching any code with this post because I couldn't find anything relevant on internet as all example involve asp.net server controls, no VB.Net desktop Application example.
way out to call JS function of the webpage loaded in the browser component through VB.Net Form Button.
View 1 Replies
Nov 29, 2010
I have multiple applications that will be calling a DLL.Is there a way to get the GUID from the calling application without passing it?I would like to use the GUID to verify the parent application and open up rights within the DLL for a specific app but not others.
View 3 Replies