|
You need to Set Keyboard layout to your input langauge you want Windows API Function have function called LoadKeyboardLayout use it to simultae Ctrl-Shift look at the folowing example
[DllImport("user32.dll")]
static extern IntPtr LoadKeyboardLayout(string pwszKLID, uint Flags);
const uint KLF_ACTIVATE = 1;
const string LANG_ARABIC = "00000401";
some where in your program write the following Code
LoadKeyboardLayout(LANG_ARABIC,KLF_ACTIVATE);
You will need to change LANG_ARABIC value to your language value for a Table of Language Identifiers look at
Language Identifiers [^]
For more info looka at LoadKeyBoardLayout[^]
MCAD
-- modified at 18:07 Sunday 11th September, 2005
|
|
|
|
|
Dear Friend
Well done.It is working properly, thanks for solution.
It is apear from your name that you are from a moslem
country, I apprecate and proud to had communication
with you.It is only one year that I am switched from
Vb 6.0 to C# , and almost a new..,I am dead set to
gain MCSD while is a big target for this my moment
C# status ,as a MCAD if you could advice me to
get this destination ,please dont hesitate.
Thanks and best regards
M.jafarpour
|
|
|
|
|
|
Hello
I have just made a notepad, but there is some problems.
1. When i select the program to be the standart editor for exampels *.txt
when i click the txt document the program just open my notepad but clean not with the text that should be in the document.. What can i do?
|
|
|
|
|
Did you handled Command Line Arguments when you associate your program to file type the file path passed to your application as command line arguments so you need to read those arguments and open the file and dispaly its content in your application
MCAD
|
|
|
|
|
If I create a list box with some items inside at designtime in the editor I can see thous very vell, but if I run my application the list box have the elements inside but I can't see thous. The color is right blu for text black for background.
What is the problem,? I tryed to renstall the framework but noting. The same problem is for combobox.
If I use the program in another computer the list box work.
Best regards.
|
|
|
|
|
I have a MessageBox that pops up in a try/catch block (catch). It has an
"OK" button and an "X" in the upper right of the Non-Client Rect.
Is there a way to access the behavior the "OK" and the "X"?
|
|
|
|
|
Anonymous wrote:
Is there a way to access the behavior the "OK" and the "X"?
That's really vague. What do you mena by "access the behavior"? What do you want to do with this?
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
I guess I want to know how to use them as parameters in a control struct.....if that makes sense -- thanks
|
|
|
|
|
SkunkedWorks wrote:
if that makes sense
Nope.
Are you saying that you want to use the return value from the MessageBox to determine which button was clicked?
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
hi,
i have 2 problems, when i read the Excel-Tabel in the Datagrid!
<br />
string sConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;" + "Data Source=@C:\\Test.xls;" + "Extended Properties=Excel 8.0;" + "HDR=Yes;IMEX=1";<br />
<br />
OleDbConnection objConn = new OleDbConnection(sConnectionString);<br />
<br />
objConn.Open();<br />
<br />
OleDbCommand objCmdSelect =new OleDbCommand("SELECT * FROM [Tabelle1$]", objConn); <--- An unhandled exception of type 'System.Data.OleDb.OleDbException' occurred in system.data.dll<br />
<br />
OleDbDataAdapter objAdapter1 = new OleDbDataAdapter();<br />
<br />
objAdapter1.SelectCommand = objCmdSelect;<br />
<br />
DataSet objDataset1 = new DataSet();<br />
<br />
objAdapter1.Fill(objDataset1, "XLData");<br />
<br />
dataGrid1.DataSource = objDataset1.Tables[0].DefaultView;<br />
dataGrid1.DataBind(); <-------- System.Windows.Forms.DataGrid' does not contain a definition for 'DataBind'<br />
<br />
// Clean up objects.<br />
objConn.Close();<br />
cu
|
|
|
|
|
Something more of the first error message, than just the type of the exception object, would be helpful...
The second error message is very straight forward. There simply does not exist any method called DataBind in that class.
---
b { font-weight: normal; }
|
|
|
|
|
hm
An unhandled exception of type 'System.Data.OleDb.OleDbException' occurred in system.data.dll
maybe the SELECT satement isn't correct!?
cu
|
|
|
|
|
hi it works:
<br />
string sConnectionString = @"Provider=Microsoft.Jet.OLEDB.4.0;" + <br />
cplusplus @"Data Source=C:\Test.xls;" + <br />
cplusplus @"Extended Properties=" + Convert.ToChar(34).ToString() + <br />
cplusplus @"Excel 8.0;" + @"HDR=Yes;IMEX=1" + Convert.ToChar(34).ToString();<br />
but why so often @? whats the meaning of @ ?
cu
|
|
|
|
|
The only thing that tells you is that the error message originates from the database. It doesn't say anything at all about what caused the error. That's why something more from the error message would be helpful.
---
b { font-weight: normal; }
|
|
|
|
|
hi,,
if we have this scenario:
computer A: My Database
computer B: My Application
computer C: My Application
computer D: My Application
now what is the best way to logon into the database from the application.. i am talking about LAN network... and where is the best way to store the database logon information. i mean if my application is installed in computer B.. where should i save the database logon information in this computer so i can make sure its safe..
one more thing,, what is the best way to retrieve info from the database after i logon.. should i use direct connection and take what i want and then disconnect.. or is there any other way..
thank you very much...
|
|
|
|
|
That depends...
What type of database are you using? Access? MySQL? MS SQL Server? Oracle? ...
From whom do you need to protect the logon information?
---
b { font-weight: normal; }
|
|
|
|
|
i am using sql server... and i am protecting it from the users because some of them are pros... and i want to do something pro as well...
|
|
|
|
|
If you're using SQL Server, I'd go with integrated login.
|
|
|
|
|
|
hi to all,
can someone point me in the right direction as to how i go about customizing a TextBox so that it looks like a .NET IDE editor, that is i want to draw a coloured column down left side for line numbers and possible have line folding as well
have googled but nor really comne up with anything specific, only on how to custom draw a control.
i tried this just to see if i could get a column but i got nothing
<br />
public class EditorPane : TextBox<br />
{<br />
public EditorPane()<br />
{ <br />
this.Multiline = true;<br />
this.Size = new Size(300, 300);<br />
}<br />
<br />
protected override void OnPaint(PaintEventArgs pe)<br />
<br />
{<br />
pe.Graphics.FillRectangle(Brushes.Gray, this.Location.X, this.Location.Y, 35, this.ClientSize.Height);<br />
base.OnPaint (pe);<br />
}<br />
}<br />
kind regards,
g00fy
|
|
|
|
|
At first VS editor not standard textbox most code editors create there custom control
Second the left bars that show line folding and line numbers is not draw in the textbox but there are other control itself because the custome editor contain more than one control one of them to display colorized text and others for other tasks like like folding,...
if you want source code for VS code editor like look at the #develop[^]
download the application and looking for the editor source code
I Hope this help
MCAD
-- modified at 15:01 Sunday 11th September, 2005
|
|
|
|
|
that was my first option, but i am having trouble finding it in all the code, have you any ideas of the namespace or class ?
regards,
g00fy
|
|
|
|
|
under namespace ICSharpCode.TextEditor or you can search for textAreaControl.cs you can get more information by reading Dissecting a C# Application: Inside SharpDevelop by written by appliaction developers it is available for free at http://www.apress.com/free/[^]
MCAD
|
|
|
|
|
thank you i will do that
g00fy
|
|
|
|