|
Can you send the code snippet or the stack trace.
|
|
|
|
|
Maybe i've been a little rough... I've written the MyItem class on-the-fly directly in the messageboard. That should be only an example.
However I think it's a very strange behavior. In the code there are not evident errors... I really don't know how to help you. I'm so sorry...
[ITA] Tozzi ha ragione: Gaia si sta liberando di noi.
[ENG] Tozzi is right: Gaia is obliterating us.
|
|
|
|
|
Hi,
I want to create an application that when you connect to the internet via a dialup or broadband connection a timer will start and then work out according to you're exchange as to how much the connection cost.
Can someone please advice?
Thanks!
Illegal Operation
Making Computer Software Talk
|
|
|
|
|
Well, you can easily figure out how long your own application is running using the various Timer classes available out there. If you want to figure out if the machine is connected to the internet, you'll need to run your application as a Windows service, then monitor the state of the connection. Now, I believe you'll need to use the Win32 API (via P/Invoke) to check the status of the machine's internet connection. When the connection starts, start the timer. When the connection is disconnected, stop the timer. From there, it's just a matter of multiplying the time spent online by the rate.
Tech, life, family, faith: Give me a visit.
I'm currently blogging about: Cops & Robbers
Judah Himango
|
|
|
|
|
hi,everybody.
Who understand the function of Control.SetStyle and Control.Show?
How to make tow forms in the same layer?
|
|
|
|
|
dreamwinter wrote:
How to make tow forms in the same layer?
What do you mean? What do you intend for a layer?
dreamwinter wrote:
Who understand the function of Control.SetStyle and Control.Show?
AFAIK SetStyle is used to set some *graphics* bahaviors of the Control, such as DoubleBuffering, WMPainting...
Control.Show is used to show the control, for example after you called Control.Hide.
[ITA] Tozzi ha ragione: Gaia si sta liberando di noi.
[ENG] Tozzi is right: Gaia is obliterating us.
|
|
|
|
|
Has a 'dataGrid1' and assign to 'dataTable1', 'dataTable1' have 3 columns: Col1,Col2,Col3, and then:
Col1.ColumnName = "Col1";
Col2.ColumnName = "Col2";
Col3.ColumnName = "Col3";
Col1.DataType = System.Decimal;
Col2.DataType = System.Int32;
Col3.DataType = System.Decimal;
Col3.Expression = "Col1 * Col2";
Col3.ReadOnly = true; // it's auto set
Why at runtime, edit Col1, Col2 of the 'dataTable1' and then leave to other row, but Col3's value has not change yet, has not any be computed?
Additional:
I had try to new a 'dataRow1', and then give value to dataRow1[0], dataRow1[1], and at last 'Add()' this row in 'dataTable1'. At this time, run dataTable1.Refresh() and found that 'Col3' shown correct. Why at this time the Expression could be used.
Why learn more, unaware more?
|
|
|
|
|
hi to all,
does any one knows how to use graphical control in a c# win application.
i have an interface that display a planning of an employe and i want to do that graphically.
does any one knows if such control exist in c# ?
if not does someone have any suggestions ?
best regards and thanks in advance
fady
|
|
|
|
|
All controls in c# inherit System.Windows.Forms.Control .
You can create such a control that draws a specific thing when you call the procedures you add to it. The question is how to draw onto the control? The answer is the System.Drawing.Graphics Class. Get the associated Graphics to you control with CreateGraphics and do your drawing, the control changes it's (visual) contnents afther a refresh.
I hope you understand...because is a rough world out there...
|
|
|
|
|
Dear All,
I've one code which will convert an XML file to a MailMessage object. Now I want to save it to local disk as .MSG or .EML file. How can i do this?
Does any body know it?
Jayant D. Kulkarni
Brainbench Certified Software Engineer in C#, ASP.NET, .NET Framework and ADO.NET
|
|
|
|
|
i have downloaded new Message from outlook into my local folder i have problem in displaying it in winforms(C#)
|
|
|
|
|
There is string in the statement.
For example, SQL statement in C#.
strSQL="Select * "
" from TB1";
|
|
|
|
|
strSQL="Select * " +
" from TB1";
|
|
|
|
|
Another way is
strSQL="Select * ";
strSQL+=" from TB1";
|
|
|
|
|
strSQL = @"Select *
from TB1";
works as well. It's useful for putting long formatted strings in code.
|
|
|
|
|
Hallo comunity,
i create litle tool with Visual Studio .Net 2005 and with Framework 2.0 Beta and it works good, but is a beta version of framework!, but not all of systems have a Framework version 2.0, most of them have a 1.1 framework version, can i make a configuration witch framework to use when my tool is installed, or when i compile the aplication they should use the 1.1 framwork and not the 2.0, so i can install the application on everey system with 1.1 framwork, i have 3 versions of Framework, 1.0 , 1.1 and 2.0???? Maybe in a Solutionsettings or preferences or properties???
thanx for help!
mirso
|
|
|
|
|
You can specify the version of the runtime required by your application in configration file in requiredRuntime element you can specify which versions of the common language runtime that your application supports in supportedRuntime
elment look at startup Element[^]
requiredRuntime Element[^]
supportedRuntime Elemnent[^]
MCAD
-- modified at 9:17 Friday 2nd September, 2005
|
|
|
|
|
Hallo mcad,
thax for help, i have do this!
mirsad
|
|
|
|
|
and this solved the problem or what?
MCAD
|
|
|
|
|
i ansver later, i dont have yet testing the application!
that what i make:
<br />
<configuration><br />
<startup><br />
<supportedRuntime version="v1.0.3705" /><br />
<supportedRuntime version="v1.1.4322" /><br />
<supportedRuntime version="v2.0.50215" /><br />
</startup><br />
</configuration><br />
I take all 3 Framework versions to support my application, i message you the result!
mirsad
|
|
|
|
|
hallo comunity,
my idea dont work now, hmm, this configuration file dont take result by the installation, the installer search framework 2.0 again, i should insert a
required tag element maybe in the configuration file, like this:
<requiredRuntime version="v1.1.4322" safemode="true">
maybe works now!? any idea for me?
regards
mirso
|
|
|
|
|
hi,
this dont work with this statement in the confiturations file, the installer takes only the framework 2.0!?
I think that my config file is wrong kreatet!!! Witch name must have a configuration file for an projekt, and i have 5 projekts included in my projekt solution!! and in every project him own config file! is that right???
regards
mirso
-- modified at 6:57 Monday 5th September, 2005
|
|
|
|
|
I'm importing a COM interface definition into C#, and I came across a method that has a parameter:
[out, iid_is(riid)] void **ppvInterface
This parameter is used to pass a COM interface reference out to the caller, which in this case will be managed code. The use of void** , is, I believe, due to the fact that the interface reference passed to the caller may be either IDispatch or IUnknown .
I know how to deal with cases where the base interface (between the two) that the interface is derived from is known - make the argument be of type object , and then add a MarshalAs attribute, specifying either UnmanagedType.IUnknown or UnmanagedType.IDispatch . But what should be done when the interface could be derived from either one?
TIA!
|
|
|
|
|
Recently I design a custom comboBox control,this control includes two forms.The one of the forms is inherit from the namespace that System.Windows.Forms.ComboBox,When active DropDownEvent,The second form will be shown.But the focus is moved on the new form.
However,I want keep the focus still on the main form.
Will you help me,please? Thanks.
MSN:tomatoboy78@hotmail.com ,you can email to me.;)
|
|
|
|
|
From what I understand you have two forms : a mainForm, and a "dropDownForm". When you press the drop down button you wish to show the dropDownForm but keep focus on the mainForm. If you do that the dropDownForm will not be visible (only if you make it allways on top, whitch is not a good thing, let's say you switch to an other aplication...in this case you will see the dropDownForm). I recommend you to forward all the focus actions you wish to keep onto the mainForm from the dropDownForm.
I hope you understand...because is a rough world out there...
|
|
|
|