Ok here is the required feature: To send data gathered from a database inside a UserControl to the main form which houses the UserControl. Hierarchy at present: Mainform --FlowLayoutPanel ----UserControl The UserControls are generated on the fly by a client list in a database. This all works fine. When you click on the UserControl, the UserControl gathers the information associated with the client and stores them in to strings. What should happen is the strings are then passed and set on screen to the main form, but this doesn't happen. There is no real point in me posting code from …

Member Avatar
Member Avatar
+0 forum 7

hi friends pls let me know how to add products to my basket which was in masterpage and how to do caluculations with them

Member Avatar
Member Avatar
+0 forum 1

Hi, Im trying to convert my UserControls to be sharable across multiple projects. I have read up on this, and it seems that I need to have all code in one file (i.e. in the .ascx, rather than codebehind/designer) so I am trying to do this: [CODE] <%@ Control Language="C#" AutoEventWireup="true" ClassName="ImageButton" Inherits="Button" %> <%@ Register src="Button.ascx" tagname="Button" tagprefix="MIKE" %> <script runat="server"> protected override void OnInit(EventArgs e) { this.ImageTag.Src = ImageStartPath + "/" + ImgSrc + "_Up.png"; base.OnInit(e); } ... [/CODE] the problem is, that despite the "Inherits" attribute on the <%@ Control tag, set to "Button", which is the …

Member Avatar
Member Avatar
+0 forum 5

hi, i am creatnig an windows desktop application. and in the main form i have a menu stript. what i want to do is attached one user control to eacn menu stript. each user control has a different design. how can i do this??? any tutorial

Member Avatar
Member Avatar
+0 forum 2

Hello! I need a way to have 3 colums of checkboxes inside a checkedlistbox. I know i could do it with a panel, labels and checkboxes. But having them all in the control would be more convenient. I'm pretty sure there is no direct way of doing this, so i assume i need to create a user control. If you're not completely sure what i'm trying to create, i'm going for something that looks like this: [IMG]http://i53.tinypic.com/311t2ip.png[/IMG] Thanks, Olivis.

Member Avatar
Member Avatar
+0 forum 1

I have created a user control and i am using it in login view control. to get the value in the textbox the code is [CODE] TextBox mytext = (TextBox)LoginView1.FindControl("mycontrolname"); [/CODE] but when i try to do the same with usercontrol it is not working; ie. I am unable to create object of my usercontrol (my usercontrol are client control)

Member Avatar
+0 forum 0

Hello, I have a very strange issue and am not sure why it is happening or how to prevent it. Envionment: .NET Framework 3.5 WinForm application C# VS2008 Pro Issue: I have a WinForm containing a TabControl which has a custom usercontrol on two of its TabPage. The usercontrol i created contains 3 DataGridView controls. Everytime I go into Desiger of my WinForm, I see that there are SIX (3 * 2) instances of a DataGridView control created. They are all numbered such as dataGridView13, dataGridView14, etc... Along each of those DataGridView instances, the associated DataGridViewTextBoxColumn and DataGridViewCellStyle instances are …

Member Avatar
+0 forum 0

I have a web page: [url]www.netstorerosario.com.ar[/url], and I now a lot of mistakes I made on it. I decided to correct them all. In order to do that I need to know which option it's the most efficient. In my page, to show product in the index.aspx I use user controls. I was wondering if it's better to write that same code using response.Write() method. (I create the page based on a template, so YES, w3c show a LOT of mistakes) Thanks in advanced, and sorry for my english. Mariano

Member Avatar
+0 forum 0

Hello, I am working in MOSS project tried to fetch records from Picture Library having folders with images. Creating UserControl in c# to fetch all these records but it didn't fetch images from folders. Tried some file handing but no success. OR help me to find any webpart for picture library in sharepoint ? regards, AG

Member Avatar
+0 forum 0

Hello... I have a composite control inside a repeater and I am trying to databind its properties like so (simplified example) : [CODE]<uc1:Control ID="id" runat="server" Value='<%# Eval("value") %>'>[/CODE] This works fine when I include the repeater inside a web user control, include that web user control inside ANOTHER web user control and then place the top level web user control onto a page - when I inspect the Value property inside of the composite control's EnsureChildControls() method that property's value is correctly set from the database. However, when I place my repeater with the composite control in it inside a …

Member Avatar
+0 forum 0

Hi everybody. I have an UserControl (Windows Application - .NET Framework 3.5) which is composed of a TextBox and ListBox: it should pretty much emulate a "suggestion box" just like the ones in Google and other various search engines. Now, the initial status of this control (TextBox blank) imply the ListBox listing the suggestions to be invisible, and that's where it comes the pain. No matter I set the Visibility of the ListBox to false and even the BackColor of the UserControl to Transparent: it's still taking up his space greying the lower level controls. I hope I've explained myself …

Member Avatar
Member Avatar
+0 forum 8

We have a MDI main form, which contains a main menu and holds the properties and routines to - select, read and write a selected DAT-input file, and to convert the data to and from a MS-Access database - open forms like grids and specificly an InpMatrix (which shows INPUTMATH data). This InpMatrix is a form with a TableLayoutPanel (TLP) which contains a matrix of usercontrols and holds the properties and routines to - read and write data the MS-Access database from and to a (temporary) dataset. - Draw a matrix with usercontrols, and fill it with data from the …

Member Avatar
Member Avatar
+0 forum 2

Help please... I have a WPF window that contains several WPF user controls. I am using VB express. How can I reference the controls in a UserControl from the main window? Thanks

Member Avatar
+0 forum 0

I have been working on a custom Hue Slider, when you drag the knob the color of it changes to its hue value. (ex 0 is red). I added a little gloss to the knob, I feel its not done, I Just don't have any Ideas as to how to give it finishing touches... any ideas people? I would like it to look a little more professional. image attached:

Member Avatar
Member Avatar
+1 forum 15

Hello, I am training as a future software developper, so maybe my problem can be solved differently, but for education the following problem is the problem (and not some code with a specific aim). Have have an application (a Mastermind clone) in Windows Forms mode. Everything is inside of different UserControls wich contain a variety of components (as labels, buttons etc.) I can navigate between the UserControls that all have the same MindMasterForm as parent. And now I finally have another form (MindMasterColourForm), from which I want to set the properties of any component on the active UserControlGame on the …

Member Avatar
Member Avatar
+0 forum 21

The End.