Hi All
I am using VS2008 with both VB.NET and C#
I have created a simple custom user control and have added some public functions to it
my problem is that if I don't drag and drop the user control from the toolbox onto a winform but instead I try to create one dynamically via code - I am not able to access the public functions and pro...
Recently one of my friend asked me how to prevent class inheritance in C++. He wanted the compilation to fail.
I was thinking about it and found 3 answers. Not sure which is the best one.
1) Private Constructor(s)
class CBase
{
public:
static CBase* CreateInstance()
{
CBase* b1 = new CBase();
return b1;
}
private:
CBase(...
I added UserControl Webpart on the site and got this error:
error CS0117: 'ASP._60b6ad6d_6998_4413_8d26_f07e4e897ce8_1417418301' does not contain a definition for 'btnPressMe_Click'
It is very simple user control.
...
Hi Guys, Im looking for a control similar to:
http://www.treehugger.com/files/2009/01/built-in-dishwasher-vs-hand-washing-which-greener.php
[the control on the left] Could anyone tell me of a good free one that we can distrubute with our web based software preferably that has an Mit licence. Cheers
Pq
...
I have a form which contains several standard controls (textbox's, buttons, etc). I want to group certain controls in collections so that I can enable and disable them at any given time without having to explicitly set each one. What is the syntax to do that? Here is some pseudo code to show what I want to do....
Control[] ControlCollec...
In my WPF project I need to render HTML-based content, where the content is stored in a resource assembly referenced by my WPF project.
I have looked at the WPF Frame and WebBrowser controls. Unfortunately, they both only expose Navigation events (Navigating, Navigated), but not any events that would allow me, based on the requested URL...
I've created a control class that inherits a Panel control. This control then contains two other panels, one of which I would like to be an IContainerControl.
I know how to turn the entire control into a IContainerControl but have been unable to do the same to a child control. I've tried in both C# and VB.Net and failed with both.
Do...
Hi Guys,
I'm wondering if there is a way to create an asp.net webpage that will connect a visitors USB device to an application on the windows bases server? This way we avoid having to install a software on the visitors computer to control a USB device update that they purchase form us.
All they have to do is visit our update page, pl...
Hi, i got some xaml here and what i m trying to do it's simply bind a property call Property (not the real name) on the width of a rectangle and to convert the value of this property with the converter name Conv and it's working perfectly with {TemplateBinding Property} or DataContext={TemplateBinding Property} or with a relative source ...
I am extending the WPF textbox in order to place a custom image on it. I want to capture mouse clicks on this image. So far i have been able to use arrangeOverride to place the image in where i need it but since it happens to be placed "inside" the text box, whenever i try clicking it the text box captures the click and the event that is...
We have some ASP.NET stuff (it's not delineated clearly enough to call it a component), that we'd like to clean up, and wrap some boundaries around, so that we can reuse it. There are really four parts to this, some markup, some C# code-behind, some javascript running in the browser, and a webservice method that is called by the javascr...
Hi,
I need to keep a control value (possibly inside a file), in order to decide whether to execute a task or not.
I'm coming from here: http://stackoverflow.com/questions/2239236/ant-how-can-i-subtract-two-properties-containing-timestamps
What I want to do, is to check if the control value is equal to a period (mmYY). If it is equal, ...
I've looked hard and have been unable to find good websites that have aggregated custom controls that have been submitted by users to be shared with everyone. Does such a repository exist?
I would hope something like this existed considering that iPhone developers seem to be using similar custom controls. In particular, I'm trying to d...
How can I implement an openfiledialog, which is able to do multiselecting? Do I need an extra libraray or is it also possible with the WPF-Control OpenFileDialog?
...
How can i set a text of a textblock of a child window. childWindowname.textblockName.Text = "" doesn't have any effect.
...
Hi,
How do I get a named control from a control that is bound to a control template or data template?
I have tried FindName it does not work.
I prefer not to use the VisualTreeHelper as you have to traverse through each parent chld item individually.
Thanks
...
Hi, I am trying to develop a custom control which needs to have some rectangles to be drawn. Now, 1 rectangle needs to be moved so I used overrided mousemove method to get the new location and change the location part of that rectangle and then used Invalidate() command. But problem is, that whole control is painted instead of that recta...
I've built a UserControl that extends the functionality of the ComboBox in interesting and useful ways. It looks like this when it's dropped down:
I've built a whole bunch of features into the control and they all work smoothly. This leads me to believe that I have something of a clue as to what I'm doing. You'd think it would be a...
I have a custom .net control like this:
<myControl:control1 ID="dimDataSource" runat="server" SelectorType="red"
EnableViewState="False" >
</myControl:control1>
I want to add a property that varies with the state of a standard html checkbox. (but if this can't be done, i'll add a .net checkbox)
So here's a checkb...
Hello, guys.
I need a control something like this:
http://img404.imageshack.us/img404/1411/timeline.jpg
It is used for time selection.
I can add several horizontal time lines. I can add/edit/delete time intervals on every time line (programmatically). I can change time scale etc...
I think you guess general meaning ...
It must be f...