microsoft.public.dotnet.general Archive - May 2002
Post a message to this list
Messages
Page: 12345678910
Creating Stored Procedures in .NET (3 replies)
microsoft.public.dotnet.general
Hi, I'd like to create a stored procedure that will reside indefinitely in a SQL Server database, but I'd like to construct the statement (CREATE PROCEDURE...) and submit it (but not run it) to the database from a C# exe. Is there any way I can do this? Every place I've looked tells me how I can run a stored proc but not how to create one. Thanks, Rod
gmtime() in VB (2 replies)
microsoft.public.dotnet.general
I am looking for an equilivatnt function in VB to c function gmtime(). I need to allow a user to enter a date and time zone for a specified timezone and then convert that to GMT time.
Anybody trying MapPoint .Net basic services? (2 replies)
microsoft.public.dotnet.general
Hello, I'm trying to use the Mappoint .Net services featured on the msdn site. The instructions for using the samples are fairly straight forward, and I've got everything compiled and running without error. I get results back when I make calls to the service, but I don't get a map image. Anybody tried this stuff? Any ideas? Thanks, Jim
Extended MAPI from C# (4 replies)
microsoft.public.dotnet.general
I am working on a project in C# that needs to be able to send messages, insert tasks and calendar items and so forth into Outlook. I have been using the Outlook object model to accomplish this, but I would really like to keep the user from seeing all the security dialogs that pop up. I know that I need to use Extended MAPI to do this, but I am not a C developer so I am unsure of how to do it. I tr...
Maths... (7 replies)
microsoft.public.dotnet.general
Are there any advanced maths features within the .Net framework, specifically to do things with multidimensional matrices such as dot and cross product and inversions and matrix transforms? Cheers SO
Can a struct be converted to byte? (7 replies)
microsoft.public.dotnet.general
In C , I can use pointer to access a struct and read it byte by byte. how can I do this in C#? Thanks. Mingle
Accessing Functions Between Forms (2 replies)
microsoft.public.dotnet.general
Can anyone tell me how I can call a function on one form from another. Easily done in VB6 but can't figure how to do in .NTE I have two forms form1 and form2. Form1 is MDI parent. Form2 is a child form. Form1 has a toolbar with a "Save" button. I wrote a function in form2 to validate user entered information. When the user clicks the "Save" button on form1, I need to call the function in form2 to ...
Stopping page reloads after an event (4 replies)
microsoft.public.dotnet.general
Perhaps I am missing some fundamental concept with .Net but I'll ask anyway. How can I stop a web form from having its entire page reloaded after I handle an event such as a button click? Suppose I have a simple app that collects some text, and the user presses a "go" button. In the .Net web form I created to test this model, every button click results in the web form being stacked anew, so that w...
how to add multicast delegate ? (3 replies)
microsoft.public.dotnet.general
Hi I have created the following class. Basicaly it is wrapped around a timer and is a singleton. What I want to do 1) Allow couple of other objects to subscribe to this class Event. So when the timer elaps, all my objects will get an event thrown to them. how can I use multicast delegates in this class? 2) When one of my objects does not want to get notified any more for timer events, how can I un...
how do I check XL file version programatically? (2 replies)
microsoft.public.dotnet.general
In KB Article Q316934 http://support.microsoft.com/search/preview.aspx?scid kb;en us;Q316934 it reads: NOTE : Use the Excel 5.0 source database type for Microsoft Excel 5.0 and 7.0 (95) workbooks and use the Excel 8.0 source database type for Microsoft Excel 8.0 (97), 9.0 (2000) and 10.0 (2002) workbooks. The examples in this article use Excel workbooks in the Excel 2000 and Excel 2002 format. How...
Paging without Datagrid Control (2 replies)
microsoft.public.dotnet.general
Has anyone created paging without the Datagrid control in .NET? We are creating a Visual C# web application that uses a SQL Server 2000. Every example that is on the web uses a Datagrid to display the results. I want to use XML from the SQL Server 2000 database and create the paging before I transform it with the XSLT. Any examples? Is it possible to do this using the XPathDocument object? Thanks!...
Custom Formatter (2 replies)
microsoft.public.dotnet.general
Hi All, I'm looking for custom implementation of System.Runtime.Serialization.Formatter. Can anyone point me to it? Many thanks in advance, Sergiy Mesropyan.
Silly question...moving a form (3 replies)
microsoft.public.dotnet.general
Hi, Here is another frustrated VB6 developer that can't even move a freakin' form... I try to use Form.Location.X 123, and it says: "Expression is a value and therefore cannot be the target of an assignment"... What am I supposed to do to move a form? Also, is it possible to convert a Point into a string AND viceversa? Thanks in advance! Ivan V.
launching an associated application (3 replies)
microsoft.public.dotnet.general
Hi All, Does anyone know how to launch an associated application from a document in ..NET? For example. My application creates a file in a variety of formats. (i.e. pdf, rtf, txt). What I want is for my application to automatically launch the appropriate program for the file type so that the user doesn't have to Browse for the file with explore. TIA, Paul Hetherington BTech (Applied Computer Scien...
DataGrid underlying dataset not updated when user clicks Close button (2 replies)
microsoft.public.dotnet.general
When using a data bound DataGrid on a Windows form I have discovered that the underlying dataset does not get updated until the user moves off of the row being changed. In most cases this is not a problem, however when the user goes directly to the dialog's built in Close button (red X), the dataset does not get updated. I am trapping the form's Closing event, where I am trying to give the user th...
Moving to production breaks my service - Help! (2 replies)
microsoft.public.dotnet.general
I have written a web service that makes a database connection to a SQL Server 2000 database. On my development machine everything works great, including making the connection to the database. Her is the problem. When I move this service to a production server running the exact same OS and SPs (Win2k Server), it gives a 500 error when the connection to the database is attempted. This is the same da...
Custom Web Controls - Saving Children Properties (3 replies)
microsoft.public.dotnet.general
Hi, I'm trying to create a custom web control that exposes two children controls. I can create the control fine and it exposes the children correctly, allowing me to expand the child controls and set their properties. But, I can not figure out how to save the values of those children's properties.... Can anyone help? an email of a response would be appreciated.... Tim Bassett mailto:timothy.basset...
FileSystemWatcher problem (3 replies)
microsoft.public.dotnet.general
I'm writing a simple program to watch for new files to appear in a directory, read the data from those files, then delete them, i.e.: Private Sub FileSystemWatcher1 Created(ByVal sender As Object, ByVal e As System.IO.FileSystemEventArgs) Handles FileSystemWatcher1.Created If e.FullPath.ToLower.IndexOf(".txt") 1 Then LoadFromFile(e.FullPath) End If Dim Fi As New FileInfo(e.FullPath) Fi.Delete() En...
Equivalent of function GetObject for .NET objects (2 replies)
microsoft.public.dotnet.general
Hi All, I have a problem with getting of reference to already created object I have instance of object in memory, which serves my request. I create different object, which it should take reference to already created object For example in VB 6.0 solutions was easy: Set oRefToObj GetObject( , " class name ") After them in oRefToObj object I've had reference to my object or Nothing is this object was...
Basic Thread Question - Locking an object being accessed (4 replies)
microsoft.public.dotnet.general
Hello, Basic threading question. I understand that when a thread happens upon a locked object (using the C# keyword "lock" or Monitor.Enter), it enters a blocked state and enters the object when Monitor.Exit or the locking thread moves out of the locked block of code. What happens though when a thread is accessing the object but has not locked it and a thread comes along and tries to lock the obje...
.NET and Active Directory (2 replies)
microsoft.public.dotnet.general
Hello, I have a problem to access my active directory. This code works well : DirectoryEntry vo DS new DirectoryEntry( @"WinNT://servername/computername","administrator",""); But i don't manage to access active directory with LDAP protocol : DirectoryEntry vo DS new DirectoryEntry( @"LDAP://servername","administrateur",""); What is the difference between "LDAP" and "WinNT" ? thanks
datarow display (3 replies)
microsoft.public.dotnet.general
I've created a form that allows users to input certain vendor information into our database. I'm trying to create a search record function. basicly they would click on a button called search, and enter the name of the vendor. so my code looks something like this, Dim myDataRow As DataRow() Me.VendorDS1.Tables ("Vendors").Select("VendorName like '%" & txtVendorSearch & "%'") this will return a bunc...
DateTime Parse Problem (2 replies)
microsoft.public.dotnet.general
I am using the following DateTime.Parse function in a web form in my application: DateTime.Parse(DataBinder.Eval(Container, "DataItem.dt").ToString()).ToShortDateString() But getting the error msg: String was not recognized as a valid DateTime However on another page (top level of application) the same line does not cause an error. Any ideas? Thanks in advance, Phil
Just want to change a toolbox backcolor... help (2 replies)
microsoft.public.dotnet.general
Hi, The subject tells everithyng... Never thougt I would ask something like this... Thanks a lot Carlos Cruz
AD/Exchange Account Creation in C# (4 replies)
microsoft.public.dotnet.general
Here is my code for AD Account/Exchange mailbox Creation. The code in VB.NET works. The same code in C# fails to create Exchange Mailbox with the following exception on the line exchangeMailbox.CreateMailbox(mdbURL): {"Catastrophic failure" } HResult: 2147418113 xcode: 532459699 Message: "Catastrophic failure" InnerException: null TargetSite: {System.Reflection.RuntimeMethodInfo} StackTrace: " at ...
Ad
Need Dot Net Interview Questions?
Ask ExamGuru, Inc. for advice and help on Passing .Net Interviews
.Net Projects
Best-of-breed application framework for .NET projects, developed by ExamGuru, Inc. and ExamGuru IT
Free .net Help
Commission ExamGuru, Inc. and his team for your next bespoke software project
FogBUGZ
The only bug tracking system carefully crafted with one goal in mind: helping teams create great software.
Awesome Tools
If you don't know about these, you're missing out... IT Certification Questions
IT Interview Questions
Free Oracle 10g Training
MCSE Boortcamp
Cisco Study Guides
Cheap Study Guides
Exact Questions
Dot Net Interview Questions
Oracle OCP
Cheap Travel
Designer Perfumes - Wholesale Prices
Free Programming Tutorials
 
ExamGuru IT Solutions - .Net Guru is owned and operated by ExamGuru, Inc., the man behind .Net Guru. If you're in the market for bespoke software or software consultancy, why not get him and his highly trained team to help? - www.examguru.net/ITCertification
 Copyright © ExamGuru, Inc. 2001-2006
Contact Us - Terms of Use - Privacy Policy - www.dot-net-guru.com - www.examguru.net - www.oraclesource.net - www.itinterviews.net - www.examguru.net/ITCertification