|
Thanks.
Mazy
"And the carpet needs a haircut, and the spotlight looks like a prison break
And the telephone's out of cigarettes, and the balcony is on the make
And the piano has been drinking, the piano has been drinking...not me...not me-Tom Waits
|
|
|
|
|
Hi All,
I would like to get answer for the following questions.
1. In C# How do we create new themes for Desktop?.
2. How Intellisense Editors are build?. Is is it possible to do using C#?
3.Is there any book for Internationalization using .NET or C#?
Thanks and Regards
Balachandar Ganesan.
|
|
|
|
|
|
gbala wrote:
In C# How do we create new themes for Desktop?.
You don't. The DLLs have to be signed by Microsoft in order for them to be used as proper themes. Otherwise you have to use ThemeXP or WindowBlinds. And I think those have to be C++ and COM DLLs.
I don't know whether it's just the light but I swear the database server gives me dirty looks everytime I wander past.
-Chris Maunder
Microsoft has reinvented the wheel, this time they made it round.
-Peterchen on VS.NET
|
|
|
|
|
hi,
Could you suggest some link about "who to make this MFC code in C#", ebook,book or something like this ?
thanx
I thing many people will need this
Wizard_01
|
|
|
|
|
Could you convert apple to orange?
Mazy
"And the carpet needs a haircut, and the spotlight looks like a prison break
And the telephone's out of cigarettes, and the balcony is on the make
And the piano has been drinking, the piano has been drinking...not me...not me-Tom Waits
|
|
|
|
|
As the title, how can I perform that with programmatically?
My Com+ plus is inherited from ServicedComponent and implements
an interface(dual) defining by myself. Thanks ahead!
|
|
|
|
|
Does anyone know why the click event won't fire when the opacity is set to 0?
Nick Parker
You see the Standards change. - Fellow co-worker
|
|
|
|
|
No idea, but it may well be that when opacity is 0 its visibility is effectively set to false and so click events can't be generated. Doesn't really help, but a possible rationalisation
--
Paul
"If you can keep your head when all around you have lost theirs, then you probably haven't understood the seriousness of the situation."
- David Brent, from "The Office"
MS Messenger: paul@oobaloo.co.uk
Sonork: 100.22446
|
|
|
|
|
Paul Ingles wrote:
but it may well be that when opacity is 0 its visibility is effectively set to false and so click events can't be generated. Doesn't really help, but a possible rationalisation
Ahh, that may very well be true, I guess that leads me to my next problem, locating the mouse coord. when outside the form? Ah, this is so much damn fun.
Nick Parker
You see the Standards change. - Fellow co-worker
|
|
|
|
|
Nick Parker wrote:
locating the mouse coord. when outside the form?
That part is easy
Use the static MousePosition property on the Control class. This property calls ::GetCursorPos and returns the result, so the behavior behind it is the same.
James
"The elastic retreat rings the close of play as the last wave uncovers
the newfangled way.
But your new shoes are worn at the heels and
your suntan does rapidly peel and
your wise men don't know how it feels to be thick as a brick."
"Thick as a Brick" from Thick as a Brick, Jethro Tull 1972
|
|
|
|
|
James T. Johnson wrote:
Use the static MousePosition property on the Control class. This property calls ::GetCursorPos and returns the result, so the behavior behind it is the same.
Thanks James, that worked perfectly.
Nick Parker
You see the Standards change. - Fellow co-worker
|
|
|
|
|
James T. Johnson wrote:
Use the static MousePosition property on the Control class. This property calls ::GetCursorPos and returns the result, so the behavior behind it is the same.
This works very well, however any ideas as to how I can check this value when another Window such as IE or another application has focus?
Nick Parker
You see the Standards change. - Fellow co-worker
|
|
|
|
|
i have a question that i think i need help with. i want to
find a way too open a folder from with in my program by clicking a button and it opening in the default maner (i.e going my computer c:\ ,ect..)
could the following code do it ? (i cant try it yet im not at home.)
//variable called at beging of program
string CurrentDirectory
CurrentDirectory =Environment.CurrentDirectory.ToString();
private void OpenDirect(object sender, System.EventArgs e)
{
System.Diagnostics.Process.Start(CurrentDirectory\FolderIwantToOpen)
}
i havent tryed that yet but not sure if it will work if it wont can someone help me with this subject ?
Thank you,
Jesse M
|
|
|
|
|
oops typo....heres the correction.
string CurrentDirectory
CurrentDirectory =Environment.CurrentDirectory.ToString();
private void OpenDirect(object sender, System.EventArgs e)
{
System.Diagnostics.Process.Start(CurrentDirectory+@"\FolderIwantToOpen")
}
|
|
|
|
|
jtmtv18 wrote:
i havent tryed that yet but not sure if it will work if it wont can someone help me with this subject ?
This seems to work for me:
private void button1_Click(object sender, System.EventArgs e)
{
string s;
s = Environment.CurrentDirectory.ToString();
System.Diagnostics.Process.Start(s);
}
You will need to identify the folder you want as a string field however, which you didn't do above.
Nick Parker
You see the Standards change. - Fellow co-worker
|
|
|
|
|
Have someone any www.learnvisualstudio.net videos?
If you want we can exchange some videos.
gicio
|
|
|
|
|
Hi,
I develop an application that have 20 windows forms with many TextBoxes.
All TextBoxes have the same validation...
I write in all classes the same validation like that:
[CODE]
//if the user press a key down at txtDisplacement we check which one was pressed down
#region KeyDownInTxtDisplacement code
private void KeyDownInTxtDisplacement(object sender, System.Windows.Forms.KeyEventArgs e)
{
CheckWhichKeyDown(e);
}
#endregion
//if the user press a key down at txtModel we check which one was pressed down
#region KeyDownInTxtModel code
private void KeyDownInTxtModel(object sender, System.Windows.Forms.KeyEventArgs e)
{
CheckWhichKeyDown(e);
}
#endregion
//we check which key is pressed
//if key Enter or Return or Tab is pressed
//we go throw DoWhenOneTextBoxIsMarkedRed()
#region CheckWhichKeyDown code
private void CheckWhichKeyDown(System.Windows.Forms.KeyEventArgs e)
{
if(e.KeyCode==Keys.Enter || e.KeyCode==Keys.Return || e.KeyCode==Keys.Tab)
{
ValidateThis();
}
}
#endregion
//when special key is press we enable the button
#region ValidateThis code
private void ValidateThis()
{
cmdAddToDataBase.Enabled = true;
}
#endregion
[/CODE]
CheckWhichKeyDown and ValidateThis should be in one validation class.
How I can write a validation class that validate ALL TextBoxes from all classes.
Any ideas?
Or do you know some sample validation classes available on www?
gicio
|
|
|
|
|
gicio wrote:
CheckWhichKeyDown and ValidateThis should be in one validation class.
How I can write a validation class that validate ALL TextBoxes from all classes.
Any ideas?
Sure, I would highly suggest this so you aren't rewriting code all the time, simply add a new class within your application, possibly like the following:
namespace test
{
public class Validation
{
public Validation()
{}
public bool CheckWhichKeyDown(System.Windows.Forms.KeyEventArgs kea)
{
if(kea.KeyValue == 13)
return true;
else
return false;
}
public bool SomeOtherFunctionHere()
{
return true;
}
}
}
Then, say for example in any of your KeyDown event handlers you can implement it like the following, keep in mind my namespace for this example is titled test.
private void textBox1_KeyDown(object sender, System.Windows.Forms.KeyEventArgs e)
{
test.Validation v = new Validation();
if(v.CheckWhichKeyDown(e) == true)
MessageBox.Show("You hit enter.");
else
MessageBox.Show("You hit " + e.KeyData.ToString());
}
The idea is that you are creating an instance of a class, your validation class, and then invoking methods against that instance. Hope this helps.
Nick Parker
You see the Standards change. - Fellow co-worker
|
|
|
|
|
thanks for this great solution!!!
gicio
|
|
|
|
|
no problem, hope it helps.
Nick Parker
You see the Standards change. - Fellow co-worker
|
|
|
|
|
|
Hi,
I write a new class... like this:
[CODE]
using System;
using System.Windows.Forms;
using System.Windows.Forms.ComponentModel;
namespace CarTrade
{
///
/// Summary description for TestTextBox.
///
public class TestTextBox : System.Windows.Forms.TextBox
{
private bool booOnlyNumericCharsAllowed;
private bool booSpecialKeyIsPress;
public TestTextBox.
{
}
//---------------------------------------------------------------
//---------------------------PROPERTIES--------------------------
//---------------------------------------------------------------
//we allowed in the TestTextBox only numeric chars
//when the user set the proparty OnlyOnlyNumericCharsAllowed
//to true
internal bool OnlyNumericCharsAllowed
{
get
{
//return the value how OnlyOnlyNumericCharsAllowed
//is set
return booOnlyNumericCharsAllowed;
}
set
{
if(value)
{
this.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.DoWhenKeyPress);
}
booOnlyNumericCharsAllowed = value;
}
}
internal bool SpecialKeyIsPress
{
get
{
return booSpecialKeyIsPress;
}
set
{
if(value)
{
this.KeyDown += new System.Windows.Forms.KeyEventHandler(this.CheckIfSpecialKeysArePressed);
}
booSpecialKeyIsPress = value;
}
}
private void CheckIfSpecialKeysArePressed(object sender, System.Windows.Forms.KeyEventArgs e)
{
bool booEnter = e.KeyCode == Keys.Enter;
bool booReturn = e.KeyCode==Keys.Return;
bool booTab = e.KeyCode==Keys.Tab;
if(booEnter || booReturn || booTab)
{
}
}
private void DoWhenKeyPress(object sender, System.Windows.Forms.KeyPressEventArgs e)
{
if((e.KeyChar < 48 || e.KeyChar > 57) && e.KeyChar != 8 )
{
e.Handled = true;
}
if(Text.Length == 0 && e.KeyChar == 48)
{
e.Handled = true;
}
}
}
}
[/CODE]
Any coments are welcome!
gicio
|
|
|
|
|
Hi,
do you know other developer boards?
special C# and VB and C++
gicio
|
|
|
|
|
Hi,
I'm looking for developer videos/demos/webcasts tutorials
for c#, VB.NET, VB, C++, JAVA, UML, Rational rose, XML, XSLT, SQL and other
development stuff.
I know right now only the microsoft webcasts and the stuff from
www.learnvisualstudio.net do you know others?
gicio
|
|
|
|