|
What I mean is the curent CTS lacks the ablility for a generic class to inherit a generic type
for example :
class MyClass<T> : T {
}
is not valid using curent generics.
If it would be posible where would it help ?
here an example :
class LoggedStream<T> : T where T : System.IO.Stream {
public override Flush() {
// Log stream flush
base.Flush();
}
}
usage :
LoggedStream<FileStream> s1 = new LoggedStream<FileStream>(); - can be used inplace of Filestream
LoggedStream<NetWorkStream> s2 = new LoggedStream<NetWorkStream>(); -- Same generic implementation and diferent type than LoggedStream<FileStream>();
For anyone wishing to use generics in such a way or requiring this feture there's an open sugestion on Microsoft's feedback center wich can be voted for.
<a href="http://lab.msdn.microsoft.com/productfeedback/viewfeedback.aspx?feedbackid=f2b1c45b-4be4-410d-8d4b-84315730cea6" rel="nofollow">http://lab.msdn.microsoft.com/productfeedback/viewfeedback.aspx?feedbackid=f2b1c45b-4be4-410d-8d4b-84315730cea6</a>[<a href="http://lab.msdn.microsoft.com/productfeedback/viewfeedback.aspx?feedbackid=f2b1c45b-4be4-410d-8d4b-84315730cea6" target="_blank" rel="nofollow" title="New Window">^</a>]
Thanks to the community !
-- modified at 11:16 Friday 10th March, 2006
|
|
|
|
|
Hi guys!
Is there any way I can force Visual Studio .NET 2005 to use the .NET 1.1 framework?
Best regards
Soeren
|
|
|
|
|
No, there isn't.
Visual Studio.NET 2005 will ONLY work with .NET Framework 2.0
Visual Studio.NET 2003 will ONLY work with .NET Framework 1.1
Visual Studio.NET 2002 will ONLY work with .NET Framework 1.0
If your application is not using ANY functionality specific to the 2.0 version of the Framework, you can modify your app's app.config file to use a previous version. Targeting a .NET Framework Version[^]
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
-- modified at 18:44 Friday 10th March, 2006
|
|
|
|
|
|
This is a project option and only affects the target run time version but does NOT affect Visual Studio itself.
myMsg.BehindDaKeys = "Jerry Maguire";
|
|
|
|
|
Hi folks
I am writing a program which uses the axwebbrowser tool in Visual Basic. Does anyone know how to implement a "find" command which highlights the found string in the browser?
Thanks
lifeform23
|
|
|
|
|
Hi,
I would like to use the new AutoComplete feature supported in .net 2.0. I use it with a custom source, means I build my own suggestion string list for autocompletion mechanism. The goal should be that the textbox remembers all text that passed the validation mechanism for future use within the application session. Just in case the user has to reenter the same text again and again.
If I try to add the validted text to the custom source in an event like Validated or Leave, I can't tab out of the control. I have to hit the tab key twice to move out. It seems like I break the autocomplete mechanism by adding strings during the tab out process.
Have anybody found a way to use the AutoComplete feature in .net 2.0 in that manner I described above without any tab key issues?
Thanks
myMsg.BehindDaKeys = "Jerry Maguire";
-- modified at 9:38 Thursday 9th March, 2006
|
|
|
|
|
Is framework good solution or bad...
Framework2 have 20mb how big will be 3,4,5,6
i dont know where this takes...
wouldnt it be bather that the microsoft build up new windows that will be free and that will have all new futures in it?
My application has 3mb if i want to move it on to internet i have to build setup program and have framework2 setup in it... so my app is now 23mb.
the users will not go to internet and download framework just becose my app...
i need to have it in my app setup.
To Microsoft: lol you need to think on other people two!!!
<blink>FeRtoll Software.net
------------
E-Mail me
WebPage
|
|
|
|
|
Yeah, but even in the "old days", you had loads of DLLs to cover. I remember that I had to download a s***load of DLLs just to get a 20KB VB-Application to run.
Then, when I installed another app, I had to get some dozen Borland DLLs. Or VC DLLs.
Additionally, all further Service Packs are gonna install the .NET Framework in the most recent version.
Yeah, if you happen to be developing a .NET2-App right now, you will have to either tell the user to install the Framework first, or redistribute it with your app.
The same is true for many applications who use other libraries or tools.
You do not really have a point there
|
|
|
|
|
ya buth didn't microsoft push it to much?
its all ok in america and other countries buth croatia... and other poor countries? Man we have modems, no money to get adsl or something like that what user with modem will go to download 20MB of framework just to run your app, if other apps works great without framework... I think that microsoft have to do something! maybe free line that conects to microsoft for 1$ a day or something and you can dll what you need from microsoft... he should do something about it...
Am i right?
<blink>FeRtoll Software.net
------------
E-Mail me
WebPage
|
|
|
|
|
Well here in Slovenia pretty much everybody has a cable or ADSL internet now...
And it really isn't that expensive...
Anways, I am prettty shure computer magazines include the .NET framework on their CDs/DVDs
And vista will have .NET included by default as far as I know...
Resistance is futile
Q:What does the derived class in C# tell to it's parent?
A:All your base are belong to us!
|
|
|
|
|
i have a datatable that has to be binded to a datagrid which is filled from the database.
the datatable returned contains the fields {id, name}
but i'd like to insert a checkbox column and an image column to be binded with the datagrid.
so i'll have {checkbox, id, name, image}
so how can i do that in a simple way
Regards,
Maher Abu Zer
-- modified at 1:50 Thursday 9th March, 2006
|
|
|
|
|
I am trying to run this VB.Net(client) application from a different server, it gives me the error
Additional information: Request for the permission of type System.Security.Permissions.EnvironmentPermission failed in .Net 2.0
I think it is more .Net issue and not VB.net. Can anyone please help me?
Thanks.
|
|
|
|
|
Does anybody else experience the following behavior?
When I comment out the line std::cout << 0; in f() , everything works fine. However, if I uncomment the line, then when I change the filter in the OpenFileDialog, all the files in the list disappear.
This is using Visual C++ .NET 2003 (Managed Extensions to C++, not C++/CLI).
- I created a new Visual C++ Windows Forms Application (.NET).
- I added a button to this form.
- I added an event handler for this button that consists of the following:
OpenFileDialog* dlg = new OpenFileDialog;<br />
dlg->Filter = "Text Files (*.txt)|*.txt|All Files (*.*)|*.*";<br />
dlg->ShowDialog(); - I added a native C++ file that consists of the following:
#include <iostream>
void f()
{
std::cout << 0;
} - I turned off Precompiled Headers for the project. (not essential, otherwise you need to add
#include "stdafx.h" to the native file). - Compile and run (click the button then change the file filter).
Note that nowhere in the program did I actually call the function f() . It seems that its mere existence in the project is enough to mess this up.
--
Marcus Kwok
|
|
|
|
|
Hmm, OK something is really weird now. I sent the code to a colleague of mine and the issue does not appear on his machine. I even sent him both versions of the executable, and neither version shows the bug on his machine, though the exact same exe's do show the bug on mine.
--
Marcus Kwok
|
|
|
|
|
|
|
Does anybody have a URL for a really good Regular Expressions Primer. I dont need anything too basic I already understand the basic principles, I just need to get to grips with language an syntax.
http://www.ViSYNERGY.com
End of Line.
|
|
|
|
|
|
Thank you for that Chandana
http://www.ViSYNERGY.com
End of Line.
|
|
|
|
|
You are welcome
|
|
|
|
|
http://www.regexlib.com
"Every morning I check Forbes 40 richest Indians list , if i'm not there I go to work."
|
|
|
|
|
Is there some way short of rendering the whole control myself to get rid of these ugly rounded corners on System.Windows.Forms.ToolStrip?
--
I've killed again, haven't I?
|
|
|
|
|
Ah. Not calling base.OnRenderToolStripBorder(e) in the custom ToolStripRenderer seems to get rid of that nasty bordery aftertaste.
Yay me.
--
I've killed again, haven't I?
|
|
|
|
|
I created a user control in C# that I'd like to display in IE. I also did create a virtual directory on my local host. It works fine on one machine, but I can't get the control to show up on 3 other machines. They just show a placeholder box for the control.
Here is html that I am using:
<object id="MyUserCtrl"
classid="http://localhost/MyCtrl/MyCtrl.dll#MyCtrl.UserControl1" height="500" width="500" viewastext="">
I think this might have something to do with my IIS settings?
Please help.
|
|
|
|