Mazzie's Q&A profile
Visual Studio Express Editions A Mute comand ???
hi its a simple lil thing all i need is when a picture or button is clicked an double clicked the volume of the computer is muted Simple as :) i've searched and cant figure this out not using windows media player or anything just the computers Master volume to = 0 :) You're very welcome. It was a tough one, no doubt. To make it everybody else's solution, please don't hesitate to mark it as the answer.... ...Show All
Visual C# Best way to achieve this?
I need to run a loop to check if a file exists then delete it. Once its deleted it can stop looking. However, at the time the loop starts it may not exist, but it will evntually be created. do { delete(); Console.WriteLine("Checking"); } while (check() == false); private static bool check() { if (File.Exists(Environment.GetEnvironmentVariable("SystemRoot") + @"\myfile.dat")) return true; return false; } public static void delete() { if (File.Exists(Environment.GetEnvironmentVariable("SystemRoot") + @"\myfile.dat")) { File.Delete(Environment.GetEnvironmentVariable("SystemRoot") + @"\myfile.dat"); Console.WriteLine("Deleted"); } } here is one way of doing it: while (!Check()) { Consol ...Show All
Windows Forms Storing configuration information in external XML file
What classes can help me with storing configuration information not in cofig file but in external XML file. I need to store dataset and couple of string values for my application. G 1. Becouse for Click-Once deployments settings file is nowhere on a system to be found 2. Becouse those settings are per user and I need application-wide settings instead ...Show All
SQL Server AS400 password request
Hi all, I'm loading a working SSIS package in VB.NET and executing it programmatically. As the 'Persist Security Info' is set, it executes fine, presumably because I executed it previously with valid login info. But, when I update the connection info (programmatically) it prompts me for a password at runtime. The connection string will be provided by the user (DB Admin) and this is running as a Windows service, so what I want to do is, in the case of invalid login info, just receive a rejection, that I can respond to in the code. I'm using the IBMDA400 data provider to connect to an iSeries. Ideally, I need a generic solution that will apply to all connection strings and providers, if possible, but provider specific would be fine for no ...Show All
SQL Server Different T-SQL statements?
Hi, i just want to know if the T-SQL statements in SQL server 2005 are different from SQL Server 2000 If they are different, where can i find the Server 2005 T-SQL Statements Sirisha Kommushetty wrote: Hi, I think you basically need clarity regarding various database statements.These statements are not specific to SQL they are applicable to Oracle and also other Database technologies too.The DDL,DML,DCL statements are an integral part of a DBMS that help a DB developer design the schema,structure it as well as have it functioning in a controlled manner. A select statement is used to retrieve information from database objects. And, since a query is a statement made to inquire informat ...Show All
Smart Device Development Repainting whole screen on application exit
Hi When I exit my application the OS does not refresh the menu bars. Both the start menu bar on the bottom of the screen and the "battery" bar don't refresh. Is there any command I could issue before exiting my application so that all screen components are refreshed on exit I use C++ so no C# code please. many thanks, Martin Malek Hi again Alex I noticed that changing CW_USEDEFAULT in CreateWindow helped. It seems the area created otherwise doesn't include the bars. Changing it to actual device screen size helped. Thanks for your help, Martin Malek ...Show All
SQL Server Report Corruption When Exported to Excel
Hello. Anyone please help me with my problem with regards to exporting reports to excel. My report consists of two tables, first table is just plain data displaying from the database; however, it has drilldowns. My second table consists of graphs. My report generates big size depends on the parameters selected by the user. The design of this report is the requirement of our clients, so i cannot do anything about it. So, here comes the problem when i try to export it to excel. The following error message is encountered: "Microsoft Office Excel File Repair Log Errors were detected in file 'C:\Documents and Settings\Administrator\Local Settings\Temporary Internet Files\Content.IE5\VKP9ZCSW\MyStore Performance (Estate).xls ...Show All
Visual Studio Express Editions VB6 and ms SQL 2005 DATETIME
Morning, Could'nt find a post / site that has addressed this issue and I would be very surprised if I'm the first to find this. I am currently having an issue passing a parameter via a stored procedure in vb6 to SQL 2005 that is requiring a datetime format. VB6 supports these separatly i.e. DATE, TIME were as VB.Net etc. support this as DATETIME. Is there any way I can get the date into the SQL 2005 database, not fused about the time part as this would help being stored as 00:00:00. What I've tried so far is: strDate = Format(strDate, "yyyy-mm-dd 00:00:00") but when passing through it details parameter not supported: .Parameters.Append .CreateParameter("dteDate", adDate, adParamInput, , dteDat ...Show All
Windows Live Developer Forums How to Recognize that MSN Messenger is the client
Is there a way to use either css or USER-AGENT to recognize that the page is being viewed from the MSN Messenger window I would like to just show my regular web pages at the regular URL, but display less content if the client is the MSN Messenger Window. Regards Chris Scott, I know this was a while ago, but have you found any answers to the question yet I've tried checking the userAgent, but that just returns the standard IE6 string: " Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0) " on one of my machines. appCodename , appName and appVersion don't return anything different than standard IE either. Other than trying use one of the API methods and capturing the error (which just feels very ...Show All
Visual Studio 2008 (Pre-release) Where to start with video conferencing
A major feature of the current application I am working on is the ability for my support person to have the ability to video conference with users running the application. Does anyone have any suggestions regarding web/ip cameras, technology i.e DirectShow , Books and how to implement a system like this. Basically I want to be able to control a webcam, turning on and off, zoom ect, selecting a customer and starting a video converence. ...Show All
SQL Server Date formats in SSIS
Hi once again guys, I seem to be struggling with everything in SSIS these days! I have a datetime field and I want to convert it to the following format in my derived column component : yyyy.mm.dd I also have another datetime field but this time I am only interested in the time values and I want to get : HH:MM How do I go about doing this in the SSIS expression builder Please help. You have to surround your conditional statements with parenthesis and then concatenate them with the "+" symbol: (LEN((dt_str,2,1252)DATEPART("mi",btg_opty_start_datetime)) == 1 "0" + (dt_str,2,1252)DATEPART("mi",btg_opty_start_datetime) : (dt_str,2,1252)DATEPART("mi", ...Show All
Windows Live Developer Forums Messenger API and Xbox Live
Hi all, With the Messenger API kit is it possible to get information on alerts, specifically Xbox Live alerts I'd like to create a section on the Xbox site I am working on ( www.myxbox.co.uk ) that shows who is on Live and what game they are playing. Was just wondering if this would be a possibility with using the Messenger API. Or perhaps MS will be launching a Xbox webservice of some sort (I am praying here!!!) :-) Cheers Nick Swan So to recap, there isn't webservice or API that would allow me to enter a gamertag(s) and get whether they are on xbox live or playing a particular game Are there any additional ways of getting to that information short of screen scrapping xbox.com ...Show All
.NET Development Sorry if wrong category. How do I create a custom assembly?
Hi all, I'm not sure if this is the right category. I'm using VB.Net 2.0. I don't know how hard this is, but I'd like to create my own assembly like the System.Windows.Forms.etc. I'm creating a custom control, but I also want to create object types. For example, I'd like to do the following: MyApp.MyCtl MyApp.MyFormats.Add(MyFormat) Does NET just create namespaces within namespaces to achieve their heirarchy, or is there something more Thanks, Dennis Pretty much any Visual Basic project creates an assembly. If you're creating controls and objects, then simply choosing Windows Control Library will be sufficient. An assembly contains types which are organised in namespaces, but many assemblies can contain ...Show All
Visual Studio Express Editions copy forms between versions of Visual Express
Summary: Can we copy forms between versions of Visual Express If someone has a real nice set of forms in Visual Basic Express and I want to use the same basic forms in C#, and I don't want to manually enter all the buttons and boxes and labels and positions, etc, is there a way to import the form into C#. I don't expect to get to be able to use the code, but getting the buttons would be nice. I strongly suspect that the core engines that drive all the Visual Express products are the same, only the syntax and grammar rules differ for the languages. If so, the conversion should be simple. That seems to work. I opened up the for design window in C#, selected all with ctl-A, then pasted into a form design window in Basic and it co ...Show All
Visual Studio 2008 (Pre-release) Can't View Old XBAPs
After upgrading to the June CTP I can no longer view any of the old examples on my blog. The error is listed below. These projects were created in Sparkle but now I want to recompile them from Visual Studio. When I open the projects I can't seem to publish them again. System.InvalidOperationException: Version mismatch. BAML stream has version number '0.80' but parser can read only version '0.94'. Thanks Lee We maintain an internal version numbering scheme and increment it everytime the internal binary format changes. This signifies new capabilities added to the reader and parser. Unfortunately, since this is Beta software we cannot be backward compatible with previous CTP versions. Once we release this version, the next version ...Show All
