Pass Control To A DLL?

Feb 23, 2012

My file-upload function used to show it's progress in a ProgressBar, but now that I moved it into a DLL this is no longer possible.[code]...

View 1 Replies


ADVERTISEMENT

Pass Control From A Thread?

Dec 21, 2010

I have a program which has a rather complicated component within it. This component has a number of features that all run at once and will cause lag with the main application which isn't acceptable.

To resolve this issue I'd like to run these processes on the component in another thread. I've created a simple test version to work out how I'm going to do this, however I've run into a few problems.[code]...

View 1 Replies

Pass Event To Other Control?

Jul 4, 2010

I want to invoke another control on the from when i click on one control.

Eg. When i click on btnOpen , i want btnClose to be activated

View 2 Replies

Asp.net - Pass The Value Of A Control In A Datalist To JavaScript?

Aug 16, 2009

I have a datalist like this:

<asp:DataList ID="dl" runat="server" Width="301px" onitemcommand="dl_ItemCommand">
<ItemTemplate>
<table style="border:solid 1 #CCCCCC" >

[code]....

I want to pass src of imagePhoto to function showLayerUpLoad().How can i do that.Can i do this in ItemCreated event.

View 1 Replies

Pass Combo Control Between Events?

Jun 4, 2009

I'm using VS2008, vb.net, and winforms. I've got 3 comboboxes on the same form who are all bound to the same data. If an item is added in one, I want the change reflected in the other two. I'm trying to create one sub to handle the adding of an item for all three combos. I found that the "sender" object appears to contain the control name. The Sub I created is not working quite right because after the item is added, the combo list display repeats itself. So instead of "Item1, Item2, Item3" after adding "Item3", I get "Item1", "Item2", "Item1", "Item2", "Item3". This coding works fine if I were to copy it to the Key_Down event for each combo and reference it directly (for example, use cboSpecialty1.Items.[code]...

View 4 Replies

Pass Control As A Parameter To A Function?

May 27, 2009

i am designing an application in which contents of an excel file are displayed in the ListBox. i have created a class which contains methods for doing this. Statement used for function call is:

oSheet = obj.displayColumns(oWB,
Me.lbColumnNames)

[Code].....

line where i am getting error is underlined. Is it possible to send controls as a parameter ?

View 5 Replies

Pass Listbox Control As Argument?

Feb 16, 2012

<p>I'm trying to use a function that takes a variable referring to various listboxes.</p><p>Something along the lines of:</p><p>Calling code:</p><p>...</p><p> Dim lstBox
as ListBox</p><p> if a=1 then lstBox = Me.ListBox1 else lstBox = Me.ListBox2</p><p> MyFunction(lstBox)</p><p>...</p><p></p><p>Called function:</p><p>
public sub MyFunction(lstCtrl as ListBox)</p><p></p><p>lstCtrl.Add()....</p><p></p>

View 8 Replies

Pass Version Of Windows To A Control?

Aug 25, 2008

how to return the following operating system data to a control:1) Version of Operating System2) Version of Service Pack3) Version of .Net Framework

View 7 Replies

ASP.NET - Pass The Value Of The TextBox As The Value Of The Whole Control To Use In The Calling Code?

Apr 9, 2010

I created a DatePicker user control (ASP code below, no code behind) which is simply a textbox, image button, and a sometimes visible calendar.

[Code]...

Can I somehow tie or pass the value of the TextBox as the value of the whole control to use in the calling code? EDIT: My actual goal here is to be able to tie the SelectedDate as a parameter of a database query. I was able to select values for the other parameters in a controls dropdown list in a query parameter configuration window.

View 2 Replies

Cannot Pass Global Variable To Control Textbox

Sep 5, 2011

I have to pass a global variable to a control textbox. but after running the code the textbox is empty[code]...

View 10 Replies

Pass Integer Array To C++ Active Control?

Mar 12, 2009

I'm using VB.NET within Visual Studio 2008.I have a ActiveX control on my form that contains a method that takes an Array. In VB6 I just passed in the array and it was populated OK. When I do the same in VB.NET, I get a result but the value of each index appears to be a pointer.Here is the C++ method code...

