|
I'm trying to program a "Windows Control Library" (aka User Control) which is to be embedded into an Internet Explorer webpage. The only way that I've found to be able to call javascript functions from the C# code is to use DOM but this raises a security exception unless I use the .NET Framework Configuration Tool to give it the necessary permissions.
Is there any way to allow an embedded control to call a javascript function without changing settings on the client side?
-Benjamin
|
|
|
|
|
How do I change default startup icon in application?
Thanks in advance.
|
|
|
|
|
Right-click the project in the solution explorer, click menu properties, Application tab, Resources Group ->Icon. This will be slightly different in pre-VS.NET 2005 programming packages.
Regards,
Thomas Stockwell
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.
Visit my homepage Oracle Studios[ ^]
|
|
|
|
|
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.
|
|
|
|