|
by: Greg |
last post by:
I have a base class for a label. I want to set a property at the base class
level, say AutoSize = true. Then at the form level I want to be able to
overide the base class setting so that I can turn it off when needed.
What is happening is that at the form level, I can set the autosize to
false, but then when I recompile, the autosize is set back to true.
This is what the base class looks like:
public class LabelBase : Label
|
by: Merlin |
last post by:
Hi,
My code below doesn't work does anyone have any pointers? All my controls
are programically added.
Dim i As Int16
For i = 0 To Me.Controls.Count - 1
If Me.Controls(i).Name <> "TheOneIWantToKeep" Then
Me.Controls.RemoveAt(i)
End If
|
by: Charles Law |
last post by:
I have a form on which user controls are placed at runtime. When a control
is added to the form a handler is added for an event that a high-level
object raises, which must be handled by the new control. When I close the
form I am expecting that the control ceases to be.
However, if my object raises the event after the form has been closed, I
find that there is still a user control object that handles it. Clearly the
user control has not...
|
by: Zorpiedoman |
last post by:
Horay!
I have just put the finishing touches on a new User Control...
The" Jelly Button"
I created a setup program which runs fine. I see the .dll nicely in the GAC.
How come it does not show up in my Add/Remove componenets list when I try to
add it to the toolbar?
|
by: Yourself |
last post by:
I have the following .aspx code:
<%@ Page Language="vb" AutoEventWireup="false" Explicit="True"
Inherits="Whatever.DefaultPage" CodeFile="Default.aspx.vb" %>
<%@ Register TagPrefix="whatever" TagName="something"
Src="~/Whatever/Whatever.ascx" %>
<asp:placeholder id="fred" runat="server"></asp:placeholder>
<whatever:something id="something" runat="server" />
the Default.aspx.vb code adds some controls to the 'fred' placeholder in the
|
|
by: Mike TI |
last post by:
March 24, 2006
Hi all
I am new to VB.NET and am using VB.NET 2005.
I have an MDI form with a Split Container Control. On demand I am adding and
removing User Controls on Panel 2. I am using Show() and Hide(). It works
perfectly. The only thing is I would like to remove the User Control from
memory instead of hiding. I tried Dispose(), however then I cannot show this
|
by: hunanwarrior |
last post by:
I added textbox controls to a form when user selects amount to create
from a combobox as follows:
'Load up the combobox
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
Dim i As Integer
For i = 1 To 10
cbxItemCnt.Items.Add(i)
Next
|
by: maflatoun |
last post by:
Hi,
I have a user control that I add dynamically. Once certain action is
performed I want to remove it completely.
My questions are
1. How do you check to see if a user control already exists or not?
2. How do you remove it after it's been added?
I added by doing the following
|
by: =?Utf-8?B?R3JlZw==?= |
last post by:
I have the following code the dynamically adds a specific number of controls.
for x as integer = 1 to 10
Dim btn as Windows.Forms.Button = New Windows.Forms.Button
btn.Name = "btn" & x
btn.Text = "Test" & x
controls.add(btn)
next x
This results in 10 buttons appearing on the screen. I've excluded the
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
|