NoEgo's Q&A profile
Visual Studio Express Editions run music in VB form
Hi all i want to run wav audio file in my form how can i do this which refrence should i use and what the code should i write thanks alot you can use System.Media namespace to access the SoundPlayer class and play it via that: Dim thePlayer as new System.Media.SoundPlayer(" fileName.wav ") thePlayer.Play() http://msdn2.microsoft.com/en-us/library/system.media.soundplayer.aspx you can also use DirectX to play audio files (and plays for longer lengths than SoundPlayer class, as it will only play files up to 3-5 seconds I believe) or embed WMP in your application and play audio files via the COM Component ...Show All
Game Technologies: DirectX, XNA, XACT, etc. I cannot compile any XNA tutorials
I have Microsoft Visual C# express and XNA Game Studio Express, but when I create a new project and follow the tutorial (any tutorial) and copy and paste the code into a new project, i cannot compile because there are errors when i press F5. Example in tutorial 1: displaying a 3d model on the screen i follow all the directions and when i copy and paste the code at the end and hit f5 i get the first error in this line: myModel = content.Load< Model >( "Content\\Models\\p1_wedge" ); and i cannot continue. I have tried several tutorials in the past weeks and none run. I need help for doing this for school. Thanks Something I noticed different from the tutorial picture is when it sa ...Show All
Visual Basic Dynamic drawings in VB.Net
Hi, Is there any VB.Net equivalent to the vbXorPen and vbNotXorPen options of the DrawMode property in VB6 These options were very usefull to create dynamic drawings. Thanks by advance, Pierre I think the only option is to use GDI Calls if you wish to use those functions (wrappered by the graphics object GetHdc and ReleaseHdc methods). There doesn't seem tto be the ability to do what you want directly. However, the new drawing techniques available don't really require the old VB6 methods (drawing 'rubber bands' and such). ...Show All
Visual C# from dataTable to database
hi! is it possible to do a select command on a dataTable after selecting can i insert it into a database if it is, how could this be done yes the dataTable is manually created. how could i do this -- "so for each datarow there is in the datatable, and for each datacolumn in the current row, get the data, then after this row has been complete, insert into the database." thanks! ...Show All
Visual Basic check windows account type
I am building a custom installation wizzard in vb .net and want to check for what type of account they are running the app as, to make sure they are using an administrator account. well depends. Remember, you can only install .NET framework on the supported OS's it has mentioned in the documentation which means that your app will run on it. According to the docs, it will only support NT Based OS's regarding this class/command. Windows 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition Generally most people are running XP as standard or Windows 2000 SP4. However its always good practice to cat ...Show All
SQL Server Unable to install SQl Server 2005 SP2 - Unexpected error
I am trying to install SQl Server 2005 SP2 but it was throwing an unexpected error when trying to install "setup support files". O/s: Windows Server 2003 SP1 Product: SQL Server 2005 Standard Edition Log file shows: +++++++++++++++++++ === Verbose logging started: 2/20/2007 16:05:42 Build type: SHIP UNICODE 3.01.4000.2435 Calling process: F:\SQL2005sp2\hotfix.exe === MSI (c) (74:68) [16:05:42:635]: Resetting cached policy values MSI (c) (74:68) [16:05:42:635]: Machine policy value 'Debug' is 0 MSI (c) (74:68) [16:05:42:635]: ******* RunEngine: ******* Product: C:\Program Files\Microsoft SQL Server\90\Setup Bootstrap\Cache\SQLSupport\x86\1033\SqlSupport.msi ******* Action: ******* CommandLine: ********** MSI ...Show All
Visual C# A questions with appsetting
Is there a way to use my own classes as an application setting I could turn it into a dll but I would prefer to not do it like that... any suggestions or if theres no simple solution is there a way to have an array of ints I went through the list of types but I couldn't find any arrays... JT I have a class that manages a lot of information which is dynamic and I don't want to be updating these in the application settings all the time so if I manage them all in one class it makes life easier, a couple less lines per item... it also makes it easier to pass it along to my forms so I want to put the before mentioned class in the config file but I've only figured out how to do it with a dll... so I was looking ...Show All
Visual C++ Trouble with VC++ 6.0 Excel Automation
I am pretty new to the MFC way of automating Excel application. So i referred to the http://support.microsoft.com/kb/178749/EN-US/ and followed the exact procedure to understand things. It happens that when i finish the code and compile i end up with the following compilation error for the line app.SetVisible(TRUE) the error is "error C2664: 'SetVisible' : cannot convert parameter 1 from 'const int' to 'const struct tagVARIANT &' Reason: cannot convert from 'const int' to 'const struct tagVARIANT' No constructor could take the source type, or constructor overload resolution was ambiguous Error executing cl.exe." Can anyone help me with this. Thanks! Dupmal Try ...Show All
.NET Development timeout expired failed to start instance
I have a C# windows app created with vs2005 on windows xp pro with sql 2005 server express installed ( it uses a database ) I create a deployment project then install the app on the machine Every so often - quite rarely but enough to worry about - usually just after a restart - when I start the application I get a timeout expired - something about failing to connect to an instance - I am assuming it is because the database engine has to start up and then it has to creat an instance and all this just exceeds so time limit - I tried putting "Connection Timeout=300" in the connection string in the app.config file - it did change the sqlcmd.connection.connectiontimeout to 300 but it did not get rid of this intermitant probl ...Show All
Visual Studio disabling the visual studio hosting process..
Is there any solution that disable the Visual Studio hosting process without clear "Enable the visual studio hosting process" checkbox in the project properties panel I'm having this same Problem after installing OneCare. I had a lot of difficulty install OneSave and now I can't start the Terminal Services. When I try, I get the Services error Dialog " Could not start Terminal Services service on Local Computer. Error 1083: The program that this service is configured to run in does not implement the service." All of the functionality of OneCare works OK. No other problems with windows or applications. Live update functioning properly. Tryed reinstalling VS 2005 ...Show All
Visual Basic Property dependent databinding - beginner ?
Hi, I am an absolute beginner using VB Express, attempting to use the information I have gleaned from videos. I want to databind a series of combo boxes (7), each retrieving info from a different table, but the info gathered for each combo box relies on the option choice of the previous combo box. Primitive Eg... The first box might offer choices of food groups (meat, dairy, fruit, pasta), the second offer options for each of these (meat - veal, lamb; dairy - milk, yogurt; fruit - apple, orange), the third options depending on this choice (meat/veal - fried,stewed etc). I hope I have explained it well enough. The data displayed in each combo box would depend on the choice of the previous. I can databind the data for each combo box from its ...Show All
Visual Studio Confusion Regarding Version of Crystal Reports Included in VS 2005
I have just installed VS 2005 a few days ago, and haven't have a chance to do much with it yet. I've been looking at a number of these forums, for tips before I even get started with my first project. How can I determine what version of Crystal Reports has been bundled with VS 2005 This is what the About window shows: Microsoft Visual Studio 2005 Version 8.0.50727.42 (RTM.050727-4200) Microsoft .NET Framework Version 2.0.50727 Installed Edition: Professional Microsoft Visual Basic 2005 77626-009-0089182-41868 Microsoft Visual Basic 2005 Microsoft Visual C# 2005 77626-009-0089182-41868 Microsoft Visual C# 2005 Microsoft Visual C++ 2005 77626-009-0089182-41868 Microsoft Visual C++ 2005 Microsoft Visual J# 2005 776 ...Show All
SQL Server MSSQL Express 2005 performance so inconsistent!
Hi, just wondering if anyone noticed the MSSQL Express 2005 is so inconsistent with its performance. I was testing out a query with 2 joins, with the main table having about 13,600,000 records. With the same criteria value, sometimes it finished executing in 3 secs. sometimes almost a 1 min. Could it be just the volume of the data This is really driving me crazy! Any advise will be greatly appreciated. Rick.. Hi, I took home the database and loaded it up in my machine this weekend. I think the inconsistency I as experiencing at work has something to do with my machine setup. In the office, my PC has WinXP 64 Pro. At home I have just the plain WinXP Pro. Running the same scripts/SP at home were m ...Show All
Windows Forms TableAdapter Problem.
I am using VB.Net 2005, my windows application bind to two data tables which is member(memberId, name, phone, joinDate) and payment(paymentId, memberId, year). I need to implement the following SQL into tableadapter: SELECT memberId, joinDate, phone, name, FROM member WHERE (joinDate > ) AND (NOT EXISTS (SELECT 1 AS Expr1 FROM payment WHERE (humanId = member.memberId) AND ([year] LIKE ))) But when I finish created the tableadapter, it only accept one parameter, FillByFee,GetDataByFee(joinDate) What’s wrong What should I do How to create an tableAdapter that can accept two p ...Show All
Visual C# Create and Display an Array
I know this should be very simple but I just don't know the correct syntax. How can I create an array of strings, say "ronny", bobby", "ricky","mike" and then access them in the XAML to...say populate a listBox Thanks, Dvl So sorry! But wait, are we not in the C# forums MSDN Forums Visual C# Visual C# General Re: Create and Display an Array I am confused. Again, sorry if I posted in the wrong place. Thanks for the help, BTW! ...Show All
