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
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
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)
>
>
>
>
> -
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
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
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
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
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
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
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
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:
>
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
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:[
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
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
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
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
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
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
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
> 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
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
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
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
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
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
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
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:
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
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:/
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
Hello!
Is there a class or some thing else through which information about
paritcular dirves can get like label, size etc.
_
Join the worlds largest e-mail service with MSN Hotmail.
http://www.hotmail.com
You can read messages fr
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
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
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
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
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
>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
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
> 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.
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
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
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?
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
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
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
> 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
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:
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
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
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 help
You can read messages from the DOTNET archive, unsubscribe from DOTNET, or
subscribe to other DevelopMentor lists at http://discuss.develop.com.
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.
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
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
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/
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
57 matches
Mail list logo