microsoft.public.dotnet.framework Archive - March 2003
Post a message to this list
Messages
Page: 12
how to get list of computer on local network ? (2 replies)
microsoft.public.dotnet.framework
how to get list of computer on local network ? I used (with interop, in C#) WNetOpenEnum, WNetEnumResource, NETRESOURCE but it's imperfect. it fail to bring back a laptop, not registered on any domain, although connected onto the network. worst, even from the laptop itself I was not able to grab this computer, any other ideas ?
Error using XmlSerializer (4 replies)
microsoft.public.dotnet.framework
When I try to generate a xml string of my objectstructure in C# I get the folowing error message. If I remove the lines : [XmlElement(typeof(Type), ElementName "Pipe"), XmlElement (typeof(LineSegment), ElementName "Section")] public System.Collections.ArrayList Elements { get {return m elements;} set {m elements value;} } Then the XmlSerializer works great. The error message: System.InvalidOperati...
.net component - "run as" a specific user (2 replies)
microsoft.public.dotnet.framework
This is probably a real basic question, but how do I set up a component to "run as" a specific user account? I need to do something similar to what COM does when you choose to run under a specific account, rather than as the interactive user. (We have a specific user, "obj," and that user has execute rights on our stored procs.) But, I don't to have to run my .net component as a serviced component...
OLE DB connection (2 replies)
microsoft.public.dotnet.framework
Hi, how could I dinamically select the database name with an OLE DB connection? Thanks, Enrico
Updating Data Via WebService (2 replies)
microsoft.public.dotnet.framework
Hello, I have created a client windows application which uses a web service that lives on the server. The client application retrieves data from the web service in the form of a dataset object. The user is able to make changes to the dataset which then is passed back to the web service in order to update the sql server database. This has all be sucessful. My question is in reference to mutiple cli...
help with control binding (3 replies)
microsoft.public.dotnet.framework
Hi im having a problem with a custom control i am developing basically (at the moment) the control is going to be a like a list I have looked at the documentation somewhat and have got it partially working my problem is with the postback. this being that when i post the page back the control losses its data here is the databinding code this seems to work ok protected override void OnDataBinding(Ev...
how to execute a VB code in a string at runtime ? (3 replies)
microsoft.public.dotnet.framework
Hi, I've a VB code in a string and I want to execute it at runtime. For example my string will contain : "10 20 30" After, I want to do the same thing but I want to access an external object from this script, like this : "MyObject.LookupValue(10) MyObject.LookupValue(20)" MyObject is an instance of a custom class : Dim MyObject New MyLookupClass In an HTML client script it's very easy to do this w...
sockets in net (RecieveFrom) (2 replies)
microsoft.public.dotnet.framework
I don't undestend the way how winsock 1.1 recvfrom function done in Net Framework Socket class. recvfrom set buffer and size, if buffer is bigger than next call to recvfrom get rest of data message. In Net Framework in this situation MSDN gives next explanation for Overloads Public Function ReceiveFrom( ...) As Integer: "If you are using a message oriented Socket, and the message is larger than th...
New member in Enums (2 replies)
microsoft.public.dotnet.framework
Hi I built a dialog box with a few buttons wich should more than Yes, No, Cancel, etc. So how can I add new members in DialogResult Enumeration ? Thanks
Localization of Help bug in VS.NET (3 replies)
microsoft.public.dotnet.framework
This has been brought up, apparently as early as Nov. of 2001, and the bug still exists, so I'm curious if anyone knows if MS has any intention of fixing this, or if those of us doing localizable apps are simply screwed? Basically, if you add a help provider to a localized form, the code it inserts is faulty and won't compile. Essentially, calls to SetHelpKeyword and one other method, fail because...
StrongNameIdentityPermissionAttribute (2 replies)
microsoft.public.dotnet.framework
Hi, I was playing about with the StrongNameIdentityPermissionAttribute but can't seem to get it to work. I'm following the article at http://www.morganskinner.com/ViewArticle.aspx?ArticleID 7 1) created strong name key sn k test.snk and saved to C drive 2) added [assembly: AssemblyKeyFile(@"C:\test.snk")] to both reference dll and comsumer app AssemblyInfo.cs 3) built solution (contains both dll a...
Framework Enhancement Request (2 replies)
microsoft.public.dotnet.framework
There is a common problem that many who develop applications in the retail / public arena deal with and this is the concept of business days. It would be nice if the Framework included / extended the DateTime Object module to included methods like: DateTime.AddBusinessDays( x ) or DateTime.BusinessDaysDifference( date1, date2 ). Please let me know if this is possible. Thanks, Wade
How to find own install directory from within Windows Service (3 replies)
microsoft.public.dotnet.framework
How can a running Windows Service determine its own install directory? I'm looking for something analogous to HttpRuntime.AppDomainAppPath which works for Web Apps.
loading an office document (2 replies)
microsoft.public.dotnet.framework
Hi, Is there a way to load an office file from the disk and obtaining a reference to the loaded COM object? I don't know if it's going to be a Word document or an Excel sheet or something else, I just need to load the file and display it's document title. So far I tried with this: Guid g new Guid("{00020906 0000 0000 C000 000000000046}"); object obj Activator.CreateInstance(Type.GetTypeFromCLSID(g...
Problems using API PostMessage... (2 replies)
microsoft.public.dotnet.framework
Hi all! I m trying to send messages from one application to another using the Win32 API PostMessage function... The function takes two parameters called WParam and LParam and I wish to send strings using these that I want to be able to use from the destination application. I ve declared the functions this way: [DllImport("user32.dll")] private static extern bool PostMessage( Int32 windowHandle, in...
Two concurrent versions of .NET Framework. (4 replies)
microsoft.public.dotnet.framework
Hi! I have two concurrent versions of .NET framework installed. The computer is running Windows Server 2003 RC2. It comes with .NET Framework 1.1.4322. I also have Visual Studio .NET installed. It installs .NET Framework version 1.0.3705. Is it (having two different versions of .NET Framework installed) able to cause problems? Thanks.
How to get exe/dll load path (3 replies)
microsoft.public.dotnet.framework
I'm trying to install a service using InstallUtil.exe. But in order for my service to be installed, it needs to read a config file in the same directory as the exe resides. How do I find the directory that the service exe is loaded from so that I know where to load my config file from? I tried: AppDomain.CurrentDomain.SetupInformation.ApplicationBase, but that just give me the path that the Instal...
HELP PropertyInfo.SetValue doesnt work on structures properly (5 replies)
microsoft.public.dotnet.framework
HELP PLEASE!!! I am having a problem setting a value using reflection on a structure. When I call the setvalue it gives no error but basicly ignores the command and the value does not change. If I use a class instead of a structure it works fine. Also if I pass the structure as object to a sub then is still doesnt work, but if I do the setvalue command in the debug window after passing it as objec...
reading large file (3 replies)
microsoft.public.dotnet.framework
I have a console app that reads a large file (640000byteS), parces the file and writes to a db. My problem seems to be a buffer overrun. I seem to loose a chunk out of the middle of the file. I am using StreamReader but I cannot seem to be able to set the buffer correctly. Any suggestions?
How to create a file that someone else is reading? (3 replies)
microsoft.public.dotnet.framework
I am converting some code from VS6 C to VB.NET. The application writes PCL to a text file. I use a 3rd party PCL displayer to show the results of my work. I think it keeps the file open for read access. In VS6 C I opened the file this way: m filOut fopen(FileName,"w"); In VB.NET I open the file this way: m fsFile New BinaryWriter(New FileStream(FileName, FileMode.Create, FileAccess.Write, FileShar...
How to make a assembly as Domain-neutral? (4 replies)
microsoft.public.dotnet.framework
I know there is such thing but no idea how to make my assembly as domain neutral. is it through compile , property setting or when loading? btw, also want to know is there such thing as global object which share by all apps in all AppDomains? thx a lot
Timer in WEBService (2 replies)
microsoft.public.dotnet.framework
How to create a timer within my WEBService ?
Get version of COM DLL (2 replies)
microsoft.public.dotnet.framework
Hi Can anyone tell me how to retrieve the verison of a com dll from a vb.net program. I know that there a win32 api calls to do this but there must be a better way? Regards Rob Bowman MCSD
Compact framework form vs panel (2 replies)
microsoft.public.dotnet.framework
I didn't find a better suited group for this question... I'm writing a C# application using the .net cf. I have a database table which I want to populate with approx. 20 fields. Almost every field is input from the user. I'm wondering, what is the best solution to get all the input from the user? Using multiple forms, or panels on one form? Data have to be temporarily stored in the GUI until all t...
Which .Net class implements VB6's DateAdd() functionality? (3 replies)
microsoft.public.dotnet.framework
Hi, is there a .Net class that implements the same functionality as VB6's DateAdd() functionality? The DateTime class only has methods to add Days, Month, and Year. There is no methods to add weeks, quarters like the DateAdd() function. Thanks.
Ad
MBR BootFX
Best-of-breed application framework for .NET projects, developed by Matthew Baxter-Reynolds and MBR IT
 
 Copyright © Matthew Baxter-Reynolds 2001-2008. '.NET 247 Software Development Services' is a trading style of MBR IT Solutions Ltd.
Contact Us - Terms of Use - Privacy Policy - www.dotnet247.com