Refer To The Extendee From The Extender?

Jun 27, 2009

how can i implement iextender so it adds a property to all textboxes in my project. the class that i want to implement iextender from is a usercontrol, and the property will be similar to the imagelist property in listview properties. also how would i refer to the extendee from the extender?

View 2 Replies


ADVERTISEMENT

Asp.net - DateTime In Calendar Extender?

Mar 11, 2009

I am using calendarextender control in asp.net.It displays only date ,not time.But while inserting to database ,time is inserted automatically.But while retrieving the data from database using date in where condition ,no correponding records displays.What modification in storedprocedure i can do to resolve this problem.

View 2 Replies

Building An Extender Provider?

Oct 30, 2011

I am trying to learn building an Extender Provider.I use VB 2008 express.I found an example in a book which adds an "ExtraTag" property to Labels and TextBoxes:

Imports System.ComponentModel
Imports System.Drawing
Imports System.Windows.Forms

[code]....

View 3 Replies

.net - Error Associated With Ajax Calendar Extender

Mar 25, 2009

I have a textbox to display date.Onclicking on textbox ajaxcalendar has to be displayed infront of textbox .But now its coming behind textbox.So not able to select date.Can anybody help to bring calendar infront of textbox.

View 1 Replies

Ajax Auto Complete Extender Not Working Right

Mar 22, 2012

I'm trying to use an ajax auto complete extender, but it's not working. I put a break point on the GetCompanyNames method in the web service, but it doesn't even hit the break point.

Here is my ajax autoextender
<asp:TextBox TabIndex="1" ToolTip="* Required - enter the Company name" ID="txtCompanyName"
runat="server"></asp:TextBox>
<ajaxToolkit:AutoCompleteExtender runat="server" ID="acCompanyName" TargetControlID="txtCompanyName" ServiceMethod="GetCompanyNames" ServicePath="~/WebServices/AutoComplete.asmx" MinimumPrefixLength="1"
EnableCaching="true">
[Code] .....

View 1 Replies

Use AJAX Auto-complete Extender *without* A Webservice?

Apr 23, 2009

Using ASP.NET 3.5 with VB codebehind.

I don't want to use a webservice to populate an autocomplete extender on a textbox. In this case, it's where the user is entering email addresses and I don't want to make a trip to the database every single time. I'd much rather keep a collection in session state and 'bind' the autocomplete to that.

Is it possible to set ServicePath and/or ServiceMethod to something in the codebehind as opposed to a webservice?

View 3 Replies

Use Ajax Toolkit In ASP.NET Page To Display A Calendar Extender?

May 31, 2010

I'm trying to use Ajax Toolkit in ASP.NET page to display a Calendar Extender with this code, but it's not working for me.

<form id="form1" runat="server">
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>

[Code].....

View 3 Replies

AJAX Calendar Extender / Textbox Values Always Null After Postback?

Nov 9, 2011

Im sure this is a very simple and easy to answer question but I've been looking at this too long and being new to ASP I cant seem to find a solution that works.

I have an ASP calendar extender, I click it and the calendar displays as expected, the selected date appears in the textbox, but when the page then posts back I cant get the selected date value from either the textbox.text or the calendarextender.selecteddate properties, I tested this by trying to assign these values to a string variable in the page_load event.

[Code]...

View 1 Replies

Asp.net - Controls (buttons) Be Set In A ModalPopup Extender Panel That Do Not Close The Panel?

Apr 21, 2009

When a user is editing a given piece of data, they're allowed to add messages/comments. These are stored as child records in a SQL database. Clicking on the Add Message button brings up a panel (pnlMessage) courtesy of the AJAX ModalPopup Extender. This takes some input and, when the "Send Message" button in the panel is clicked (I learned the hard way to NOT make that the 'OkButton' property), the message is stored in the database and an email is sent to the intended recipients. No problem there.

However, I need to be able to allow the user to add new email addresses (so long as they are registered in our database). I have another ModalPopup / panel combo (pnlSearch) that's tied to a button on the previous panel (pnlMessage).

The user is supposed to be able to add an email or click on a search button to populate a list to choose from.

The pop-up panel (pnlSearch) comes up just fine, but clicking the "Lookup" button (which instigates the search and returns a collection of records that the user is supposed to pick from) closes the panel.

Previously, I ran into the problem of having the Button.Click event never firing when I put the Button into the "OkControlID" property (the CancelControlID works fine since I don't want to do anything). Removing the "OkControlID=Button" line allowed it to work perfectly with the Button.Click event firing as expected.

So now I have the Search panel with a button for "OK" and a button for "Search" - but the panel should stay up and visible after the Search.Click does it's thing. Am I missing some property that basically says "don't close the panel when this button is clicked"? Of course, if I bring up the panel again in the same session, the results from the previous effort are there (the search results).

View 1 Replies

Forms :: Refer To Another Sub?

Nov 28, 2009

I have a program that used information form treenodes and put them in the textbox after timer ticks the problem is that i should use AddHandler for ticking, but i dont know how to refer to the title() and name() because they are not on the same sub private

[Code]....

View 1 Replies

How To Refer To A MessageBox

Aug 25, 2009

I am amateur programmer.so far, I can use Visual Basic .Net only. That is all I know!!How can I refer to a MessageBox?or how can I Programatically handle a MessageBox after it is displayed?I need to close a MessageBox after certain time if no response from the user.

View 3 Replies

Refer To An Object By Its Name?

Jun 18, 2012

Is there a possible way to refer an object through it's name in Vb.Net?The case is, I have menu items created in my designer with names such as MenuA, MenuB and MenuC.On the database, I created a table consisting the list of all available menus in string format : MenuA, MenuB all the way to MenuZ.

Also I created a dynamic table consisting the user permission, what menu is accessible by a certain user.So when I started the app, it will get the name of menu assigned to the logged user, and start to turn the Visible property to TRUE.If it was a Control, I would just loop through it by Parent.Controls.Find(FoundMenu, True).My problem is most of it is not a control, it is an Item added to the Control, or even another SubItem added to the Item.So how can I found an object in my UI only by it's name?

SearchQuery = "SELECT menu_name FROM tbl_menulist menu, tbl_user user WHERE menu.id_menu = user.id_menu"
QueryReader = ExecuteQueryReader(SearchQuery)
QueryReader.Read()

[code]....

View 1 Replies

VS 2005 What Value Is Or What It Could Mean / Refer To

Jan 14, 2010

Can anyone tell me looking at this picture what Value is or what it could mean/reffer to? (S-1-5-xx-xxx)I had to block out some of it since I am not sure what it means.

View 2 Replies

Can Refer To Samples Of Such Apps?

Aug 15, 2011

I would like to develop a VB.Net based smart device app. A simple one. Do any of u know where i can refer to samples of such apps?

View 2 Replies

How To Refer Text Box As Username

Nov 18, 2011

I am creating a project using VB, and I am new to VB, I am still a beginner, I need help in retrieving email address from database when I enter the username, I have added the code below, please review it and let me know, basically when I enter the username it has pull the email address and display in the label..[code]I am stuck at the sql statement as I have no idea how to refer the text box as the username i.e "& uname" it is the name of the text box, is it the right way, also then as I informed I need to paste the email address in the label and the name is label2, I am trying it as " label2.text=da" but I get a error message, I am using Visual basic professional 2010.

View 11 Replies

'dynamically' Refer To A Variable?

Aug 18, 2010

I have a bunch of string variables, string1, string2, string3 etc.At the end of my program I want to write these strings to a file, but I don't want to have to laboriously type out string1, string2, string3 etc.

It would be much easier to use a loop to dynamically refer to (string & loopcounter), ie reference the variable by dynamically concatenating its name from a string and a number. Python can do this with eval(). How does VB do it? I can think of loads of examples where it'd be useful. Otherwise I have to type out all the different conditions and that's not efficient.

View 1 Replies

Cannot Refer To Itself Through Its Default Instance

Sep 2, 2009

am making a super advanced text processor and i am at the point where i am trying to make print preview dialog [code] Word_Env.Form1' cannot refer to itself through its default instance; use 'Me' instead.i have tried "Me" but that don't work.

View 2 Replies

How To Programmatically Refer To A Control

Aug 23, 2011

This was explained in a recent thread - but I can't find it again :-( Why won't the following work? I am trying to set the bounds on 9 buttons - Button11 to Button19. All these buttons are already added in design time. qli() is a rectangle array.

[Code]...

View 9 Replies

How To Refer To Columns In An Array

May 7, 2012

I am very new to programming so I apologize if I am asking really basic questions here, but how would I go about referring to a specific column in an array? I am trying to use the prices in one column of my array and multiply that by a quantity, but I am not sure how to extract the price out of the array.

[Code]...

View 4 Replies

How To Refer To Container Of A Usercontrol

Mar 9, 2011

I have a user control called UCO and it is being put in many diffrent forms.How can i refer to these forms from the code of the UCO?For instance, how can i get the color of the form and make the UCO have the same color?

View 1 Replies

Make A Control Refer To Itself?

Jan 13, 2009

Im working on a project and just wanted to know to make a control refer to itself?I know that by using the word "Me", the system refers to the form but how about the control. I know that i can simply name the control (e.g. txtSurname.Clear) but if i was to use the code on multiple controls it would save alot of time if the control could simply refer to itself!

View 7 Replies

Refer An Object In Its Own Event?

Dec 22, 2009

I am doing a calculator project.In the given code below I want to modify the line txtDigitPanel.Text = Trim(txtDigitPanel.Text) + "0" as txtDigitPanel.Text = Trim(txtDigitPanel.Text) + this.text (the word 'this' is taken as a reference to the object that has invoked the event ) to avoid hardcoding. Because when I copy the BtnZero, the same code will work for other digits also. Is it possible?

Private Sub BtnZero_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
If Len(Trim(txtDigitPanel.Text)) < 15 Then
txtDigitPanel.Text = Trim(txtDigitPanel.Text) + "0"[code]....

View 3 Replies

Refer To .net Dll From A .net Web Application Asynchronously?

Feb 9, 2011

I've a vb.net web application where I'm referring to another vb.net dll by adding the reference of the dll and creating the object but after the call it waits for dll to finish operation and return a value before moving forward, is there a way I can do the same job asynchronously.

View 4 Replies

Refer To A Numeric Variable?

Oct 8, 2010

In VB 2010, I am trying to use this query, but I always get an error message because the numerical variable CHAVE is not correctly called. STATUS and HISTORICO are string type fields, that will be filled by the string variables SITUACAO and DESCRICAO.DIA is a date type field and will be filled by the date type variable PROXIMA.CHAVE is a numerical field and should be filled by the numeric variable CHAVE.

sql = " INSERT INTO " & conta & " (status,dia,chave,historico)" & _
" VALUES ('" & situacao & "', #" & Format(proxima, "M/d/yy") & "#, & chave &, '" & descricao & "') "

View 6 Replies

Refer To All Of One Type Of Control?

Jul 8, 2009

Refer to all of one type of control?

View 2 Replies

Refer To Form By String?

Dec 20, 2009

How do I refer to a form in my project by using a string variable? I'm running Visual Studio 2008.My main screen has a number of dropdown menus that, when an item is selected, a form will open:

Dim Mdi_frm_Doors As New frm_Doors Mdi_frm_Doors.MdiParent =Mdi_frm_Doors.Show()In this example, I am providing the name of the form directly (frm_Doors). What I would like to do is refer to the form as a string variable.I'm already doing something similar to access specific controls on other open forms (where str_Field is the name of the control I am accessing):

[Code]...

View 1 Replies

Refer To Label By Its Name In A String?

Apr 22, 2010

I have a string called testlabel, and would like to refer to it via the string "testlabel", how do I do this?

for instance:

dim testlabel as label
dim a as string = "test"
dim b as string = "label"

'what is the line I need here? a & b.text = "hello world"

to get testlabel.text to read "hello world"?

View 1 Replies

Refer To Many Checkboxes Or Other Controls At Once?

Dec 26, 2009

Refer to many checkboxes or other controls at once?

View 8 Replies

Refer To Object By String Value

Nov 12, 2010

Is there a way to reference an object by using the value of a string read from a text file? Here's an example of what I mean: I have a user control called 'Fish', one called 'Cats', and one called 'Dogs' and so on.... I have a text file containing this line, amongst many others in a long script written after compile time by the user:

[Code]...

View 2 Replies

Refer To Part Of An Array?

Apr 16, 2012

I'd like to know if it is possible to refer to section of an array. e.g.

dim a(10) as integer
foo(<reference to array a starting at item 2>) 'only use items 2 to 9 of the array
...
sub foo(byref a() as integer)
<do something with array>
end sub

Note that I don't want to copy the array to a new array or pass in indices, if I can avoid doing so. Subroutine foo should be able to process the array without knowing if it gets the whole array or just a section.

View 13 Replies







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