Asp.net - Custom Control - Solution Ideas?

Jan 17, 2012

I have a custom user control that inherits asp:Repeater and get's 'initialized' on first run - it finds the children controls (in repeater item template) and creates a SQL table based on a tablename property provided as an attribute on the control. To know not to initialize it again, I simply check for the table (this has issues).

My problem is, tablename property should not be changed after initialization, days or even weeks later.

How can I tie a readonly property and value to a particular control only after initialization?

Sounds pretty tricky, maybe impossible. Out of the box solution?

View 2 Replies


ADVERTISEMENT

Custom Serialization And Circular References, Is There A Clean Solution?

Aug 3, 2010

I'm implementing some custom serialization (to byte array), and have run into a problem handling circular references.Example:

Class A
public MyBs as new List(of B)
End class

Class B
public MyParent as A
public MiscInt1 as integer[code]....

If I know that an instance of B will only ever be serialized through the serialization of an instance of A, then I can handle the setup of the MyParent reference from the instance of A and not even record that information inside the byte buffer for the instance of B.This doesn't feel quite right, but it might be the best solution.

View 1 Replies

Ideas On Implementing .NET Properties In T-SQL

May 16, 2012

As I design my system using VB.NET with SQL Server/T-SQL I'm always struck by what seems to me an obvious gap, namely VB Class Properties. Say I have a table Employee with columns: [code]In VB I might have a class like:[code]So my property SpeaksAForeignLanguage depends on two fields currently. Perhaps someday this will change and more fields or conditions might come into play. THAT'S THE WHOLE REASON for using properties.Now if I need the equivalent of my property in SQL for whatever reason there's no way to do it other than to recode some SELECT statement using the two Knows... columns.

View 1 Replies

New Ideas For Graduation Project

Sep 13, 2009

new ideas for graduation project maybe on vb.net or java or any good ideas , maybe a mobile application.

View 1 Replies

Specify A Custom Icon For Display In The Toolbox Window When Create Own Custom Control?

Dec 29, 2011

how to specify a custom icon for display in the toolbox window when you create your own custom control? Something other than the dreaded "gearbox" icon.

View 2 Replies

Network Messenger Needs Improvments And Ideas Please Check It Out

Mar 10, 2011

So I have had some "free" time at work and came across a write up some where on these forums yesterday for a messenger system. I would REALLY like to give credit where credit is due because alot of the source for this was borrowed from the write up on here but I don't remember where the write up is located or who wrote it so please if you have a link to it post it. Thank you again to who ever wrote it. Any how on to this. I have expanded the origional messenger I found on d.i.c to include multi-user "chat" if you will. It is still a basic p2p messanging system because you can only talk to one person at a time but you can speak to multiple people in the same window. So far I have been able to get it to work across our LAN here at the office but am wondering if I can change the text file locations to an FTP some how and make it internet based. I am sorry for the uncommented code as I was in a rush cranking this out but it is fairly simple so you should be able to read through it with ease.[code]

View 2 Replies

Custom Control With Custom Collection Property?

Jul 11, 2011

I have an ASPX Custom Control which is supposed to load it's properties into an internal collection (defined with PersistenceMode.InnerProperty). Here's the ASPX

<cc:CustomControl runat="server">
<Queries>
<cc:QueryTypeOne ... />

[code]...

View 1 Replies

VS 2008 Ideas Requested - Playlist Independent Of Source Files Location

Mar 24, 2010

Since I had some trouble with my Windows Media Player playlists lately, after moving the music from one HDD to another, I decided to try my hand at my own playlist manager / editor. I've got a few ideas that I think may make it very useful, even if it's just for myself (I'm finally starting to worry about organizing my music as it's getting a little crowded now).

[Code]...

View 2 Replies

Changing Text Of Custom Control Based On Text Of Another Custom Control

Jan 11, 2010

I am using custom textboxes and I need to be able to set the Text on txb1 based on the Text of txb2. I have simplied my code to the following:

Public Class customtextbox
Inherits TextBox
Public Event ControlReset()

[Code]....

