|
I don't have the Debugging section in Tools->Options.
Although I have the VB setup because I like the VB shortcuts better. Is that an Issue?
Nick
1 line of code equals many bugs. So don't write any!!
|
|
|
|
|
As far as I'm aware it's due in q3. However, VS 2003 SP1 should be due any time now. Maybe that's what the confusion is?
Kevin
|
|
|
|
|
We have used one listbox in windows form and we bind it with datasource from database.
Listbox allows multiple selected.
How can we retrive value of selected items from the list box??
we tried following thing
for(int i=0;i
|
|
|
|
|
What do you think is the selected value?
You filled the list with a DataView (which is a set of DataRowViews), so SelectedItems[n] returns the selected DataRowView.
I hope you have already tried that:
MessageBox.Show( ((DataRowView)lstEducation.SelectedItems[i])[0].ToString() )
_________________________________
Please inform me about my English mistakes, as I'm still trying to learn your language!
|
|
|
|
|
Thanks lot,
It works, Thank you very much.
Please give me link of ur blog if u r writing
Nilesh Gambhava
Nilesh Gambhava,
Life is NP-Complete so don't use Algorithm but use Heuristics
|
|
|
|
|
Along with the first post you can also set the DisplayMember and ValueMemeber to the column names you would like to display and key off of.
-Richard
|
|
|
|
|
i made a webform in asp.net and i want to print that web form design by clicking the button in the webfrom.anybody know how can i do it?
thank you so much
|
|
|
|
|
Sure you can print it! Attach to button this client script "window.print()" it's all you need to do. Also you can put two functions on your page
function window.onbeforeprint()
{
//Make you changes before printing, like
//hiding unnecessary while printing elements
}
and
function window.onafterprint()
{
//Restore previous state after printing
}
|
|
|
|
|
IS it for visual basic ,asp.net webform?
|
|
|
|
|
No, it's Javascript. If you would use ASP.NET to print anything, it would be printed on a printer connected to the server.
---
b { font-weight: normal; }
|
|
|
|
|
I am using Asyncallback in .net CF development. I added the callback in a button_click event, but as I run the program, it is fine to deploy the program, but as I click the button, error occured. The message is 'An unhandled exception of type 'System.NotSupportedException' occurred in System.Windows.Forms.dll', and it stopped at 'application.run(new form())' I used the begininvoke to start the callback, and endinvoke to get the result. Thanks for your help.
|
|
|
|
|
For size and performance reasons, the .NET Compact Framework supports only a subset of the .NET Framework. Control.BeginInvoke() and Control.EndInvoke() are two of those methods not supported by the .NET CF. You will need to use Control.Invoke() or some other asynchronous mechanism instead.
-Phil
|
|
|
|
|
Thanks for your reply. So you mean that in .net cf, BeginInvoke() and EndInvoke are not supported. But as I opened a new thread, I can use BeginInvoke() and EndInvoke(). Here comes the source code.
button_click(....)
{
...
Thread myThread = new Thread(new ThreadStart(myThreadMethod));
myThread.Start;
}
myThreadMethod()
{
this.BeginInvoke(delegate, object)
}
I posted the detail of my question with some source code below, and thanks for your help.
I am using Asyncallback in .net CF development in a button_click event. There is no problem when I deploy the program, but as I click the button, error occured. The message is 'An unhandled exception of type 'System.NotSupportedException' occurred in System.Windows.Forms.dll', and it stopped at 'application.run(new form())' I used the begininvoke to start the callback, and endinvoke to get the result. I used ppc 2003 emulator, and vs2005. Thanks for your help.
Here comes part of my code:
private delegate int CalcDelegate(int input1, int input2, ref string strResult);
CalcDelegate mDeleg;
private void button1_Click(object sender, System.EventArgs e)
{
mDeleg = new CalcDelegate(Calc);
int input1 = Convert.ToInt16(textBox1.Text);
int input2 = Convert.ToInt16(textBox2.Text);
string strResult = null; // dummy parameter
AsyncCallback cb = new AsyncCallback(CalcCallback);
IAsyncResult ar = mDeleg.BeginInvoke(input1, input2, ref strResult, cb, null);
Thread.Sleep(1000);
}
private void CalcCallback(IAsyncResult ar)
{
string result=null;
int output = mDeleg.EndInvoke(ref result, ar);
textBox3.Text = output.ToString();
}
if I could not use BeginInvoke() and EndInvoke(), how can I change this code? Thanks.
|
|
|
|
|
I think you're second block of code is ok. The BeginInvoke() and EndInvoke() methods of delegates are supported by the .NET Compact Framework, as far as I can tell. (I believe the BeginInvoke() and EndInvoke() methods are implicitly created by the compiler, for each type of delegate declared, and not really a part of the Delegate class API itself.) It is only Control.BeginInvoke() and Control.EndInvoke() which are not supported (as used in your first block of code).
-Phil
|
|
|
|
|
|
Hi,
Is it possible to integrate the module developed in c#.net in vc++.net?
If yes, then please let me know how it is done and using what?
Raj
|
|
|
|
|
Do you mean to say, going for C# to VC++ or the other way round?
The inteoperatability of .net for C++ is the IJW switch, this means visual studio .net will complile legacy C++ code, but the other way, how would an older version of visual studio know how to complile .net code?
you would only be able to upgrade code, not the other way round!
thanks
andy
|
|
|
|
|
Can anyone tell me how to make a .Net Control, that performs some or the other function when added in MS-Word, or Excel.
|
|
|
|
|
I don't expect that your question, as currently stated, will receive a helpful answer. You'll need to elaborate.
Josh
|
|
|
|
|
|
Error 1 Reference required to assembly 'System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=969db8053d3322ac, Retargetable=Yes' containing the type 'System.Net.Sockets.Socket'. Add one to your project. C:\Documents and Settings\@myg@l\My Documents\Visual Studio 2005\Projects\Merchant\Merchant\Form2.vb 11 21 Merchant
Wat does this mean
regards
amygal
|
|
|
|
|
It means that you need to add a reference to the System.dll v2.0 assembly to your project, via the Solution Explorer window.
Josh
|
|
|
|
|
I had add a few references such as system, system.net.Irda, system.drawing.....a few more
Is that wat u meant bout the reference?
|
|
|
|
|
|
thanks for ur reply
but i had add most of the reference
Microsoft.Windows.CE.Froms
system
system.configuration
system..data
system.deployment
system.drawing
system.net.IrDA
system.windows.forms
system.xml
but still the error appering
why?
regard
amygal
|
|
|
|