void CMyCtrl::GetRowInfo(const VARIANT FAR& vArray, short sNumRows)
{
// Declaretemp array to put the row list into
short asRowList[24];

[code]....

Here is the VB code (same VB6 and VB.NET...

Dim maintRowList(0 To 23) As Integer
AxMyCtrl.GetRowInfo(maintRowList, 24)

In VB6, the value of maintRowList(0) is in the range 0 to Windows screen height(its a pixel value)In VB.NET the value of maintRowList(0) is a value that looks like a pointer to me (e.g 285671429).In VB.NET, the type of the 1st parameter is Object. In VB6 it is a Variant. I've tried AxMyCtrl.GetRowInfo(maintRowList(0), 24) and got the same result. I think I need to get a pointer to either the array or the first element of the array but I can't see a way to do that. how I can pass an array to this type of C++ ActiveX method?BTW - I cannot change the ActiveX code so the solution must be within VB.NET.

View 1 Replies

Pass The Information To The Specific Label In The Tab Control?

May 8, 2012

I'm just starting out with vb and am working on a single form project.

Basically I'm trying to take information entered in a textbox on the main forum, Appear in a tab control at the bottom of the forum through the use of a button.

As far as I can tell, I need to code the onclick button portion of it but am unsure about how to pass the information to the specific label in the tab control.

View 1 Replies

Pass Value To Master Pages User Control?

Apr 13, 2012

I have problem. I have site.master wich includes coulple of user controls. Now I need to pass value (srting) from actual pages code behind to master pages user control (Property) .

So my master is like this:

<%@ Master Language="VB" CodeFile="/scripts/pohjakoodit.master.vb" Inherits="pohjakoodit" AutoEventWireup="false" debug="false" %>

... on the end of master there is:

<ucSheriff:sheriffala ID="sheriffala" statvalue="atesti" runat="server" />

Then I have actual page wich strarts like this:

<%@ Page Language="vb" MasterPageFile="site.master" AutoEventWireup="false" CodeFile="/scripts/alkuuutisetxw.aspx.vb" Inherits="uutiset_index" debug="true" %>
The sheriffala.ascx has property

[Code]....

So how do I pass string to user controls property from code behind file?

View 1 Replies

Asp.net - Pass A Variable To User Control To Determine Display?

Nov 28, 2011

I've found various C# examples here, but I can't seem to get a VB version working.I want to be able to pass a simple variable into a User Control to determine whether it shows a certain section of data.It's basically a Customer Data form, and in some circumstances I need to show a line with the customers account number and sort code, and in some I don't, so my user control:

<controls:customerForm ID='customerForm' showBankDetails="no" runat='server' />

But I can't work out what to do with the showBankDetails variable in Code Behind to stop it from rendering that section, or simply hide it with a CSS snippet.How do I access that variable in the code behind using VB.NET?

View 1 Replies

Pass Link-Button Click From One User Control To Another?

Jan 18, 2012

I have two user controls on the same page. One contains a ListView that displays navigation links, the second user control should be updated when user clicks on the buttonlink in the ListView.

View 1 Replies

Asp.net - Pass A Value To From Listview Item Control To Another ObjectDataSource Inside In The Same Place?

May 8, 2011

i have to list views A,and B listview B is inside listview A. i want to pass some parameters from Listview A to Listview B's ObjectDataSource.

View 1 Replies

VS 2005 Update Table - If All Results Is PASS Then The Table2 Should Be Updated As Pass

Jun 8, 2012

I have two tables:

table1

case_no flow result
tc_1 001 pass
tc_1 002 pass
tc_1 003 pass
tc_2 001 pass
tc_2 002 fail
tc_2 003 pass


table2"

case_no result
tc_1 pass
tc_2 fail

Table2 should be updates from table based on the results... If all results is PASS then the table2 should be updated as pass... if any result is FAIL then the entire case_no should be updates a s fail..

View 7 Replies

Sockets - VB9 .Net 3.5 (2008) Code Works On The First Pass.Then Second Pass It Just Hangs On

Jun 19, 2009

This code was working consistently, but now...This code works on the first pass.Then second pass it just hangs on Code:Dim tcpClient As TcpClient = tcpListener.AcceptTcpClient() for about 2 minutesThen the code will fork for another pass, then fail.....

Code:Imports SystemImports System.TextImports System.Collections.GenericImports System.XmlImports System.Xml.LinqImports System.Net.Sockets

[CODE]....

View 2 Replies

Pass Data To Dialog - Manipulate And Pass Back?

Jan 15, 2010

Just started VB programming this week and have found a wealth of information about what I'm trying to do. Problem is, some of it is more complete than others.Here's what I'm trying to do:In Form1 (my main form), I want to instantiate a class that contains a couple of properties (speed setpoint and position setpoint). When I click a button, I want to pass this data to Form2 and populate two textboxes on Form2 with the properties of this object. I want to manipulate the property values on Form2 and click an OK button which closes the dialog and returns the manipulated data, updating the property values of the object. Here's the algorithm I'm following:1) On Form1, instantiate the class2) On Form1's "Pass Data" button click event handler, instantiate a Form2 object and invoke the ShowDialog method, passing the object as a parameter.

3) On Form2, overload the ShowDialog method to accept the object as a parameter and modify the method so that it returns the manipulated class data.4) On Form2, in the ShowDialog method, populate the textboxes with the class data that was passed in.Here's where I get stuck. If I press the OK button on Form2 (DialogResult.OK), it returns me to Form1, but what hook do I have in Form1 to receive the manipulated class data that the ShowDialog method is returning?Here's an example of what I'm thinking about:

