|
hi
i was installed Sql Server 2005 Compact Edition, but i don't know how to use it in Visual Studio 2005. How to use it ?
|
|
|
|
|
Hello!
hope you all are doing fine! can anyone help me with the simplest possible way of authenticating a windows user(local account) taking login name and password as input?
tried with the WindowsIdentity and WindowsIdentityMembers but they deal with token, i simply want to take the login name and password, and display error if the user is not the valid user of the local machine!
Thanks in advance! !
Adeel
--
|
|
|
|
|
I need to create a form that in that form open a .chm file. please come someone help me
BAKKAR
|
|
|
|
|
Take a look at the HelpProvider class.
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook www.troschuetz.de
|
|
|
|
|
Hi, this is my first time trying to use classes on my own. can you show me how to use this class to view the file .chm pls
|
|
|
|
|
The MSDN documentation of the HelpProvider contains all the information you need (including examples). Read through it, drop an instance of the HelpProvider component from the toolbox onto your form and experiment with it.
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook www.troschuetz.de
|
|
|
|
|
ok 10x i will try. cya my friend if you want something just send an email
|
|
|
|
|
Hi, I have a DataTable with 4 columns (id, type, length and note) which i bind to a DataGridView (mydataGridView.DataSource = mydataset.Tables[0]. How can I make the "type" column in my datagridview a DataGridViewComboBoxColumn with 3 values (say "white", "black", "gray") representing the same values stored in the DataTable type column?
Any help would really be appreciated.
|
|
|
|
|
|
http://72.14.209.104/search?q=cache:trF3gRxXd5wJ:www.windowsforms.net/Samples/Go%2520To%2520Market/DataGridView/DataGridView%2520FAQ.doc+dataGridview+autogeneratecolumns&hl=en&ct=clnk&cd=3&gl=us[^]
This always answers my questions, I suggest looking there first (I DLed the doc at the top). That said, I have never figured out your problem, I just did a work around:
1. Create an unbound DataGridViewComboBoxColumn
2. Fill it with your selectable values
3. Add it to your DataGridView
4. Set its value based on the bound column
5. Hide the bound column
6. Create a CellValueChanged event
7. On changing the unbound column value, update the bound column
If you are dead set on putting the bound column as a combo box, I think you would have to pre-populate your columns in the datagridview prior to binding your datasource (3 textboxes and 1 combobox appropriately named), otherwise I have no success trying to change the DataGridViewTextBoxColumn (default) to ComboBox.
Good Luck
Pualee
-- modified at 0:30 Monday 23rd April, 2007
|
|
|
|
|
Pualee wrote: If you are dead set on putting the bound column as a combo box, I think you would have to pre-populate your columns in the datagridview prior to binding your datasource (3 textboxes and 1 combobox appropriately named), otherwise I have no success trying to change the DataGridViewTextBoxColumn (default) to ComboBox.
You can add the columns at design time or run time. At design time, try the "Columns" property in the IDE. You can type the column name and select type.
Pualee
|
|
|
|
|
|
How to implement
string Str( float number, ushort width, ushort presicion)
should return string whose size if width characters, left padded by spaces and having presicion characters after decimal point using current culture decimal separator?
Andrus
|
|
|
|
|
The string.Format method will do this for you.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Thank you.
Do you have any sample how to pass width and presicion variables to Format() and return padded string ?
Andrus
|
|
|
|
|
This[^] section of MSDN doc covers string formatting in detail. There are some examples for you to examine. You should be able to find what you need in there.
Good luck!
|
|
|
|
|
I have long single line string literals containing " characters in code like
switch (expr) {
case @"IR(""xxx"")+sql('sele tasudok from dok x where doktyyp+str(dokumnr,7)= ""G""+str(dok.krdokumnr,7) ','')":
For code readability I need to split them to multiple lines so that vlaue remains same. I tried
switch (expr) {
case "IR(\"xxx\")+\
sql('sele tasudok from dok x \
where doktyyp+str(dokumnr,7)= \"G\"+\
str(dok.krdokumnr,7) ','')":
But got compile error. Any idea ?
Andrus
|
|
|
|
|
What made you think that would work ? Does it work in VB ?
string s = "switch(expr){" +
" case IR" +
" whatever"
You can also use @ in C#. when you do, there are no escaped characters and double quote is a quote.
"to do a quote, you do \", and it escapes to a quote"
becomes
@"to do a quote, you do "", and it becomes a quote"
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
this complier error is becoz of the \ that u added in the end of each line,
use following syntax
switch (expr)
{
case "IR(\"xxx\")+
sql('sele tasudok from dok x +
where doktyyp+str(dokumnr,7)= \"G\"+
str(dok.krdokumnr,7) ','')":
|
|
|
|
|
A small question:
How to explicitly invoke parent's constructor in child class 's constructor?
Thanks!
|
|
|
|
|
Hope this helps U.
I think we cannot call the base class constructor in the derived class constructor.
But we can do like this.
class derivedClass:baseClass
{
public derivedClass():base(arguments)
{
}
}
Regards,
Arun Kumar.A
|
|
|
|
|
oh, yes. It's useful.
Thanks.
|
|
|
|
|
public class Derived : BaseClass
{
Derived(int a,int b) : base(b)
{
//Code Block
}
}
Best Regards,
Chetan Patel
|
|
|
|
|
First, i am so sorry,i can't explain the problem very clearly. Let me descript it by an example.
eg, if you click msn shortcut, the processes is liks this: double click MSN's Shortcut - start MSN application. Now there is an application coding by me, in it i new a process, the process.startinfo = "MSN.exe",...then process.start(). That means that, i want to make the doule click the MSN Shortcut's processes become this: double click MSN Shortcut - start my application - start MSN application by the process.start() which Statemented in my application. And there are an other problem, if the user chanage the shortcut "MSN" to other name, like "MyMSN", is there any side affect? if yes ,how can i get the correct information?
If any one have the solution, please give me more info. Thank you very much!
|
|
|
|
|
I have no idea what you're saying. If you want to start your own app instead of MSN, you need to change the shortcut to point to your app.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|