Software Development Network Logo
  • VS Express Editions
  • Windows Forms
  • Visual C++
  • Visual FoxPro
  • SQL Server
  • .NET Development
  • Microsoft ISV
  • Windows Live
  • Architecture
  • Visual C#
  • Visual Basic
  • Windows Vista
  • Visual Studio
  • Visual J#
  • VS Team System

Software Development Network >> Sonnemaf's Q&A profile

Sonnemaf

Member List

SQL@MS
PLion
ashishth
Qber
Roy Muller
Israel213
SV
RodRav
Lacia
hangar18
melinjo
Gene Webb
Witi
mmenasches
MusicMagi
Alan Hebert - MSFT
Patricia Raj
NetProgrammer
Anthony Wong
MorenaMx
Only Title

Sonnemaf's Q&A profile

  • Visual Basic Windows Service - "Allow Interact with Desktop"; Set when installing

    On our POS Terminals, we have a requirement that the user's can't change the time of the PC. We have blocked access to the user's to the clock, the time config, and the command prompt. However, there are cases that somehow, someway it is getting changed. So I was tasked to create a XP Service, that will monitor the time of the system. One of the things I am using in the service is: Microsoft.Win32.SystemEvents.TimeChange All works fine with the service. Works great. However... here is my problem. The service needs to be set with the flag: "Allow Interact with the Desktop" set. I follwed the code found in this t ...Show All

  • SQL Server June CTP Report Model Creation using Analysis Services Datasource.

    I'm having trouble creating a Report Model in Visual Studio. Steps: 1) I create a data source which connects to AS  (Note, I have to have the AS project in the same solution) 2) I create a data source view but I have no way to access the AS data source I just created.  It only allows relational data sources.   I also tried to create a new data source from the data source view wizard and that still does not work. I can create my model from SQL Management Studio but I want to create it via Visual Studio.   What are the steps to properly create a model via Visual Studio or is this a bug in the latest CTP ...Show All

  • Visual Studio Express Editions Express Version limitations

    Can someone point me to a more detailed comparison between the Express and Standard versions of VB I'm looking for a little more detail than the grid at: http://msdn.microsoft.com/vstudio/products/compare/ In particular, I'm looking for limitations, such as remote data access, etc. Thanks, Scott There are no limitations on what you can do with the VB 2005 language in any of the IDE versions. You may have to write some more code to do certain things in Express because the IDE has fewer features, but it's still the same language so you can accomplish anything in any version. You can write wh ...Show All

  • .NET Development Moving from CDO to System.net.mail, cdoanonymous?

    In CDO I could use: 'Type of authentication, NONE, Basic (Base64 encoded), NTLM objMessage.Configuration.Fields.Item( "http://schemas.microsoft.com/cdo/configuration/smtpauthenticate" ) = cdoAnonymous How is this done in .net 2.0 I have converted all my code over, except this line which is an essential property of the smtp client to send through our smtp server. Thanks. Current code that works perfectly: Dim objMessage, server 'create CDO email object objMessage = CreateObject("CDO.Message") objMessage.sender = sender objMessage.to = recipient objMessage.subject = subject objMessage.T ...Show All

  • .NET Development File name validation method

    I have a web application where the users can provide the name of a file in a field. I want to make sure the syntax of that filename is valid before using it. I browsed the methods in various .Net 2.0 framework assemblies and there does not seem to be any to specifically validate the syntax of a string representing a filename. Is there a method I can use to validate the syntax of a NTFS file name regards, Gaetan. The System.IO.Path class might be useful. Specifically the GetInvalidFileNameChars() and GetInvalidPathChars() methods. ...Show All

  • Visual Basic Good articles on event handling in VB.NET

    I've started moving in to more advanced VB and I am presently having a look at event handling. I have tried to find some good resources on Google but event handling in VB.NET doesn't seem to be the stuff that people write about. On of my main questions is about the difference in event handling between C# and VB. Is it my perception or is event handling in VB a lot more basic I would appreciate it if anyone could point me in the direction of a good web resource or a book on event handling in VB. Thanks jjrdk I've been digging into the subject and have stubled across a major obstacle when implementing even ...Show All

  • Visual Studio Team System How to delete a /$folder from Source Control?

    After deleting a team project using the " TFSDeleteProject", although all the work items and sharepoint site and reports are all gone, the source control project is not being deleted. I've tried "TFSDeleteProject" with the "/force" option and also followed the instruction on this discussion forum: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=4809&SiteID=1&PageID=2  with no luck. Is there any way of deleting this       Thanks!   I'm using TFS Beta3 Refresh and TDSDeleteProject is in fact removing $/folder from source control. Maybe this wa ...Show All

  • SQL Server Can a Snapshot report be created programmatically?

    Can I create a Snapshot report with parameters programmatically in RS 2000 or RS 2005 If this can be done what is the command for it Thanks. I assume you mean the snapshot datetime stamp used as URL access parameter to render history snapshot. The snapshot datetime value is always based on UTC time which is independent of your local timezone, while the date in the internal catalog tables depends on your server timezone settings. -- Robert ...Show All

  • Visual Studio 2008 (Pre-release) UserControl Content property

    I have looked around quite a bit now, but still havn't found a way to instruct the UserControl to insert any data put in the Content property at my desired location. Here is a snippet: <UserControl x:Class="MyNameSpace.MyControl"     xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"     xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"         x:Name="myControl"         VerticalContentAlignment="Stretch"     HorizontalContentAlignment="Stretch"         >     < ...Show All

  • Visual Studio Team System TypeInitializationException error

    I have created one DLL file and added it to the references of my projects. And i tried to execute the my source code (in C Sharp) which calls up the dll file file. Now i tried to execute without debugging and encountered with the following error : "Unit Test Adapter threw exception: System.TypeInitializationException: The type initializer for 'Microsoft.VisualStudio.QualityTools.Tips.UnitTest.ConsoleOutputRedirector' threw an exception. ---> System.Configuration.ConfigurationErrorsException: An error occurred creating the configuration section handler for system.diagnostics: The given assembly name or codebase was invalid. (Exception fro ...Show All

  • Windows Forms LineTotal and Subtoal

    Hi folks. I having a datagrid that I fill from a access db table. I have got it working quite well with the easy option like displaying the data. Now I have googeld for a couple of day with out any success. I would like to get my grid to look like this : -------------------Grid starts----------------------- Date      Description   Income   Cost      Linetotal 2/2/05    Cofee          5            0     ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. No shader syntax highlighting

    The readme file of the Dxsdk December update says: "HLSL syntax highlighting works properly in Visual Studio 2005 but the Direct3D 9 Shader Debugger is not currently supported. " Well, the syntax highlighting has never worked for me in VC++ 2005. I thought the Dxsdk December update would fix this ( I found another post here that said it would) but it didn't. Is there anything I can do to activate it   Kloda wrote: The readme file of the Dxsdk December update says: "HLSL syntax highlighting works properly in Visual Studio 2005 but the Direct3D 9 Shader Debugger is not currently supported. " Well, ...Show All

  • Windows Forms How can I retain the filename in open file dialog and save it in the same name?

    Experts, Please help. I have a MDIForm which calls Child Form. In this child form I have two toolbar buttons, one for open file, and another for save file. The main issue is: When I open the file using opendialog, the content goes to richtextbox. I do edit, modify or delete some content and then when I try to save, it does not remember the filename I opened, and savefile dialog works like save as dialog. I do not know how to make it remember. Also, I can not assign FileSaveDialog= FileOpenDialog as they are diff classes. I can keep these attributes at class level definition, but do not know how to equate. Please let me know how can I fix it ...Show All

  • Windows Forms control for dates?

    I'm looking for a control that displays dates in a choosen dateformat (dd/mm/yyyy, mm/dd/yyyy...) I'm not looking for a calender or something like that, more something like a textbox that automatically adjusts a date (for example one from a database) to the wanted format. Does anyone know if there is a control that describes my needs Thanks! I’m afraid that I do not know of such a control however building one would be trivial, try something like this:         public class DateTextBox : TextBox         {  &nbs ...Show All

  • Visual Basic AsyncCallback in a different thread?

    Is there a way to handle an AsyncCallBack procedure/delegate in a specific thread Here is why I am asking: I am using the Sockets.BeginConnect function and specifying a callback procedure but when I try to do anything (like writing to a text box on my form) in the callback procedure I am getting warnings that I think are telling me I have threading issues. I think what it is trying to tell me is that the AsyncCallback procedure is not executing under the thread of my form but is executing in the thread that was created to handle the BeginConnect function. Do I have this right so far If so, how can I do anything meaningfull with my form o ...Show All

©2008 Software Development Network