Re: [DOTNET] Interesting Problem, what am I missing (WAS: Urgent pls -finding the assembly name from namespace).

2002-06-18 Thread Mitch Denny
George, That was the subject of my earlier post, I am seeing unexpected behavior, wait for some of the other folks on this list to respond. Be patient. - Mitch Denny - [EMAIL PROTECTED] - +61 (414) 610-141 - -Original Message- From: The DOTNET li

[DOTNET] Changing backcolor of an MDI Form?

2002-06-18 Thread Dinesh Upare
Hi, I would like paint a gradient effect on the form. I am trying to use a GradientBrush and filling the rectangle of a specified region. I could achieve it on a normal form but not on a MDI form. Does anyone know how to assign a backcolor to "MDI" which is visible on the client area (where chil

Re: [DOTNET] Urgent pls -finding the assembly name from namespace

2002-06-18 Thread george antony
thanks ..this part of the code works... --- Chris Farmer <[EMAIL PROTECTED]> wrote: > George, > A quick workaround to your problem might be to use > the VB GetType function > in place of the Type.GetType method. i.e., > > Dim t As Type = > GetType(System.ComponentModel.Component) > > > > > -

Re: [DOTNET] Interesting Problem, what am I missing (WAS: Urgent pls -finding the assembly name from namespace).

2002-06-18 Thread george antony
ok. i just want If I say imports System I should get the assembly system.dll this itself is not working?? the code u sent works for somecases like "System.Reflection.PropertyInfo" which gives mscorb what do for the cases like system... pls help. regard george --- Mitch Denny <[EMAIL PROTECTED]> w

Re: [DOTNET] Urgent pls -finding the assembly name from namespace

2002-06-18 Thread Chris Farmer
George, A quick workaround to your problem might be to use the VB GetType function in place of the Type.GetType method. i.e., Dim t As Type = GetType(System.ComponentModel.Component) -Original Message- From: The DOTNET list will be retired 7/1/02 [mailto:[EMAIL PROTECTED]]On Behalf O

Re: [DOTNET] Interesting Problem, what am I missing (WAS: Urgent pls -finding the assembly name from namespace).

2002-06-18 Thread Mitch Denny
George, There is no easy way to solve the problem because other than what is in the GAC .NET doesn't know where to find assemblies other than where you tell it to. The way the ASP.NET team tackled this was introduce @ Import directives at the top of *.aspx (and whatever) files. The other thing th

[DOTNET] Invoking a COM Control in .Net Compact Framework using PInvoke

2002-06-18 Thread PrashanthG
Hi, I need to invoke a COM Control (HTML Viewer Control) from .Net Compact Framework by doing Pinvoke as COM Interop is not supported in COmpact Framework. Can somebody throw me some light on this as to how to go about. Any samples or pointers will be highly appreciated. Thanks PrashanthG

Re: [DOTNET] Interesting Problem, what am I missing (WAS: Urgent pls -finding the assembly name from namespace).

2002-06-18 Thread george antony
hi Thanks for the code. The problem is I am using system.ComponentModel.component the reference type is nothing .. how will i get the assembly name for this.. my requirement is like this if the user says imports Microsoft.Biztalk.btsconfig I have to find the assembly name from the microsoft.bi

[DOTNET] STA to MTA (once more)

2002-06-18 Thread Frank Colbert
I'll try re-posting with a diff spin Given a COM object passed to managed code via an interface method param, is there any way for me to tell whether the COM object was created in an STA or MTA? What I really want to do is the managed version of CoMarshalInterThreadInterfaceInStream, but ther

[DOTNET] Interesting Problem, what am I missing (WAS: Urgent pls -finding the assembly name from namespace).

2002-06-18 Thread Mitch Denny
Hi all/George, Below is the code that I would have converted my C# sample into, however George is quite correct, it doesn't seem to be working at all. When executed, if it all works it should return a message box giving the full assembly name for System.dll but it doesn't. Probably best to read

Re: [DOTNET] Urgent pls -finding the assembly name from namespace

2002-06-18 Thread george antony
hi this is my code Dim mytype As Type mytype = Type.GetType("System.ComponentModel.Component") MsgBox(mytype) i am getting nothing in the msgbox pls help on this. its very urgent for me now regards gan --- Paul Gaske <[EMAIL PROTECTED]> wrote: > That's a good start, but what about: >

Re: [DOTNET] Urgent pls -finding the assembly name from namespace

2002-06-18 Thread Nicolas Benech
Oops. Sorry. I did not get the point. Even if VB itself is not case sensitive, the quoted string type.gettype("System.Componentmodel.Component") is case sensitive so maybe it'd be better with System.ComponentModel.Component ? Regards, Nicolas This message is for information purposes only an

Re: [DOTNET] Urgent pls -finding the assembly name from namespace

2002-06-18 Thread Paul Gaske
That's a good start, but what about: >dim mytype as type= >type.gettype("System.Componentmodel.Component") Should be: Dim mytype as type = type.gettype("System.ComponentModel.Component") Note the capital 'M' for 'Model'. Cheers, Paul. -Original Message- From: Nicolas Benech [mailto:[

Re: [DOTNET] Urgent pls -finding the assembly name from namespace

2002-06-18 Thread Nicolas Benech
Chris meant that you have some typo in your code sample: > > dim x as system.refelction.assembly > > x=system.refelction.assembly.getassembly(mytype) System.Reflection.Assembly would work better... :) For what it's worth... Nicolas This message is for information purposes only and its conte

