|
it works well!you give me much help!thanks very much!
|
|
|
|
|
Hey all, I'm making an app that I want to behave differently when I'm debugging in the IDE but act different when its run normally. Is it possible to detect if it was started from the VS IDE? I know for VB6 there was a howto on the MS website.
Thanks for any help, much appreciated.
|
|
|
|
|
You can look to see how many Trace/Debug Listeners are attached, but that won't tell you what debugger/trace is attached.
System.Diagnostics.Trace.Listeners.Count;
James
Simplicity Rules!
|
|
|
|
|
Is that reliable?
An old hack from VB is to do the following:
try
{
int x = 0;
System.Diagnostics.Debug.Write(1/x);
}
catch
{
System.Windows.Forms.MessageBox.Show( "Debug");
}
--
David Wengier
Sonork ID: 100.14177 - Ch00k
|
|
|
|
|
I don't believe the original poster was trying to find out if it was a debug build, he wanted to know how he could detect if it was running in the IDE...
Besides, in .NET you have the DEBUG pre-processor definition.
Regards
|
|
|
|
|
Check out the static property
System.Diagnostics.Debugger.IsAttached
Regards
|
|
|
|
|
hi!
i tried to write a little outlook addin which gets startet when the user opens a new mail form. i tried it with the following code but it didn't work. any ideas?
thx benedikt
public void OnConnection(object application, Extensibility.ext_ConnectMode
connectMode, object addInInst, ref System.Array custom)
{
applicationObject = application as Outlook.Application;
addInInstance = addInInst;
MessageBox.Show("OnConnection");
if(applicationObject!=null)
MessageBox.Show("wenigstens etwas!");
// inspektor speichern
applicationObject.Inspectors.NewInspector+=new
Outlook.InspectorsEvents_NewInspectorEventHandler(this.Inspector_StartedHand
ler);
}
private void Inspector_StartedHandler(Outlook.Inspector inspector)
{
MessageBox.Show("Juchu");
}
|
|
|
|
|
in visual basic 6.0.there is a grid control-"msflexgrid".but in visual studio .net.no such controls,i do not want to use datagrid in vs.net.so how can i find a control like "msflexgrid" for using in vs.net!!
|
|
|
|
|
zhoujun wrote:
i do not want to use datagrid in vs.net
Is there a particular reason why you don't want to use the datagrid? There should be more functionality with that than the msflexgrid?
Nick Parker
This is a non-Calculus course as long as you know things like line integrals and surface integrals...
|
|
|
|
|
thanks for your reply.the reason is control datagrid in vs.net must be specified with datasource and datamember,and can not specify the row and col.but in msflexgrid,you can freely specify the row and col of the msflexgrid control.and i am very familiar with vb6.0 msflexgrid control!please give me some clues.thanks very much!!!
|
|
|
|
|
I am just playing the Microsoft I mean devils advocate here, but is there some reason that you don't want to bind your data to the datagrid, there is really less code than writing two for loops to allow a msflexgrid to be populated? If still stuck let me know.
Nick Parker
|
|
|
|
|
Hi Friends
I am new to c#.
1.How may Platforms does it( c# ) supports?
2.What are the requriments in other platforms and in windows?
3.What is the size of setup (mb) for the runtime.
Thanks..
Gaurika Wijeratne. // www.gaurika.com
|
|
|
|
|
1. Windows 2000/XP for development, windows for deployment. Two Linux ports of .NET runtime are underway AFAIK
2. see above. I don't know the runtime requirements, but you need a reasonably hefty machine for development. I have a 700 MHz 640 MB machine and it runs very nicely for me
3. I believe it's a 24 MB download.
Christian
The tragedy of cyberspace - that so much can travel so far, and yet mean so little.
And you don't spend much time with the opposite sex working day and night, unless the pizza delivery person happens to be young, cute, single and female. I can assure you, I've consumed more than a programmer's allotment of pizza, and these conditions have never aligned. - Christopher Duncan - 18/04/2002
|
|
|
|
|
Christian Graus wrote:
1. Windows 2000/XP for development, windows for deployment. Two Linux ports of .NET runtime are underway AFAIK
There is also the rotor project, which is Microsoft's attempt at a freebsd port. You can get the source off from the MSDN site.
James
Simplicity Rules!
|
|
|
|
|
Thanks..
Gaurika.
Gaurika Wijeratne. // www.gaurika.com
|
|
|
|
|
Ok, this may sound stupid, but how do include the web reference to the XML web service that Chris has posted for the lastest articles? I understand how we include it in the *screensaver* type application, however, if I were to design an .aspx page in Notepad, how would I include a reference to it? Thanks in advance.
Nick Parker
This is a non-Calculus course as long as you know things like line integrals and surface integrals...
|
|
|
|
|
I belive the soapsuds tool is what you are looking for. It will generate a client DLL which you can then using in your code to reference the webservice.
James
Simplicity Rules!
|
|
|
|
|
Thanks James, your the man! Ok, so I broke out the SDK and was checking it out, but there are quite a few options, do I want to do something like this to be able to access the methods that Chris has available?
The following command downloads a schema from a URL, generates code, compiles, and generates an assembly.
soapsuds -url:http:
-oa:StockQuote.dll
But then how do I reference it? Would it be like:
using StockQuote.dll
Guess I'm still a little lost
Nick Parker
This is a non-Calculus course as long as you know things like line integrals and surface integrals...
|
|
|
|
|
Nick Parker wrote:
But then how do I reference it? Would it be like:
using StockQuote.dll
From what I know, yes, make sure you place StockQuote.dll in the /bin directory of your ASPX application.
James
Simplicity Rules!
|
|
|
|
|
Thanks, going to bed now, but will give it a try in the morning.
Nick Parker
This is a non-Calculus course as long as you know things like line integrals and surface integrals...
|
|
|
|
|
Let me know how it goes....
Wowee! Amazon is a sponsor
It doesn't take much to amuse someone who's been up for 48 hours
James
Simplicity Rules!
|
|
|
|
|
Well, here we go. I got the OK today to from the big-wigs to use C# in our next internal project. My first .NET app. Great. Now where do I start?
I was hoping I could get some recommendations on some reading material. I'm sure there's lots of online material, but I'm looking for a good ol' fashion book. Can anyone suggest anything??
Marcus
Make no little plans; they have no magic to stir your blood to action. Make big plans, aim high in work and hope
-- Daniel Burnham
|
|
|
|
|
Marcus2001 wrote:
Well, here we go. I got the OK today to from the big-wigs to use C# in our next internal project. My first .NET app. Great. Now where do I start?
Oh my *goodness*. you're going to *learn* C# while writing something for work ?
Marcus2001 wrote:
I was hoping I could get some recommendations on some reading material. I'm sure there's lots of online material, but I'm looking for a good ol' fashion book. Can anyone suggest anything??
I have the Petzold book, and I also have a book called C# and the .NET Platform from A-Press. They compliment each other well, but I suspect the second edition of Tom Archers Inside C# book is going to be better, and once I've bought it, I doubt I'll turn much to the A-Press book.
Christian
The tragedy of cyberspace - that so much can travel so far, and yet mean so little.
And you don't spend much time with the opposite sex working day and night, unless the pizza delivery person happens to be young, cute, single and female. I can assure you, I've consumed more than a programmer's allotment of pizza, and these conditions have never aligned. - Christopher Duncan - 18/04/2002
|
|
|
|
|
Christian Graus wrote:
Oh my *goodness*. you're going to *learn* C# while writing something for work ?
... and get paid for it !! I was actually going to learn it anyway... but if they want me to do it on company time, I ain't gonna complain.
Petzold... yeah, I have his Win32 book. Love it. You wouldn't happen to know when Tom Archer's book is coming out do you? Thanks Christian.
Marcus
Make no little plans; they have no magic to stir your blood to action. Make big plans, aim high in work and hope
-- Daniel Burnham
|
|
|
|
|
Marcus2001 wrote:
Petzold... yeah, I have his Win32 book. Love it.
Then you know what to expect. The level of detail is often amazing.
Marcus2001 wrote:
You wouldn't happen to know when Tom Archer's book is coming out do you? Thanks Christian.
According to him, it's imminent, as in the publishers have published it but people like Amazon are selling their last few copies ( 4 left as of yesterday ) before releasing the new one.
Christian
The tragedy of cyberspace - that so much can travel so far, and yet mean so little.
And you don't spend much time with the opposite sex working day and night, unless the pizza delivery person happens to be young, cute, single and female. I can assure you, I've consumed more than a programmer's allotment of pizza, and these conditions have never aligned. - Christopher Duncan - 18/04/2002
|
|
|
|