Software Development Network Logo
  • Windows Forms
  • Windows Vista
  • Visual Basic
  • .NET Development
  • Microsoft ISV
  • Visual C#
  • Smart Devicet
  • Game Technologies
  • VS Team System
  • Visual FoxPro
  • Audio and Video
  • SQL Server
  • IE Development
  • Visual Studio
  • SharePoint Products

Software Development Network >> Mario M.'s Q&A profile

Mario M.

Member List

JohnWP
Matthew McNally
KAAU
WilliamStacey
MadVax
jinfeng_Wang
Jamie Thomson
biffpixel
ishotjesus
adorer
Shirvo
Bisjom
pc_bond
Mike9000
Anthony Tarlano
Burt Harris
ssfftt
Jebat
Barry Mull
Scott_P
Only Title

Mario M.'s Q&A profile

  • Visual Studio 2008 (Pre-release) Model generation wizard working backwards or is the programmer backwards? :)

    I have a table (again, using the video game stuff as my sample to play with): ID Title Description Rating (int, refers to the ID column in GameRatings) Type (int, refers to the ID column in GameTypes) Rating and Type both have foreign keys that point to the source tables GameRatings and GameTypes respectively. I have Associations in my Entity model that have produced classes called FK_VideoGames_TitleRatings and FK_VideoGames_VideoGameTypes. That all appears fine. However, I don't appear to have any navigation ability to allow me to do things like: game.Type.Name or game.Rating.Name Is there something I missed in the DB to allow for this automatic member generation, or, if the wizard doesn't do it, what do I have to do to my pre-generated ...Show All

  • Visual Studio 2008 (Pre-release) SSL in self-hosted service just doesn't want to work

    First, I'm fully aware of needing to use httpcfg to configure SSL for a self-hosted service. I've done the following steps successfully (several times): makecert -sr localmachine -ss my -a sha1 -n CN=localhost -sky exchange certmgr -add -r LocalMachine -s My -c -n localhost -r CurrentUser -s TrustedPeople httpcfg set ssl -i 0.0.0.0:13177 -h <my sha1 hash here> The service starts up just fine, but I still get the following exception when the client (running on the same machine) tries to make the first call to the service. An unhandled exception of type 'System.ServiceModel.CommunicationException' occurred in mscorlib.dll Additional information: An error occurred while making the HTTP request to ...Show All

  • Windows Forms After form resizing problems with anchored controls

    On form were put some controls which were anchored to form. After resizing the form (not first resizing, happens not always, after some time) controls that were anchored to all 4 borders shrink in size to (Width=0; Height=0;) while other loose their position (coordinates became negative). Everything is done in designer view and this happens only in release. Any suggestions AlexMil wrote: On form were put some controls which were anchored to form. After resizing the form (not first resizing, happens not always, after some time) controls that were anchored to all 4 borders shrink in size to (Width=0; Height=0;) while other loose their position (coordinates became negative). Everything is done in d ...Show All

  • Visual Studio 2008 (Pre-release) WCF and Reporting Services

    Hi! I am using the Reporting Services web-service and WCF. Because I am new to WCF I would like to ask you two questions: Question 1: Is it possible to send username/password when you generate a proxy class with svcutil I have tried to embed it into the URL but it does not work ( http://username:password@host ). As a workaround I enable anonymous access in IIS and then svcutil works fine. Question 2: I can now generate reports with the ReportingServicesClient and everything is great except for the anonymous part. I am looking for an example that shows how to set up authentication. I want to try both basic authentication and integrated windows authentication. Th ...Show All

  • Visual Studio Team System How to deploy one project to multiple servers...

    I am using the database professional to create a generic DB that I have a copy of on two different servers with the exact same database code (procedures, functions, tables, etc.) and I was wondering how I can use one project to make all my changes and then deploy those changes to each of the two servers using the deploy functionality rather then do a schema comparison for each of the different servers and then running a seperate script on each server. The method for deploying through the command line that I mentioned above will be fully supported in CTP6 (due out in a few weeks). For CTP5, you should be able to deploy via the MSBuild task, but the task is not as flexible. If you post the errors y ...Show All

  • Visual Studio TFS SCC - Purge / Archive Deleted

    Hello, Is it possible to purge / archive / destroy deleted items from Team Foundation Server Source Code Control If they are never deleted, what is a good long term strategy for database size / nightly database backups Thanks in advance, Paul. No, we do not have a destroy feature in TFS v1. Unless you're storing huge, uncompressable binary files, we've found that disk performance is the expensive part of the maintainance story, not disk capacity. TFS servers with lots (hundreds or thousands) of active users often need a dozen spindles to keep them fed, especially the TempDB. Brian Harry's blog has touched on these factors: http://blogs.msdn.com/bharry Rest assured Destroy is very high on the l ...Show All

  • .NET Development Compile and Build Project from command line or programatically

    I want to compile one c# project (.dll library) from another c# program. Now I want to run another program (from the same program that compiled the library) that makes use of the .dll library that was compiled. Will I have to recompile that program using the new .dll as well or can I just set a reference to the new .dll in some way Yes, it is possible to dynamically load a dll into a host application. Typically this is done by defining an interface or abstract base class (ABC) in the host, then implementing it in the dynamic dll. The host uses reflection to find and load the class(es). See the System.Reflection.Assembly methods Load, LoadFrom and GetTypes. The host activates the types and calls into them th ...Show All

  • .NET Development Sending mail

    Can Anyone help m I want to send mail to any yahoo ID of Gmail iDfrom my program I think i have to use Smtp or something like tat but dont know how to do anyone here has any idea .. Use SmtpClient. Here's very simple example SmtpClient client = new SmtpClient(" www.foo.com "); MailAddress from = new MailAddress(" dog@foo. com", "Friendly Dog"); MailAddress to = new MailAddress(" cat@google.com "); MailMessage message = new MailMessage(from, to); message.Body = "This is some HTML text <a href=\" www.foo.com\">FOO</a >"; message.Subject = "You are invited"; message.IsBodyHtml = true; client.Send(messa ...Show All

  • SQL Server CLR integration problem

    Hello, I wrote an assembly with refernce to another assembly (the referenced assmbly is framework 1.1 assembly, i don't have its source code). I tried to load the assembly to SQL Server (reate Assembly...) and got the following error: reate failed for SqlAssembly 'OptimalTest.Statistics'. (Microsoft.SqlServer.Smo) For help, click: http://go.microsoft.com/fwlink ProdName=Microsoft+SQL+Server&ProdVer=9.00.1399.00&EvtSrc=Microsoft.SqlServer.Management.Smo.ExceptionTemplates.FailedOperationExceptionText&EvtID=Create+SqlAssembly&LinkId=20476 ------------------------------ ADDITIONAL INFORMATION: An exception occurred while executing a Transact-SQL statement or batch. (Microsoft.SqlServer.ConnectionInfo) ----------- ...Show All

  • Smart Device Development How to convert simple desktop application to smart device application?

    How to convert simple desktop application to smart device application Can it be done Of course it can be done - I've done it. However I doubt whether anyone could formulate a methodology. The main problem is redesigning the forms. Smart devices have much smaller screens. Smartphones have no buttons. I had to divide large forms into several smaller ones. If your app is complex, you'll probably have to re-think the whole GUI. I had much less of a problem with non-displaying classes. Sometimes I had used a method that wasn't supported by Windows CE, but there was always an alternative method or a simple work around. Just throw everything at the CE compiler and work through the error list in the time-honored m ...Show All

  • Windows Forms Stop Cut/Copy in Text Box

    In my application I have a text box to store & display password data. Now i want to stop cut or copy that data from that textbox. How can I stop cut/copy of data from that textbox You can use Label instead of TextBox and make it look like same as TextBox. To do this set AutoSize = false, BackColor = Window and TextAlign = MiddleCenter! You can neither copy nor cut! I hope this will solve your issue! Best Regards, ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. XBox 360 Wireless Controller on a PC

    I've downloaded the drivers for the XBox 360 controller from the MS hardware website, yet when I connect my wireless controller via the USB cable, the "Found New Hardware" wizard fails to recognize it (and continues to prompt for the drivers). What am I missing here Thanks, -dn I got mine today :) (in stock at Future Shop) Installed the Software (check) (XPPro 32bit) plugged in wireless gaming receiver (check) (front USB - since the back is full lol), and it works fine. You go thru the same connection procedure as for linking the wireless controller with the 360 There is even a little app the appears when you hit the big(X) on the controller, that shows battery indicator (you cant m ...Show All

  • Visual Studio Express Editions combo box

    Hi, I'm trying to use the SELECT DISTINCT Query in combo box in a form i've created by draging the table in data grid view......where do i put this query at..........is it somewhere in the edit column area Thanks I'm trying to get the values in my combo box to show only once instead of showing the same value 10 or 20 times. I know that i need to use the SELECT DISTINCT query, i've used this query before in Access 2003, i inserted the query into the row source. I have an Access database linked to my project. I have dragged a Table into my form using the dataview and now want to use a combo box with one of the fields using the SELECT DISTINCT query to show values in that field only once. How and wh ...Show All

  • SQL Server Installation fails on Vista RTM

    Hi all! I couldn't manage to install SQL Server 2005 Express or Standart Edition on Windows Vista. The installation fails with the error message I pasted below: TITLE: Microsoft SQL Server 2005 Setup ------------------------------ SQL Server Setup failed to execute a command for server configuration. The error was [Microsoft][SQL Native Client][SQL Server]Windows NT user or group 'FUSION\SQLServer2005MSSQLUser$FUSION$MSSQLSERVER' not found. Check the name again.. Refer to the server error logs and Setup logs for detailed error information. For help, click: http://go.microsoft.com/fwlink LinkID=20476&ProdName=Microsoft+SQL+Server&ProdVer=9.00.2047.00&EvtSrc=setup.rll&EvtID=29521&EvtType=lib%5codbc_statement.h ...Show All

  • Visual C++ Working with bytes and bits

    I'm writing a program (to be more exactly it's a DLL) that comunicates with some machines through the serial port, so I need to read 17 bytes from the buffer, get the first byte and split it into 7 bits (the serial port configuration specifies that will be 7 the number of data bits). - How can I get this value from the BYTE array and split it into an array of bits - I'm getting the value from a position of the BYTE array a writing to a file to see what the program(VB6) is receiving. The first time it receives only one byte, the other times, it receives the whole BYTE array. Why I'm using fputs like this: char cSWA = buf[0]; fputs(&cSWA, mFilePointer); - And, how can I convert a BYTE array to a char type - And the ...Show All

©2008 Software Development Network