So, when txb1 looses focus, if its Text is "fried", then it sets off txb2's ProcessAlert function. I had tried to change the value of txb2 Text in ProcessAlert function, but didnt work, so I tried to get it to raise an event instead, which then tries to set the Text property. However I still cant set txb2's Text property. The Text property seems to be set for the duration of the "life" of the Event handler. When I step through the forms controls within the Event handler, the changed Text value is there, but not outside of the Event handler.

View 2 Replies

Handles Button.click Event From Custom Control Inside Other Control?

Jul 29, 2009

I've created my own ascx control with button inside it. Now I'm using this control inside other control. (In my case it is a webpart). What I would like to do is program button.click logic from my custom control inside webpart

View 4 Replies

Can A Custom Control NEW Sub Be The Only One That Executes When Inheriting From An Existing Control

Jul 17, 2011

Can a custom control NEW Sub be the only one that executes when Inheriting from an existing control please?I am Inheriting from TabControl and I do not want the base New Sub called, is this possible?In other words, I do not want TabPage1 and TabPage2 to be added.A Form has an Activated Sub which runs once a Form is activated.It is a pity that Microsoft have not got such a method in the baseControl Class otherwise I could have used it within a custom TabControl.

Public Class Form1
Private Sub Form1_Activated(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Activated
End Sub

[code]....

View 8 Replies

Embed A SilverLight Control In ASP.NET Control (user Or Custom)?

Apr 29, 2010

We have a ASP.NET web application written in VB.NET where we build content programmatically during the Init event.We make extensive use of user controls, building them on the fly, and I now want to start including SilverLight content.Is there an easy way of embedding a SilverLight application in a control, and then instantiating the whole thing in code, in the same way as you'd programmatically add ordinary ASP.NET controls to a page?The SilverLight component itself works fine when added to a page using the <object> tag but I really want to be able to reuse it elsewhere in code.Since I'm expecting use of SilverLight to increase in our application, and the asp:Silverlight control seems now to be deprecated, I'm looking for an alternative way of wrapping the content.

View 1 Replies

Get Custom Properties For A Custom Control Into The Visual Studio Properties List?

Nov 25, 2009

What I've done is create a User Control Library (Project) and I've added a single User Control to that project. The control contains a single FlowLayoutPanel, and I created a Property on the control itself to pass the FlowDirection from the Control to its FlowLayoutPanel child.

Build, reference, component appears in the Toolbox and everything works fine, but the property on the control does not appear in the Properties window when I go to edit it at design time.

View 6 Replies

Know About User Control And Custom Control?

Jan 9, 2012

I want to understand N-tier architecture like when to use and so on.Also I would like to know about user control and custom control.

View 4 Replies

Make A Listview Custom Control Based On The Standard Listview Control?

Sep 2, 2011

I am trying to make a listview custom control based on the standard listview control that will allow me to drag a column header outside the standard listview control and drop it on a panel. I plan to use the drop event to determine which column I should group by view on.

View 2 Replies

Add A Custom Control?

Jul 4, 2010

[URL]I tried dragging it but it didn't work. I'm not used to the IDE. Also, how would I make that control at runtime and place it on the form I understand you would do

PHP Code:

Dim myAccount as new TAccount

But how do I display it on the form?

View 2 Replies

Custom Control In .dll?

Apr 2, 2010

I want to create a custom control in a dll file.

I can make this without a dll file, also inside a normal project, making a class for it and inheriting the desired base control class, compiling the project and the toolbox has the custom control.

But now I want to make it in a separate file, in a dll file. I use vb express 2008.

I start a new class library project, add the reference System.Windows.Forms to the project and add this code (this is only an example):

Inherits System.Windows.Forms.Button
Private Sub New()
Me.Backcolor=Color.Red
End Sub

I compile the project and get the dll file. Then I add this file to the toolbox, but I get the error message: "this control has no components."

View 3 Replies

How To Use Custom Control

May 3, 2010

I'm trying to play with this: [URL]..I have no clue how to use it though.What i THOUGHT i had to do was open the project and "build" it to produce a .dll or something which i would then add as a reference in my new project. I'm unable to open the solution so i could not test this theory.

View 6 Replies

Opening A Solution File It Was Saying "The Selected Fiel Is Not A Valid Solution File"?

Mar 27, 2012

Till yesterday I was working fine with my Project.I din install anything new, am not trying to open my solution file with a different version also.Today when i tried opening my solution, it was saying

"The Selected Fiel is not a valid solution file"

"The Operation could not be completed.Unspecified Error"

Microsoft Visual Studio Solution File, Format Version 10.00

# Visual Studio 2008

Project("{54435603-DBB4-11D2-8724-00A0C9A8B90C}") = "??E", "..Setup2Setup2.vdproj", "{600F8FB2-B9A9-4138-B7E7-FE7B39815CC1}"

EndProject[code].....

View 6 Replies

Add A Custom Control To A Database?

Jul 1, 2010

Im trying to add a custom combobox to the database, the problem is i cant figure out how to do it. This combobox has images in it, i had to find the code to put the images in it cause the .net framework does not support icon's in combobox's. here is the code i found, cant remember where i got it, i think from code project.

Spoiler
Public Class ComboIcon
Inherits ComboBox

[Code].....

View 2 Replies

Add Property To Custom Control?

Apr 3, 2010

I have created a custom class, which contains a panel and a label on it. I added to this class a pcaption property, which holds the label text. This property is browsable and I can change its value.But when I drag the custom control to the form and change the pcaption property, it has no effect. Even the <Defaultvalue> has no effect. Why?

Here is the class code:

Imports System.ComponentModel
Public Class mypanel
Inherits Windows.Forms.Panel
Private panelcaption As String

[code]....

Color values are unimportant, you can change it.

View 3 Replies

Cannot See My Custom Control In Toolbox

Nov 19, 2010

I have created 2 WPF control which reside in the same folder and i want to add one control to the other.

The controls are added in a Win Forms project.

the thing is that in a custom Win Forms control I can see my two WPF controls in the toolbox but in the WPF designer I cannot see any WPF controls.[code]...

View 2 Replies

Clear A Custom Control?

Oct 29, 2009

I took over a project for another individual. He has created a variety of custom controls (which I have no experience with). So one of these controls is displayed as a combo box. (It is called ctlTechnician). There are 4 items on the dropdown list. What I am trying to do is to set the selected index to -1 (along with other things) when the user logs off so that the control is back to its original state.[code]....

View 2 Replies

Creating A Custom Control Box?

Dec 15, 2009

Is this possible? I am trying to create my own "X" and "minimize" buttons on my form -- the only way that I can currently think to do it is by making my form have no border, and creating a 'fake' menu bar using labels and buttons for minimizing and maximizing. The goal here is to be able to have custom icons for maximize, close, etc that may not match the Windows default scheme.

View 1 Replies

Creating A Custom Control?

Apr 15, 2010

want to create a custom control of the button such as the button will be a bit enlarged and with a different colour.A custom control is a class that either inherits the Control class directly or some other control.So Iadded class named class1.vb and added this line:Inherits System.Windows.Forms.Button

View 6 Replies

Custom Control Collection?

Dec 29, 2011

I know how to create custom controls with all sorts of properties, but I cannot get a collection property to work

View 3 Replies

Custom Control For Splitterbar?

Jul 26, 2011

I looking for someone who are familar with custom control. I want to create two panels and the splitterbar to have a button in it where i can click to expandablecollaspe on either of the panels. I tried to use splitContainer where I can resize between the two panels and expandablecollaspe them, but I can't make the button on the splitterbar.

View 3 Replies

Custom Control From Scratch?

Jun 13, 2009

This is purely academic-- I'm looking for an example of a custom control, created from scratch as in not built out of existing controls, you're actually handling drawing it, ect entirely yourself.

View 4 Replies

GetDataPresent On Custom Control?

Oct 13, 2010

I have a custom controll that is created at runtime this contol has several lables and list boxes. I want the user to move the controls from one panel to another. an not find the cirrect wat to impliment e.Data.GetDataPresent(DataFormats.???)

View 1 Replies

How To Create Custom Control

Sep 28, 2007

I am new in .net framework 2.0. I have to create a custom control. How to create it?

View 7 Replies







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