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

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

mtower

Member List

dpdoug
Oguz Mazlum
the Wolf
slantednet
citizenjimi
Serge Luca
Idizz
KnutVG
smhmp
TotalNovice
Demian Schnaidman
Yatharth Gupta
James.Zhang - MSFT
Frans Hermanto
JVH
gogetsome
JH2006
DLinder
GEEEO
shawn3091
Only Title

mtower's Q&A profile

  • Visual Studio 2008 (Pre-release) Proper way to close from the AppStartup method

    Is this correct void AppStartup(object sender, StartupEventArgs args) { Window1 mainWindow = new Window1(); mainWindow.WindowStartupLocation = WindowStartupLocation.CenterScreen; try { ContactList contactList = this.ReadContactsFromFile(); this.Properties["ContactList"] = contactList; mainWindow.Show(); } catch (Exception e) { MessageBox.Show(e.Message, "Error", MessageBoxButton.OK, MessageBoxImage.Error); mainWindow.Close(); } } Specifically, I'm curious as to if I'm handling the catching of the exception correctly where I want to end the application if the data can not be read. (Seems odd ...Show All

  • Visual C# Post-build event stripping carriage returns

    Howdy all, I'm using VS 2005 (.NET 2.0).  I have a windows forms application that consists of two projects.  One project is the application itself, and the other project is the "setup" project.  I want to have the setup project copy the msi file to a "ForDistribution" directory via a Post-build event.  The post-build event was added to the setup project as follows: 1.) Click on the setup project in the solution explorer. 2.) In the Properties window, select PostBuildEvent. 3.) Click on the ellipses (...) to open up the "Post-build Event Command Line" editor. 4.) Enter the following lines into the editor: IF NOT EXIST " ...Show All

  • SQL Server Setting permissions programmatically

    All, I'm wondering if there are any methods to set the permissions for a specific user on a specific report within SQL Server Reporting Services. I got how to get permission from them programmatically, but not how to set them but the user interface.. Please apologize me if there was a similar thread in the recent past; I tried to find it out, I didn't succeed. Thanks a lot in advance for your timely response (as usual deadlines are by "yesterday"). -G reference the ReportService2005.asmx and use the following method http://msdn2.microsoft.com/en-us/library/microsoft.wssux.repo ...Show All

  • Visual Studio Express Editions Visual Basic 2005 Express connection to sql 2000 server

    Hi I'm a newbe to Visual Basic 2005 Express but I’m a systems administrator for a Microsoft SQL 2000 db server. I have been looking through all the help files and through the connection wizards but I can not find a way of connecting to a 2000 SQL server instead of using the Microsoft SQL Express file connection method. 1. Have I misunderstood and “Visual Basic 2005 Express” can not be connected to a full db server 2. If the answer is “no” does anyone know how to connect to a Windows 2000 SQL server Please help! Confused and frustrated If you're using the Database Exp ...Show All

  • Visual C++ C++/CLI confusion about % vs. ^

    Just a little confusion I am hoping someone can help clear up... I have a method passing in a handle to a Point structure to which I make changes to X and Y values. On return to the caller I find that the Point values are no different. The declareation is Point ^pPt Now if I instead use Point% pPt for passing a reference then any change to pPt.X or pPt.Y works. I thought I could treat Point ^pPt similar to a pointer where changes to pPt->X, pPt->Y would be seen by the calling code Thanx My last question remains ... In C++ a most efficient manner of passing a class instance was via a pointer to that cla ...Show All

  • Visual Basic Error: ResolveComReference task failed, References could not be loaded

    Hi, I recently upgraded my program from VB 6 to VB 2005 Beta 2. After the upgrade completed There was 1 Error and a bunch of warnings. The error was basically this: >Error 75 The "ResolveComReference" task failed unexpectedly. >System.ArgumentException: Invalid Primitive Type: ADODB.ExecuteOptionEnum. >Consider using CodeObjectCreateExpression. I also get a bunch of warnings like these two: >Warning 2 The element 'PropertyGroup' in namespace >'http://schemas.microsoft.com/developer/msbuild/2003' has invalid child element >'CustomBeforeMicrosoftCommonTargets' in namespace >'http://schemas.microsoft. ...Show All

  • Visual C# Enum question C# and VB

    Why this code in C# not work but in VB work Code C#: public enum eFilteringCode : ulong { None = 0, Gen = 1, BdF = 2 } static void Main( string [] args { int BitMask = 400; ulong uRes = BitMask & eFilteringCode. Gen; } Code VB: Public Enum eFilteringCode As ULong None = 0 Gen = 1 BdF = 2 End Enum Sub Main() Dim BitMask As ULong Dim uRes As ULong BitMask = 400 uRes = BitMask And eFilteringCode.Gen End Sub If i write in C#: ulong uRes = BitMask & (ulong) eFilteringCode. Gen; it work but i dont'want make a cast, buy ...Show All

  • Visual Studio Team System TFS Warehouse : Cannot insert duplicate key row in object 'dbo.Work Item History'

    Hi, The following error appears in the Event log. (Single instance installation) Any Idea Thanks Arno An unexpected condition has occurred in a Team Foundation component. The information contained here should be made available to your site administrative staff. Technical Information (for the administrative staff): Date (UTC): 12/29/2005 4:52:37 PM Machine: FOUNDATION Application Domain: /LM/W3SVC/3/Root/Warehouse-2-127803451113551466 Assembly: Microsoft.TeamFoundation.Warehouse, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a; v2.0.50727 Process Details:   Process Name: w3wp   Process Id: 2212   Thr ...Show All

  • SQL Server Report Server (MSSQLSERVER) cannot connect to the report server database.

    I was viewing some reports, and it suddenly showed me that error, from Reporting Services Configruation I restarted the service but nothin, that s the error show on event log. What else can I Do I also see this on the event log. La configuracion de permisos que depende de la aplicacion no concede permiso de activacion local para la aplicacion de servidor COM con CLSID {BA126AD1-2166-11D1-B1D0-00805FC1270E} al SID (S-1-5-20) de NT AUTHORITY\Servicio de red del usuario. Este permiso de seguridad se puede modificar mediante la herramienta administrativa Servicios de componentes. Para obtener mas informacion, vea el ...Show All

  • Visual Studio Express Editions Convert decimal to Binary (22.34) to binary

    Hi, I need convert this for example this value 22.34 to binary. I know like do conversion to Integer data but with integers an factions, I don't know Regads Hi Erick, The conversion is similar that in the integer numbers. Check this link to get the rules for this topic. http://en.wikipedia.org/wiki/Binary_numeral_system#Decimal ...Show All

  • Visual C# Is this a bug or by design? Settings declared internal when autogenerated???

    In relation to this question I had concerning how to access settings that are declared in another project: http://forums.microsoft.com/msdn/ShowPost.aspx PostID=116815#116815, I have some concerns with the way VS2005 beta 2 sets up the Settings file. When you create a Settings config file, it creates a Settings class that is marked internal to the Properties file. For example, the generated code from one I just created looks like: namespace ExportImportManager.Properties {        [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]     internal sealed partial class Settings ...Show All

  • Visual FoxPro Spacing columns in a grid.

    Is there a way to set up grids so there is a slight margin between the columns (I'd like a little space between the text of the control and the left grid line) I can't use the margin property though because its not just for the left side of the control but all around. Thx, Aleniko Aleniko, You can set the Text1.Margin = 4 and the Column.Sparse = .F. this will only add space to the left and right of the field, not the top and bottom. If you really can't have the space on the right, then you'll have to go through the hassle of putting a container into the column and inside the container put t ...Show All

  • SQL Server Connection string for SqlCeConnection

    Which format is assumed for connection string for SqlCeConnection In help topics there are only examples like this:  ... Data Source = 'SalesData.sdf'; ... But this example is intended for SQL Server 2005 Mobile database located on desktop computer... I need to custom data load from desktop to device and vice versa, so I did this: string SqlMobileConnString = "Persist Security Info = False; Data Source = Mobile Device\CF Card\mBase.sdf ; File Mode = 'shared read';" ; SqlCeConnection SqlMobileConn; SqlMobileConn = new SqlCeConnection (SqlMobileConnString); SqlMobileConn.Open(); // Exception!!! Invalid path... I tried to set p ...Show All

  • Visual Basic How do I format a value from the DateTimePicker for Update to SQL2000 using VS2005 VB.Net?

    I get the following error message: "The conversion of a char data type to a datetime data type resulted in an out-of-range datetime value." I found that Format works (my system date format is dd/MM/yyyy): Format( ReturnDate.Value, "yyyy/MM/dd hh:mm:ss" ) Using this in the SQL Update statement works for me. Thanks for the help guys. ...Show All

  • Windows Forms a bug on ListBox?

    Hello, I have a DELL computer with a newly installed Windows XP with SP2 and all updates from WindowsUpdate, I have a very simple application: one TextBox , one ListBox and a Button, when I press the Button the text on the TextBox is added as an Item to the ListBox and in fact the Item is added to the ListBox but it doesn't show any text. Then I added another Button and a FileOpen Dialog, if I press the Add button the application behaves just like before but when I press the other button (it just shows the FileOpen dialog) then the text on the ListBox appear and the application starts working as it should be. I have tested this on 2 other di ...Show All

©2008 Software Development Network