Re: [DOTNET] Urgent pls -finding the assembly name from namespace

2002-06-18 Thread george antony
I am writing in vb.net only --- Chris Farmer <[EMAIL PROTECTED]> wrote: > I'm certainly no relection expert, but the docs say > that Type.GetType > performs a *case sensitive* search. If your typing > in the VB editor is no > better than in your e-mail editor, that may be the > source of your p

Re: [DOTNET] Urgent pls -finding the assembly name from namespace

2002-06-18 Thread Chris Farmer
I'm certainly no relection expert, but the docs say that Type.GetType performs a *case sensitive* search. If your typing in the VB editor is no better than in your e-mail editor, that may be the source of your problem. -Original Message- From: The DOTNET list will be retired 7/1/02 [m

Re: [DOTNET] Urgent pls -finding the assembly name from namespace

2002-06-18 Thread george antony
hi The Source code u have sent is not working. its giving an error system.nullreference exception. I am trying like this dim mytype as type= type.gettype("System.Componentmodel.Component") dim x as system.refelction.assembly x=system.refelction.assembly.getassembly(mytype) here mytype is becom

Re: [DOTNET] VS.NET IDE's auto ID and NAME attribute insertion...

2002-06-18 Thread Dean Cleaver
Dumb idea, but if you wrote the custom controls perhaps you could add a name property? Seems to be a "standard" property that the VS IDE expects... Dino -Original Message- From: The DOTNET list will be retired 7/1/02 [mailto:[EMAIL PROTECTED]] On Behalf Of Paul Gaske Sent: Wednesday, 19

Re: [DOTNET] Drive Infomation

2002-06-18 Thread Bill Schmidt
Amir, The following VB.NET code will list the drives on your local computer, their size, and volume label: Dim mos As System.Management.ManagementObjectSearcher Dim mo As System.Management.ManagementObject Dim sDevice As String Dim sSize As String Dim sLabel As String mo

[DOTNET] VS.NET IDE's auto ID and NAME attribute insertion...

2002-06-18 Thread Paul Gaske
Hi all, I copy this: Then paste it and get: Has anybody worked out how to turn this OFF?! It drives me bananas. I can't find any setting for it in the usual places; so I'm hoping it's something I can change in the registry/a config file somewhere. Or something! I am using custom controls t

Re: [DOTNET] MAC Address - Media Access Control Address

2002-06-18 Thread Marsh, Drew
> Various searches on help and the dot net mails have drawn a bit of a > blank: > > How do you get the MAC address as previously derived from: > > Private Declare Function Netbios Lib "netapi32.dll" _ >(pncb As NET_CONTROL_BLOCK) As Byte > > > Under VB.Net? Did you try just typing that in? It

[DOTNET] MAC Address - Media Access Control Address

