|
Is that right? I know you can use the ".NET 3" beta with the WinFX/.NET 3 extensions for VS2005, but I wasn't sure if they'd still allow that for 2005 or if they'd induce us to upgrade. It would be nice if the release schedule of .NET 3 wasn't tied to a VS release, which usually is delayed.
Tech, life, family, faith: Give me a visit.
I'm currently blogging about: Goof around music jam with my brothers (with video)
The apostle Paul, modernly speaking: Epistles of Paul
Judah Himango
|
|
|
|
|
Considering how long it took for VS2005 to hit the market, I would be shocked to death if MS somehow was able to pull VS2006 out of their arse by the time Vista is officially released. This leads me to believe that .NET 3.0 will run in VS2005.
josh
|
|
|
|
|
|
hi,
i want to check a table whether it contains a particular column or not if it does't contain it than it should be added to the table, all thing should be done through Stored procedure and the name of TABLE and COLUMN must be passed as arguments or parameters to the procedure......
Please help if u can
thanks allot
Software Developer
ASP.Net
|
|
|
|
|
|
Executing stored procedure
sp_help tablename
gives information about specified table. Hope this may also help you.
Best Regards
_____________________________
Success is not something to wait for, its something to work for.
|
|
|
|
|
Hi,
I don't want to allow cut, copy, and paste in the text box. For this what should i do. Any suggestion or anybody know about concerning article, then please! let me to know.
Thanks.
_____________________________
Success is not something to wait for, its something to work for.
|
|
|
|
|
|
Thanks Vasudevan Deepak Kumar.
I always forget to mention my working environment (thats my fault ). I'm currently working with windows forms.
Well Thanks for reply &
Best regards.
_____________________________
Success is not something to wait for, its something to work for.
|
|
|
|
|
1. Create a new empty context menu for the textbox (so right-clicking gives the user nothing)
2. Deal with KeyPress/KeyDown event(s) - depending on whether they should be allowed to type
3. In the Exit/LostFocus event, clear the clipboard
... if someone is smart and they really want to copy the text, they'll figure out a way, but these steps should prevent most users from doing it
|
|
|
|
|
Thanks Paul Brower
&
Best regards
_____________________________
Success is not something to wait for, its something to work for.
|
|
|
|
|
Set the ContextMenu property of the textbox as follows:
<textbox object="">.ContextMenu=new ContextMenu();
Now the ContextMenu for that textbox that contains Cut,Copy,Paste will not appear(Indeed no ContextMenu for that TextBox will appear). Consequently no one could cut,copy,paste. If you have defined any Shortcuts for your TextBox for cut,copy,paste, then set the EnableShortCuts property to false too.
Regards,
Wasif Ehsan.
|
|
|
|
|
Hi,
I'm creating an application where several images are display on a 'canvas'. When the user selects an image I draw a dotted outline to show the selection. However, in C++ I would have painted with a brush that 'inverts' the colour beneath it so that the line is visible on top of any colour. Is there a similar brush, pen or effect available in .Net?
Many thanks,
Simon
|
|
|
|
|
The ControlPaint.DrawReversibleFrame method is probably what you're looking for.
Josh
|
|
|
|
|
Thanks Josh, it's useful to know about the ControlPaint class. Unfortunately I need to paint the selection rectangle onto an imagebuffer as part of a layered composition. So far I'm using "g.DrawRectangle(p, r);" with a dashed style pen. If only I could set the pen to have a 'reversible' ink.
|
|
|
|
|
|
Varun_soft11 wrote: simply how can I achieve this
I'm sorry if I sound harsh, however, with your title of Software Engineer you shouldn't have to ask this question.
If you want to address some of the potential problems with a networked solution that is different, please ask a more specific question about your proposed solution, not how to do it.
|
|
|
|
|
I have a csharp user control that displays thumbnail images.
THis control has to be added to a CDialogBar. It is such that i am developing the UI in csharp with vc++ classes at the backend.
Does anyone know to go about doing this? Is COM required to go about implementing the same.
scorpion_pgm82
|
|
|
|
|
Hi folks!
I'm a little stumped at the moment and don't know where to look, so can anyone please give me a little kick-start?
I've got a remoting application and want to find out the version of the assembly the remote type is loaded from. To make the question a little clearer:
Both the server and the client have an assembly "x.dll" containing the MBRObject-derived type that's being used with remoting, let's call it "MyServer".
The client creates an instance of the remoting object using
MyServer srv = (MyServer)Activator.CreateInstance(typeof(MyServer)); in combination with a config file to get a reference to the remote MyServer instance.
When I look at srv.GetType() I get the type information from x.dll at the client.
What I need is a way to get the type information (or rather assembly information) for x.dll at the server, because the versions of these 2 assemblies do not neccessarily match and I want to find out if there are any incompatibilities.
Regards,
mav
--
Black holes are the places where god divided by 0...
|
|
|
|
|
Can you not trace the assembly/type version on the server when its started?
|
|
|
|
|
Hi Leppie!
I guess I could, but that would require some change to the remoting server, wouldn't it?
The problem is that - initially - x.dll on the Client and on the Server are identical (or at least compatible).
Now the server remains unchanged, but the client's x.dll is updated.
The new version has a method the old version doesn't have yet.
So everything will continue working as long as the new method is not used.
As soon as I use the new method at the client, the client gets a RemotingException saying that the method could not be resolved. Of course. The local type has the method, but the remote proxy doesn't.
I want to catch exactly this case before it happens, so I need a way to find out the assembly version of x.dll at the server _without_ modifying the server itself.
Any idea?
Regards,
mav
--
Black holes are the places where god divided by 0...
|
|
|
|
|
You could modify the client to obtain the version info about the assembly on the server, the remoting server wouldn't need to be modified at all.
Such as: FileInfo("\\RemotingServer\MyObject.dll")
Of course the obvious solution would be to not allow the the client and server assemblies to be modified seperately. Click-Once deployment is a big help in this if you can use it.
|
|
|
|
|
Hi Mark!
Thanks for the suggestion, but I'm dealing with an existing .NET 1.1 application (so no Click-Once is available and it doesn't help with the general possibility that the assemblies don't match).
To be able to get the FileInfo I'd have to have access to the server's directory, which I don't have.
Thanks anyway!
Regards,
mav
--
Black holes are the places where god divided by 0...
|
|
|
|
|
Hello everybody,
I have a problem while trying to make a monitoring server with WMI. I have arround 400 check to do on 15 servers. After 5 minutes a lot of port on my server are un TIME_WAIT state, so I get a RCP-server not avalaible I've reduce the TIME_WAIT timeout but nothing change...
Is there a way to close the WMI connection, I'm using ManagementScope... Here's a part of my code
<br />
public WMIRequest(string Username, string Password, string IP)<br />
{<br />
<br />
aConnectionOptions = new ConnectionOptions();<br />
aConnectionOptions.EnablePrivileges = true;<br />
aConnectionOptions.Username = Username;<br />
aConnectionOptions.Password = Password;<br />
this.IP = IP;<br />
}<br />
public bool Connect()<br />
{<br />
aManagementScope = new ManagementScope(@"\\"+ IP + @"\root\cimv2", aConnectionOptions);<br />
aManagementScope.Connect();<br />
return aManagementScope.IsConnected;<br />
}<br />
<br />
public string Request(string Request)<br />
{<br />
aObjectQuery = new ObjectQuery(Request);<br />
aManagementObjectSearcher = new ManagementObjectSearcher(aManagementScope, aObjectQuery);<br />
aManagementObjectCollection = aManagementObjectSearcher.Get();<br />
string Result = "";<br />
<br />
foreach(ManagementObject aManagementObject in aManagementObjectCollection ) <br />
{<br />
if(aManagementObjectCollection.Count > 1)<br />
Result += "|#*#|";<br />
<br />
foreach (System.Management.PropertyData aPropertyData in aManagementObject.Properties)<br />
{<br />
if(aManagementObject.Properties.Count > 1)<br />
Result += "|#|";<br />
Result += aPropertyData.Name + "|*|" + System.Convert.ToString(aManagementObject[aPropertyData.Name]);<br />
}<br />
}<br />
return Result;<br />
}<br />
I hope somebody has already resolved this problem...
Thank you
Nicolas.
|
|
|
|
|
Hi,
I have a similar problem.
Did you solve this?
In that case I would really appreciate your help.
/M
|
|
|
|