Code:
Public Class Form1
Dim clsController1 As New MotionController

[code].....

I'm sure it's probably a very elementary question, but every explanation I've found seems to be incomplete.

View 2 Replies

VS 2005 To Pass Or Not To Pass?

Apr 16, 2009

I am looking for some input. I am helping with a web application that is fairly large. We have some logic factored out into classes, not a true business logic layer (yet ). The classes are setup to pull values directly from the QueryString or Session variables and I'm not sure that that mehtod is proper or even a

The reason I would like some input is, there may be a chance to rewrite or at least refactor the code.

[Code]...

View 2 Replies

'True' Control Transparency - Control With Motion Graphics (simplicity, A 'video Player' Control)

Dec 29, 2010

Here's my situation: I have a control with motion graphics (for the sake of simplicity, a 'video player' control) in my project. Think of a PictureBox with constantly-changing images. In front of this will sit a second control (such as a second PictureBox of the same dimensions). The topmost PictureBox will be drawn to in its Paint event.

I need to draw very few elements, and the bottom control is updated much more frequently than I need for this drawing. So these elements are drawn to the topmost control. Think of a news broadcast, where they have live video in the background, with a news channel logo, news ticker, and sometimes gradient visible in front.

I'm trying to create that 'foreground' control, and the closest I believe I have gotten so far is the following:

Imports System.Drawing
Imports System.Drawing.Imaging
Imports System.Drawing.Drawing2D

[CODE]...

The 'Opacity' property in the code above is a sort of "scaling factor." The image drawn to the top control may, in different parts of the image, have any alpha value from full transparent to a full 255. This 'Opacity' property is applied to the entire image being drawn, scaling the alpha values of each pixel.

See the following pictures for description:

[URL]
[URL]
[URL]

View 9 Replies

Pass A Value From A Sub Procedure To A Function Procedure .... Pass The Whole Subprocedure To The Function Procedure Argument?

Mar 30, 2012

Im a student doing an assignment, how do i pass the value from a sub procedure to a function procedure....i want to pass the value from decSubtotal to a function procedure named CalculateDiscount; check out my code--

[Code]...

View 1 Replies

Set Control (windows Control) Position To Some Other Control Relative Postion?

Mar 25, 2011

I want to set control position relative to other control so when i make one control hide then other control move up like this.

View 1 Replies

How To Pass One Value From Another

Jul 27, 2009

But in my application i need to pass the ID of my Client (company) to fecth it's businessName. So first i've written a storedprocedure to return it's ClientID searched by BusinessName, then i pass the ClientID to fetch all the other details of the client such has his contatcs...etc....

Therefore currently i use two stored procedures to one i pass the businessName then i will return it;s ClientID then to the other i pass the ClientID then it will return everything about the client (beucase client was indexed on clientID)

Is it possible to write only one stored procedure to perform the two operations..

PS - I use SQL server 2K5

View 5 Replies

Pass A Sub To Another Sub

Dec 24, 2011

Is it possible to have

[Code]....

View 4 Replies

Asp.net - Pass Value From Javascript To Vb Sub

Feb 6, 2012

i have a javascript function in aspx file now i use vb as back in asp.net now i use postback from javascript like this

[Code]...

now i dont get that "1" in my vb code i want to get it because i want check when i get page_load event by post back by this javascript

View 2 Replies

C# - How To Pass A Value To The Code Behind Asp

Jun 8, 2011

Erm i am new to this. How do i pass the value the user enters into a text box to the vb code behind?

<input type="text" runat="server" id="amount" name="amount" size="15" />

View 2 Replies

Can't Pass Value To A Class

Nov 3, 2009

The value from the text box is not being passed to the class.[code]...

View 13 Replies

How To Pass Object As Sub

Jan 20, 2012

This code copose from Class including tow sub first sub to insert data in DB Ms access- second code: to check if there is same number of Tel if there is not same number will excute the first code insert, if there is same number of Tel it will show messagebox the problem that I faced is by how to pass object(InsertData) from CheckN sub. It showed me error : Expression is not a method

[Code3]...

View 1 Replies

How To Pass Parameters

Nov 27, 2010

If I want to use a FolderItem verb like 'Copy to folder', then I have to somehow supply the name of the folder to which I want the object copied. How is this done. I dont understand how msdn can be so minimal on examples.

View 5 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved