Hi al you wonderful daniweb peoplez :) I am currently on a mission to write some cool javascript / jquery / ajax controls and now i realised that if I call the control multiple times it seems to lose scope. I realise that this is a small design flaw, and would lie to know how I can correct this? I would like to create new instances for each call. Here is the javascript that would create the control: var testProperties = { testControlId: '', defaultText: 'Hello World', }; $.fn.watermarkInput = function watermarkInput(newProperties) { // Make sure that all settings have …

Member Avatar
+0 forum 0

Hi, I think this is a simple problem maybe on settings, I dont know but when I select a control in any form , even the form itself it doesn't look selected. What i mean is usual behaviour should show like square or dots around the control when we select or click it during design time, mine is that it is selected in document view but not in control itself. Just plain same as unselected. This can be deceiving because it looks nothing is selected. I cant give visual sample now because my problem prevents me to. Thanks a lot

Member Avatar
Member Avatar
+0 forum 14

Hi all, I've searched in the ASP.Net and AJAX forums but I can't see any matches to this issue. The reason I'm posting in the ASP.NET forum is that the Error is being caused by my ASP.NET designer page. Myself and another developer are both working on different parts of a web project. We are supposed to have a standard build of the same OS and we are both using Visual Studio 2013 Premium Update 4. We have both downloaded and installed the same AJAX tool kit. We have the same references (same solution) etc. But when I add an …

Member Avatar
Member Avatar
+0 forum 2

Is there a good pratice for naming form controls which are purely cosmetic? If not, any suggestions for variable names for these controls? E.g A label (which never changes) above a text box.

Member Avatar
Member Avatar
+0 forum 5

Hi Group! I'm curious to know, is it is possible to build a custom control in Visual Basic? Specifically, I want to build a control that would be similar that would be similar to a ListView (in the Detail "view"). However the difference would be in how it actually displays. Whereas the ListView displays selected data in horizontal manner one line at a time, I would like to display the data over 3 lines with the fields in varible widths. I've created a 'Panel' in the past with multiple TextBoxes to make up my "ListView". However I wasn't happy the …

Member Avatar
Member Avatar
+0 forum 2

hy i got a combo box and datagridview in my form and few other controls (to insert new record into my database),after the insertion is succcesful i want the inserted item to be displayed in my combo box and gridview by then only (i.e without restarting the project) could u please help me out..

Member Avatar
Member Avatar
+0 forum 1

I would like to convert Control objects wich are in my array to progress bar Objects if possible. I know that the reverse conversion can be done explicitly without a problem but this one seems tricky. If impossible then please suggest something else instead. TNX

Member Avatar
Member Avatar
+0 forum 2

Hi All, I have simple form with few aspx controls like dropdown, name, address, contact, email etc.. When i click on button these has to send to the server and thank you page has to come(need asp code only). Can any body help on this. Thanks in Advance.

Member Avatar
Member Avatar
+0 forum 1

Greetings People of Daniweb! I'm trying to add a 3rd party control to a form and I'm getting the following message: **Unable to cast object of type 'Microsoft.Practices.EnterpriseLibrary.Data.Configuration.SyntheticConfigSettings' to type 'Microsoft.Practices.EnterpriseLibrary.Data.Configuration.ContainerModel.ITypeRegistrationsProvider' ** Does anyone have any idea why this could happen? Any searches I tried on google brings back nothing about Winforms but instead seams to be focused on **Web Service Software Factory (WSSF,)** and mentions differences in versions of EntLib. I don't have any references to Entlib in my project, any ideas how I find what version I have? And do I need to add a reference in my …

Member Avatar
Member Avatar
+0 forum 2

Hi group, I'm looking through the book "Mastering Microsoft Visual Basic 2010" by Evangelos Petroutsos. I'm trying to work through a chapter on designing windows controls. In the first step the directions read: "Start a new project, and in the New Project dialog box, select the template Windows Forms Control Library." I'm using VB 2010 Express. It doesn't seem to have a template called "Windows Forms Control Library". Is there some place I can download this? I've not found it yet. Thanks for everything. Don

Member Avatar
Member Avatar
+0 forum 1

Hi, I have multiple Controls grouped in Groupboxes. I want to select the control from groupbox dynamically. For example, I am able to select the controls from GroupBox1 with the code below. However, I want to make it dynamically so that users can select any controls from any GroupBox. Would appreciate your help and suggestion. Thank you. Private Sub addSelectedClickHandlers() Try For Each selectedControl As Control In GroupBox1.Controls AddHandler selectedControl.MouseMove, AddressOf selectedControl_MouseMove AddHandler selectedControl.MouseLeave, AddressOf selectedControl_MouseLeave Next Catch ex As Exception Debug.Print(ex.ToString) End Try End Sub

Member Avatar
Member Avatar
+0 forum 1

using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; namespace NCPS.Forms { public partial class MDIParent1 : Form { Form_Main mForm = new Form_Main(); public MDIParent1() { InitializeComponent(); } private void MDIParent1_Load(object sender, EventArgs e) { mForm.MdiParent = this; mForm.Show(); } private void S_SMGP_Click(object sender, EventArgs e) { //mForm.T_Rows.Text = "4"; //mForm.T_Columns.Text = "3"; //mForm.T_Prefix.Text = "SM0"; //mForm.T_SeriesLength.Text = "8"; //mForm.T_PageLength.Text = "6"; //mForm.T_Date.Text = "Jul. 01, 2012"; //mForm.T_Pack.Text = "500"; //mForm.CB_Terminator.Checked = true; //mForm.C_Delimiter.Text = "space"; } } } Good day guys, I have here a code, in a class, where it should access …

Member Avatar
Member Avatar
+0 forum 5

i have created two forms and two controls, form1 has a button, form two has label. now i wanted the caption of my label to change after clicking on my button, but i just can not call in the control "label" into my button click event because there are from different forms. can anyone help me in the publi and private module??? thanks allot!

Member Avatar
Member Avatar
+0 forum 3

HI, I am looking for articles which gives complete information about custom controls and delegate information in asp.net.I have seen many sources but i didn't get proper informations. Please let me know if know any good resources.

Member Avatar
Member Avatar
+0 forum 4

Hi All, I need to load varying Custome controls to one page with differnt panles,I have to load Custom control page according to selection of Criteria. Thanks

Member Avatar
Member Avatar
+0 forum 3

Hi All, Just to say that I've searched DW and Google extensively before posting here. Also looked at the jQuery site, but failed to find exactly what I'm looking for. Anyway here's the thing: I have a button on a form, that when it's pressed inserts some new inputs (textboxes) to the form. Then another button should copy the contents of the first of these inputs to all the others. Now, this is tricky, js tells me that these inputs are undefined, presumably as they are added after page load. I've looked at .bind(), .delegate(), .live() and .on(), but can't …

Member Avatar
Member Avatar
+1 forum 2

Lately I have been using the program name to control the program execution. If the name has "random" in it then random. If it has "mix" in it then it plays / displays a mix of text and video - pictures - audio. The 3 program prompts are set based on the name. Great for testing and setting up super simple demo apps. Just asking?

Member Avatar
Member Avatar
+0 forum 5

Hello Daniwebbers I have a 2 dimentional control array which gets added to it programatically. There's a lot to add to it but i have already stumbled at the first hurdle. I keep getting the standard "Object reference not set to an instance of an object." error when the first control is added. Control array is initialised: Control[ ][ ] TControls = new Control[6][]; Controls are added: t = 1; TControls[t][1] = new GroupBox(); TControls[t][1].Visible = false; TControls[t][1].Parent = gbtasks; TControls[t][1].Name = "t" + (t + 1).ToString(); TControls[t][1].ForeColor = Color.SeaGreen; TControls[t][1].Text = (t + 1).ToString(); TControls[t][1].Size = new Size(262, 42); …

Member Avatar
Member Avatar
+0 forum 4

I have GroupBox that is populated by Button controls, and a combobox that populates the groupBox based on the selected number in combobox(8, 16, 32). This is my populateGroupbox method private void populateGroupbox (GroupBox gBox, int number ) { for (int i = 0; i < number; i++) { Button btn = new Button(); btn.Location = new Point(16, 30 + i*30); btn.Text = (i + 1).ToString(); btn.Width = 40; gBox.Controls.Add(btn); Application.DoEvents(); } } Based on the number param in that method it adds that many buttons. Now here is my problem, if i select 16 or 32 controls kinda spill …

Member Avatar
Member Avatar
+0 forum 1

Hello my fellow Daniwebers, I have a question for you. I have an asp.net page that contains a structure that looks like so: <asp:MultiView> <asp:View> <asp:UpdatePanel> <asp:Panel> <asp:TextBox ID="txtStartDate" runat="server" AutoPostBack="true" /> <asp:TextBox ID="txtEndDate" runat="server" AutoPostBack="true" /> </asp:Panel> </asp:UpdatePanel> </asp:View> </asp:MultiView> The curious problem is that I can't reference the two controls. (The code behind is vb.net) I have used: txtStartDate.Text and Dim txtStart as TextBox = FindControl("txtStartDate") Dim txtStart as TextBox = panelName.FindControl("txtStartDate") To no avail. Some times they will retrieve the control, but most of the time they will return null values. Has anyone else had this issue …

Member Avatar
Member Avatar
+0 forum 8

Hello, I found this link but i satisfy my needs ... i understand too http://www.dotnethunt.com/12/add-runtime-controls I can anybody suggest these link is very helpful to it correctly ?

Member Avatar
+0 forum 0

I'm trying to create dynamically text box in WPF. It is very essential that I will have the flexibility to determine where the text box will be - in pixel level. I have found many answers which use stackpanel to create "run-time" text box - but couldn't find how to construct it according to specified location. the textbox has to be "word wrap" and I'm using a button click event to create the text box this is the code for now, I really don't know which methods or properties will be helpful. thanks :) private void button1_Click(object sender, RoutedEventArgs e) …

Member Avatar
Member Avatar
+0 forum 1

I am making a c# level editor and it is a bit out of my league but it should be good to learn oop algorithems. I have only just started and have already come across a problem. ** I need to load images as sprites and then create a button with the image on and the button's text being the images name. **The button will then call a diolog box which will contain a load of check boxes about which premade methods the sprite will use. All the information: checkboxes, name, image will later be compiled down to a class …

Member Avatar
Member Avatar
+0 forum 6

Hello my fellow Daniwebers, I have a question for you. I have quite an odd problem that I have researched and have not been able to find a solution. I have a formview, named frmStatus, from which I am trying to retrieve controls to check for values. The form is in Insert mode and contains three drop down boxes, from which I am trying to reference. Here is what I have tryed: 'Declaration of variables' Dim cboStatus As New Control Dim cboAction As New Control Dim cboChange As New Control 'Assigning the controls.' Protected Sub frmStatus_PreRender(sender As Object, e As …

Member Avatar
Member Avatar
+0 forum 1

Hey there, I have an application which have multiple tab pages. On of these pages I have a group box with many controls that do something. Now the problem is I want to add exactly the same group box by the current one that can have different paparemeters. This is exactly the way that i want to add comparison capability between to set of parameters. I have more than 500 lines of code that responde to changes of these parameters and does something. Is there any way to replicate the the whole gropbox and use the same code for both …

Member Avatar
Member Avatar
+0 forum 1

This code demonstrates how to add controls to a form at run time. The number of rows and columns, the spacing between the controls and the size of the controls are all determined by Consts, but this could easily be changed so that the parameters are user entered. My example adds two handlers to each textbox. I will be posting a refinement to this that uses a TableLayoutPanel to position the controls. Suggestions on how to improve this code are always welcome.

Member Avatar
+3 forum 0

Hi, I have this question about the control triggers, I have this project that have textbox, using it's textChanged function and setting the autopostback in to true. Now, when I trace the command I have notice that the function have been triggered twice, and I just want to know now how that happens and how I can set this to trigger only once. Thanks, JButardo

Member Avatar
Member Avatar
+0 forum 1

I'm creating a custom `ComboBox` that allows the user to select a date; the calendar display is localized making the built-in `DateTimePicker` undesirable (see [here](http://support.microsoft.com/Default.aspx?scid=kb;en-us;889834&x=18&y=19) for more information). I need the UI control to mirror the look and feel or the existing components. Here's what I've tried and the problems I've encountered: * Using a `TextBox` with a drawn `ComboBox` button: I've tried using `ComboBoxRenderer.DrawDropDownButton` but the look and feel does not mirror the existing UI controls. In particular we don't have `Application.EnableVisualStyles()` so the buttons have a Windows 98 look and feel. `ComboBoxRenderer` draws a glossy grey button. * …

Member Avatar
+0 forum 0

Okay, first off, this is not a thread for an answer like "Use delegates", or the like. I know how to use them, but one time I forgot to use them, and when going over my code, it worked, and I've been wondering why for a while. http://screensnapr.com/e/xx68FK.jp[/img] The image shows what I am saying. All the ones that have boxes around them, do not work. However, the ones that [b]do not[/b] have boxes around them, do work. I can honestly not come to a conclusion as to why this is at all. I am stumped.

Member Avatar
Member Avatar
+0 forum 2

I have a masked text box and two text boxes. I would like to save all of these fields so that when the "open" button is clicked the field repopulate.... anybody have any idea on how to do this? If so please help me out. thanks in advance :)

Member Avatar
Member Avatar
+0 forum 4

The End.