I am trying to read a custom (non-standard) CSS property, set in a stylesheet (not the inline style attribute) and get its value. Take this CSS for example:
#someElement {
foo: 'bar';
}
I have managed to get its value with the currentStyle property in IE7:
var element = document.getElementById('someElement');
var val = element.curr...
I have a class derived from CTreeCtrl. In OnCreate() I replace the default CToolTipCtrl object with a custom one:
int CMyTreeCtrl::OnCreate(LPCREATESTRUCT lpCreateStruct)
{
if (CTreeCtrl::OnCreate(lpCreateStruct) == -1)
return -1;
// Replace tool tip with our own which will
// ask us for the text to display with a T...
I realize you can't get the target entity in the Attribute itself, but what about in an associated Permission object when using a CodeAccessSecurityAttribute? The Permission object gets called at runtime so it seems there should be a way but I'm at a loss.
public sealed class MySecurityAttribute : CodeAccessSecurityAttribute
{
public ...
Can you program/configure Visual Studio to produce custom intellisense for your own server controls.
eg can you get it to do this:
for a tag of your own like:
<MyCompany:MyTag ...
...
Hey,
I am trying to create a custom accordion for my page to that display my posts. I have it in list format using HTML and I am trying to create an effect when you click each header to expand to show more information.
But I don't want to have say 6 blocks of code for 6 of the <li> elements I have on the page.
Is there a way to run it...
I want to create context menu in C# which items are images of different heights and widths.
Main problem I don't know how to solve is how to set width and height for menu items and context menu.
If autosize for menu items is enabled, then heights of all menu items are the same. If I disable autosize for menu items, then I cannot proper...
Hello all,
I'm working on an ASP.NET page, using VB.NET and I have this hierarchy:
Page A
- Web User Control 1
- Web User Control A
- Web User Control B
- Web User Control C
I need to raise an event from Web User Control B that Page A will receive (the event flow will be Web User Control B -> Web User Control 1 -> P...
So...I had this clever idea that I'd create my own Repeater control that implements paging and sorting by inheriting from Repeater and extending it's capabilities. I found some information and bits and pieces on how to go about this and everything seemed ok...
I created a WebControlLibrary to house my custom controls. Along with the e...
I've written a Custom User Control which returns some user specific data.
To load the Custom User Control I use the following line of code:
UserControl myUC = (UserControl).Load("~/customUserControl.ascx");
But how can I access string user inside the User Control myUC?
...
Where would you recommend that I find a company to develop or buy a CD/DVD loading arm similar to: http://www.dextimus.com/
Preferably programmable via USB but if I only can get one with a serial interface that would be fine. Drivers dont matter - I can interface directly with the unit as my situation is very unique.
...
Hi,
I've written a simple control which basically displays a few words with an image next to it.
I want the containing items to strech when the parent form is resized and as you can see from my commented out code, I don't want to use a loop as it flickers.
Any idea on how to get the items to grow and shrink with the form in a nice way...
In the context of creating a custom Eclipse distribution for a development team.
How would I go about building a custom Eclipse distribution containing a specific set of plugins? Would it be difficult to also add a kind of update site to put specific versions of the plug-ins from which the customized eclipse would update?
...
I'm trying to add a custom font as a resource in my application.
I have a "CustomFont" directory in the application and all the fonts inside of it are set to "Resource"
<Window.Resources>
<Style x:Key="Gotham-XLight">
<Setter Property="TextElement.FontFamily" Value="/CustomFonts;Component/#Gotham-XLight" />
</Style>
</Wi...
Does anyone know how to remove the extra branding on the google custom search?
they've added a button and other things like text that says "gadgets powered by google".
there has to be a way to pipe the CSE data into a normal form, right?
http://www.google.com/coop/cse/
...
Hello,
I have a custom control that uses a designer I've inherited from ParentControlDesigner to allow child controls to be dropped. I'm not using any internal designers, just straightforward single-parent stuff.
This control draws a "header", so I'm trying to do three things:
Have child controls dock to the bottom of the header ins...
I want to send a custom "Accept" header in my request when using urllib2.urlopen(..). How do I do that?
...
Hello,
I have a question regarding a data binding(of multiple properties) for custom DataGridViewColumn.
Here is a schema of what controls that I have, and I need to make it bindable with DataGridView datasource. Any ideas or a link to an article discussing the matter?
Controls
Graph Control(custom): Displayed in
the custrom DataG...
Hi StackOverflow,
I have a business case whereby I need to be able to specify my own calling convention when using P/Invoke. Specifically, I have a legacy dll which uses a non-standard ABI, and I need to able to specify the calling convention for each function.
For example, one function in this dll accepts its first two arguments via ...
I need to run a custom action during uninstallation of a ManagedCode which is a part of the installation (Before it is removed in the uninstall process)
Is it possible in Install Shield 2009?
...
How a user exception class is created from standard exception?
Addressing below cases
Say i have a class with some enum that indicates type of object
so based on type, member functions are available.Calling member function that is not available should throw an exception.Similarly when a getter of uninitialized is called again a except...