2002-06-18 Thread Ian Pettman
Hi, Various searches on help and the dot net mails have drawn a bit of a blank: How do you get the MAC address as previously derived from: Private Declare Function Netbios Lib "netapi32.dll" _ (pncb As NET_CONTROL_BLOCK) As Byte Under VB.Net? Many thanks Ian You can read messages from

Re: [DOTNET] SQL Server and ASPNET user

2002-06-18 Thread Justin Harrell
Sounds like user healkar is not a dbo either. Dbo is the only user that has permission to execute all sp's by default, there is no built in db_executor like there is for db_datareader,db_datawriter. To accomplish that we usually make a db_executor role and assign it to the user(s). Then we have a

Re: [DOTNET] SQL Server and ASPNET user

2002-06-18 Thread Sean Greer (SBI-Chico)
Correct, you need to grant execute permissions to the users. Use this from within Query Analyzer: grant execute on to public go Seang -Original Message- From: Karen Healey [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 18, 2002 1:55 PM To: [EMAIL PROTECTED] Subject: Re: [DOTNET] SQL S

Re: [DOTNET] SQL Server and ASPNET user

2002-06-18 Thread Irina Volodovsky (Solutions IQ)
It can be some other problem, much worse... Is looks familiar to me :( Karen, can you check, please, if Windows application on your computer can connect using your connection string? It is very important. If it also failed - the problem with maxed mode authentication. But the real problem, if Win

Re: [DOTNET] SQL Server and ASPNET user

2002-06-18 Thread Karen Healey
That almost did it. Now I cannot run any of my stored procedures unless I go into the user permissions and turn on execute for every one of them. Is this really necessary? Is there a quicker way to get them turned on? Thanks, Karen Healey [EMAIL PROTECTED] (508) 473-1218 - Original Me

Re: [DOTNET] SQL Server and ASPNET user

2002-06-18 Thread Sean Greer (SBI-Chico)
Have you enabled mixed mode authentication on for SQL Server? Right-click on the server node in the tree, choose properties, then the security tab. Change from Windows Authentication to Mixed Mode Authentication (sorry if the verbage is off, don't have SQL Server on this machine). Seang -Or

[DOTNET] SQL Server and ASPNET user

2002-06-18 Thread Karen Healey
Hi, I'm having some problems with users/connection strings for a SQL Server database though. Right now, I use SQL Enterprise Manager and add the ASPNET user with dbo permission and use a trusted connection and I'm able to access the database. The connection string looks like the following:

Re: [DOTNET] DateTime Format

2002-06-18 Thread Sean Greer (SBI-Chico)
How about: DateTime dt = DateTime.Now; string s = dt.ToString("MMddyyhhss"); Take a look at the date and time format string section[1] in the doc. Seang [1] ms-help://MS.NETFrameworkSDK/cpguidenf/html/cpcondatetimeformatstrings.htm -Original Message- From: Nischal Muthana [mailto:[EMA

[DOTNET] DateTime Format

2002-06-18 Thread Nischal Muthana
Hi All Can someone help me with an example of getting the current date and time into a string format like "mmddyyhhss" -- "061802131235" Appreciate any help. Thanks Nischal __ Do You Yahoo!? Yahoo! - Official partner of 2002 FIFA World Cup http:/

[ADVANCED-DOTNET] Role-based Windows authentication with a web service

2002-06-18 Thread Matthew
I'm having a curious problem when using Windows authentication with a web service. I can successfully retrieve the correct user name. I can also use code like the following to test if the user in an administrator: Dim Principal As WindowsPrincipal Principal = CType(User, WindowsPrincipal) Return

[DOTNET] Drive Infomation

2002-06-18 Thread Amir Kamran
Hello! Is there a class or some thing else through which information about paritcular dirves can get like label, size etc. _ Join the world’s largest e-mail service with MSN Hotmail. http://www.hotmail.com You can read messages fr

[ADVANCED-DOTNET] Get id value from data adapter.update?

2002-06-18 Thread Sills, Adam
Maybe I'm missing something, but I'm not sure how to get a DataAdapter to give me back the identity value of inserted rows, short of completely refreshing the DataSet? Basically I've got a DataSet in memory and am .Add()ing rows to one of the DataTables. Later I call SqlDataAdapter.Update passing

Re: [DOTNET] STA to MTA

2002-06-18 Thread franklin gray
Don't mix STA with meaning single threaded. You can have a STA assembly using multi-threading. -Original Message- From: Frank Colbert [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 18, 2002 2:01 PM To: [EMAIL PROTECTED] Subject: Re: [DOTNET] STA to MTA I guess this means I cannot use

Re: [DOTNET] STA to MTA

2002-06-18 Thread Frank Colbert
Even if my thread is STA, since it is a different apt. than the caller, I still have marshaling problems, no? Seems like I need CoMarshalInterThreadInterfaceInStream... Thanks, -FC -Original Message- From: franklin gray [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 18, 2002 11:04 AM T

Re: [DOTNET] STA to MTA

2002-06-18 Thread Frank Colbert
I guess this means I cannot use async calls offered by MulticastDelegate.BeginInvoke, EndInvoke since these are handled by a CLR threadpool presumably created as MTA? -Original Message- From: franklin gray [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 18, 2002 11:04 AM To: [EMAIL PROTECT

Re: [DOTNET] MS SOAP implementation - cross platform issues?

2002-06-18 Thread Dan Souk
Thanks. -Original Message- From: The DOTNET list will be retired 7/1/02 [mailto:[EMAIL PROTECTED]] On Behalf Of Greg Reinacker Sent: Monday, June 17, 2002 11:35 PM To: [EMAIL PROTECTED] Subject: Re: [DOTNET] MS SOAP implementation - cross platform issues? We've done some interoperabilit

Re: [DOTNET] STA to MTA

2002-06-18 Thread franklin gray
>From what I understand, the managed assemblies have to be STA for it to interop with >COM objects. -Original Message- From: Frank Colbert [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 18, 2002 10:04 AM To: [EMAIL PROTECTED] Subject: [DOTNET] STA to MTA Hello interop experts, This is

Re: [DOTNET] Announcing the Microsoft ASP.NET Web Matrix Project

2002-06-18 Thread Christian Weyer
Yes :-) Christian Weyer - .NET XML Web Services Repertory http://www.xmlwebservices.cc/ - Daniel Bowen wrote: >>Microsoft ASP.NET Web Matrix Project (technology preview release) > > > I assume this was project "Saturn"? You ca

Re: [DOTNET] Announcing the Microsoft ASP.NET Web Matrix Project -- A New Free ASP.NET Development Tool

2002-06-18 Thread Daniel Bowen
> Microsoft ASP.NET Web Matrix Project (technology preview release) I assume this was project "Saturn"? You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com.

Re: [ADVANCED-DOTNET] Singleton pattern

2002-06-18 Thread Frank Hileman
Perhaps the thread-safety of static constructors was not known to these developers. I don't see how a function can be guaranteed to be executed only once, and be thread unsafe. Makes no sense. They can delete the lock code here. The article about singletons (on msdn) also said static constructors

Re: [ADVANCED-DOTNET] Another Threading

2002-06-18 Thread Stefan Avramtchev
On Tue, 18 Jun 2002 07:32:45 +0200, Alois Reisinger wrote: >Is there any chance to find out if two threads are inside the same part of code? Yes, why not? Consider you have a critical part of code which is not locking on any object. Then you can use interlocked counters to register threads ent

[DOTNET] STA to MTA

2002-06-18 Thread Frank Colbert
Hello interop experts, This is a repost from last week - reworded to be (hopefully) simpler... How can I marshal a COM interface pointer created in an unmanaged STA to a managed MTA thread? In othre words, what is the managed moral equivilent of CoMarshalInterThreadInterfaceInStream or the GIT?

[DOTNET] SafeArrayTypeMismatchException

2002-06-18 Thread Yogesh Shetty
I am facing a problem while invoking a com ( developed in VC++) method from .NET, I have enclosed below both VC++ & .NET Code, when i invoke this component from VB 6.0 it works fine and both the out parameter pvarAccessList & pvarErrorMsg gets filled and returned properly. pvarAccessList returns a

[DOTNET] Any way to add tooltip to a menu item ?

2002-06-18 Thread Jeff Roberts
Is there any way to add a tooltip to a menu item so that when the operator drops down a menu and moves the mouse over a particular menu item a tooltip is displayed ? thank you You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at ht

Re: [ADVANCED-DOTNET] Singleton pattern

2002-06-18 Thread Richard Birkby
See the thread "Do static ctors guard against concurrent execution?" on the DOTNET mailing list. It demonstrated .cctor deadlock victims in C#. Richard > -Original Message- > From: Moderated discussion of advanced .NET topics. > [mailto:[EMAIL PROTECTED]]On Behalf Of Stefan > Avramtchev

Re: [DOTNET] Screen capturing in dotnet

2002-06-18 Thread Simon Robinson
> These interfaces are depreciated, and I'm not sure if > Direct3D surfaces are a replacement. Any DirectX gurus out there? > DirectDraw has only been depreciated but deprecated too :). The replacement are the new DirectX Graphics interfaces, which supposedly combine DirectDraw and Direct3D. How

Re: [DOTNET] NT Service Installation problems.

2002-06-18 Thread Nick Wienholt
Is this a NT4 issue or .NET service issue (can you change the account details of non-.NET services?)? Maybe the WMI Win32_Service.Change method can do the job is it simply a NT4 MMC issue. Nick - Original Message - From: "Rolls, Robert" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent:

Re: [ADVANCED-DOTNET] Singleton pattern

2002-06-18 Thread Peter Lillevold
Actually, I have an example fetched from the tracer routines of Duwamish where the static constructor makes sure no other thread is excecuting the samme constructor. Check out the code below. static TraceHelper() { //Get the class object in order to take the initializ

Re: [DOTNET]

2002-06-18 Thread Paul Stevens
Could you be a *little* more specific please ;-) -Original Message- From: Adrian Oliver [mailto:[EMAIL PROTECTED]] Sent: 18 June 2002 01:33 PM To: [EMAIL PROTECTED] Subject: [DOTNET] DOTNET help You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to othe

Re: [DOTNET] Urgent pls -finding the assembly name from namespace

2002-06-18 Thread Brooke Philpott
If it's part of the core framework the documentation will tell you what assembly any type is in at the bottom of the type reference within the class library reference documentation. -Brooke -Original Message- From: george antony [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 18, 2002 7:

[DOTNET]

2002-06-18 Thread Adrian Oliver
DOTNET help You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com.

Re: [DOTNET] Urgent pls -finding the assembly name from namespace

2002-06-18 Thread Mitch Denny
George, It isn't really possible to find an assembly name from a namespace since the same namespace may be split across multiple assemblies. Take the "System" namespace as a classic example. What you can do is find the assembly name from a class name, that might get you to where you want to go.

Re: [DOTNET] Urgent pls -finding the assembly name from namespace

2002-06-18 Thread Graeme Foster
Not possible, because namespaces can appear in multiple assemblies. BTW - please don't mark posts as "urgent", as doing so is bad netiquette. Also, it won't make the slightest bit of difference, except to annoy your fellow subscribers. G. -- Graeme Foster ([EMAIL PROTECTED]) Principal Software E

[DOTNET] Urgent pls -finding the assembly name from namespace

2002-06-18 Thread george antony
hi all can any one tell me how to find a assembly name from a namespace regards gan __ Do You Yahoo!? Yahoo! - Official partner of 2002 FIFA World Cup http://fifaworldcup.yahoo.com You can read messages from the DOTNET archive, unsubscribe from DO

Re: [DOTNET] Screen capturing in dotnet

2002-06-18 Thread Mitch Denny
Nic, That is probably enough for me to use to continue my ongoing investigation into the fastest way to grab a screenshot in .NET. - Mitch Denny - [EMAIL PROTECTED] - +61 (414) 610-141 - -Original Message- From: The DOTNET list will be retired 7/

Re: [DOTNET] Screen capturing in dotnet

2002-06-18 Thread Nick Wienholt
Hi Mitch, Not sure of the exact methods to call - I have set breakpoints at various DirectDraw locations within ripping programs, and had the breakpoints hit when an image was being captured. The names in the DirectDraw symbols are fairly managed, but the call stack looks something like a call t