default

Default Button - Vb.NET

Hey guys, I have a button that I want to make default, but without the border thing around the button. Is this possible to do? Thanks. ...

Extract default namespaceID from XML file

I have a file that contains a default namespace declaration, first few lines of one such here: <?xml version="1.0" encoding="UTF-8"?> <dodavka xmlns="urn:CZ-RVV-IS-VaV-XML-NS:data-1.2.2" xmlns:v="urn:xmlns:mathan.vklap.annotations-1.0" v:faze="finalni" struktura="RIV09A"> <zahlavi v:posledni-zmena="06.09.2009 21:28 +0200 1.4.46"> ...

How can I alter a smalldatetime column with a default to be datetime?

I have a number of columns in my database that were originally created as smalldatetime and that really need to be datetime. Many of these columns were created with the DDL: [columnname] smalldatetime not null default getdate() ...which means that in order to alter the column's type, I first have to drop the default, and then re-crea...

How do you turn on a hibernate filter for a particular entity by default?

Good day, I currently have an Entity that has a where clause set on it. I want to put that where clause on a filter and have that turned-on by default (so that I won't break any existing functionalities). I want to turn it into a filter so that I can disable it because I have a use case wherein I need it disabled. How can I do that in...

Installshield 2009 set quickpatch behaviour

Installshield 2009 Premier I created a basic msi project binary output are: setup.exe, Data1.cab, HelloWorld.msi Then I created a quick patch project, referenced HelloWorld.msi & replaced a dll file When I run Update.exe[in a machine where I already set up 1] to update, it wants to restart, its ok But after restart if I again do ...

What is the C++/CLI equivalent to C#'s default(T)?

I'm working with some C++/CLI code (new syntax) and am trying to declare a generic type and want to set a member variable to it's default. In C#: class Class<T> { T member = default(T); } What's the equivalent in CLI? generic<typename T> public ref class Class { public: Class() : member(default(T)) // <-- no worky { ...

CakePHP Routing, using a language prefix with a default prefix

I'm trying to create a routing prefix that would be default. http://localhost/heb/mycont would leave to the Hebrew page, while http://localhost/mycont would lead to the English page. Router::connect('/:language/mycont',array('controller'=>'contname','action'=>'index'),array('language'=>'[a-z]{0,3}')); This code allows me to use 0-3 ...

Wordpress - GD Star Rating - turn off and on for specific posts?

Hi all fellow Wordpressers, I'm trying to apply GD star rating plugin to 4 specific pages. I know I can do it in the page editor, but I have about 30 pages so don't want to spend ages going through them all. Is there a way in the GD settings to default the plugin to not putting the block automatically on every page. Thanks for your hel...

CakePHP pages_controller always uses default layout

I have a static page that I want to serve so I made a .ctp in the /views/pages/ directory. The problem is that it's using the default layout which I do not want to use. I tried making my own pages_controller and passing the $layout var but that does not work. There has to be a way to tell a /pages/ to use another layout.ctp. No? ...

Strange Compiler Behavior Regarding Default Constructors in C++

class TestClass { public: TestClass(int i) { i = i; }; private: int i; } class TestClass2 { private: TestClass testClass; } Why does the above code compile fine even when we have not provided a default constructor? Only if someone instantiates TestClass2 elsewhere in the code, do we get a compile error. What is the compil...

C++ ...when all the arguments have default values

Ok, I guess that this is a very absurd/basic question, but still: class m { public: void f(int ***); /***/ } void m::f(int ***a = NULL) { /***/ } The call to f (as well as any function which has default values for all the arguments) doesn't accept 0 arguments. Why? How should I format the declaration then? Thanks already. ...

How do you use the non-default constructor for a member?

I have two classes class a { public: a(int i); }; class b { public: b(); //Gives me an error here, because it tries to find constructor a::a() a aInstance; } How can I get it so that aInstance is instantiated with a(int i) instead of trying to search for a default constructor? Basically, I want to con...

What are default settings used by .net user login control api for AES algorithm?

I am using same user name and password login for a user on two web applications (one in .net 3.5 and other in java 1.4). Both websites are using different database on same server.For maintaining user name password authentication .net user login-control is used.when user updates his password we need to update same password in database use...

Default parameters of struct templates

I have a template struct tree_parse_info declared as follows: template < typename IteratorT, typename NodeFactoryT, typename T > struct tree_parse_info { // ... }; The compiler allows the follows code: tree_parse_info<> m_info; Why does this code compile even though we do not have default template parameters for the ...

Creating mysql table with explicit default character set, what if I don't?

In mysql 5.x Whats the difference if I do something like this: CREATE TABLE aTable ( id BIGINT NOT NULL AUTO_INCREMENT PRIMARY KEY, aNumber bigint(20) DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARACTER SET=utf8; with this: CREATE TABLE aTable ( id BIGINT NOT NULL AUTO_INCREM...

Using a C++ child class instance as a default parameter?

So I have a couple classes defined thusly: class StatLogger { public: StatLogger(); ~StatLogger(); bool open(<parameters>); private: <minutiae> }; And a child class that descends from it to implement a null object pattern (unopened it's its own null object) class NullStatLogger : public StatLogger { public: NullStatLogger...

c++ publicly inherited class member cannot be used as default argument

A schematic of my problem... class A { public: // etc. protected: uint num; }; class B : public A { public: void foo(uint x = num); //bad }; gives this error: error: invalid use of non-static data member ‘A::num’ error: from this location Why does this happen, and what can I do to work around this? ...

TimeZone.setDefault changes in JDK6

Hello I just noticed that JDK 6 has a different approach to setting a default TimeZone than JDK5. Previously the new default would be stored in a thread-local variable. With JDK6 (I just reviewed 1.6.0.18) the implementation has changed, so that if the user can write to the "user.timezone" property, or if there is no SecurityManager i...

C# How do I create code to set a form back to default properties, with a button click event?

Using Visual C# 2008 express edition, I am trying to create a button on my form to set the form back to default properties, such as size, backcolor, etc... anybody have any examples on how I would do this? ...

MsgBox function default fourth button

I noticed in VBA that the MsgBox function has a allowable constant of vbDefaultButton4 which will make the fourth button the default. BUT of all the allowable constants for buttons, none give you four buttons. Is there a way to get a fourth button on a MsgBox, or is this useless, or something else? ...