KipK's Q&A profile
Visual Studio Express Editions hello again
Hi all could anyone please help with some code for a progress bar for a media player....... ie how do I know track length. etc thank you cheyenne can anyone convert this to read music track ........................................ Public Sub ReadFiles() ProgressBar1.Minimum = AvailableDiskSpace() ' Sets the progress bar's maximum value to a number ' ProgressBar1.Maximum = TotalDiskSpace() ' Dimension a counter variable. Dim i As Integer ' Uses a For...Next loop to iterate through the operations to be ' completed. In this case, five files are to be written to the disk, ' so it will execute the loop 5 times. For i = 1 To 5 ' Insert code to read a file into memory and update file size. ' Inc ...Show All
Visual Studio Express Editions image with grid coordinates?
Hi, Is there any way to define an image with grid coordinates in order to use the mouse over event Ken Hi, I would like to take a picture box and when the mouse is over one area of the image click on that area and do something. Then if the mouse was moved to a different area of the same image click on that area and do something else. Ken ...Show All
Visual C# closing a program completly
The project I'm working on uses multiple forms and if the user goes to any of the other forms, then closes the program, it continues to run in memory. The code I'm using for the exit button is: this.Dispose(); this.Close(); Is there something wrong with this, or is there a better way to do it jkidd01 wrote: The project I'm working on uses multiple forms and if the user goes to any of the other forms, then closes the program, it continues to run in memory. The code I'm using for the exit button is: this.Dispose(); this.Close(); Is there something wrong with this, or is there a better way to do it When you use "this.Close()" than you tell your program to close "this" form onl ...Show All
Visual Studio Team System suggestion for TreeDiff
It would be helpful if when you select a range of files in the treediff UI, it would give you the option to undo changes regardless of how many items you selected didn't have changes. Use Case: 1. Select 5 files. 2. 3 files have pending changes 2 have none 3. Undo option is available and when executed ignores the selected files without pending changes. Considering that when you perform the undo, the undo pending changes dialog appears with the items you had selected in the tree, it gives the user plenty of safe guard to examine the files to be undone. Perhaps instead there could be a way to filter on only items with pending changes so that, if I so chose to undo a whole range of files, I can witho ...Show All
.NET Development Connection Listener
I have a test app that can view and delete IPC connetions, I am new to all this so any help is usefull... Is there a way in C# that I can use this to create a service that listens on the microsoft-ds connections port 445 and 80 this is so I can then prompt the user with this info so they can choose to allow or deny the incomming connection. so far the way i done this (to see if it is possible) is to use the net session commands but these are as mentioned manuall process. thanks in advance for any help test code: private void button1_Click( object sender, EventArgs e) { Process v = new Process (); //v = view v.StartInfo = new ProcessStartInfo ( "net" , "session" ); //for delete ( "net& ...Show All
SQL Server report on two database
hi all i m facing a problem in reporting services. i have a global database, in which i m mainting user inormation like database name, server name and all credentails about user database. i want that when my report is open a user parameter will display, on the basis of that users id report will display data from his database. server name can be different, database name can be different but schema of database will be same for all user. so pls help me The DataSource string of the dataset is dynmaic which means that you are able to use Expressions within the Data Source, using the syntax ="DataSource=" & Parameter!SomeParameter.Value HTH, Jens K. Suessmeyer. --- http://www.sqlserver2005.de --- ...Show All
Windows Forms [c#]unboubd datagridview: howto write into database
Hi all. I've a run-time generated datagridview on a form, not bound to a database. The number of rows is variable (it depends from some events) but the number of columns is prefixed. Now, im looking for a way to store (after user complete input in datagridview) this data on a database. Plz, any suggest really appreciated. Thank you all in advance. Im trying something like this: (on database my table is: Day, In, Out, Total) for(int i = 0; i < datagridview1.Rows.Count; i++) { //code for connection... //connection.Open(); string s = "insert into myTable(Day, In, Out, Total) " + "VALUES('" + datagridview1.Rows .Cells .Value + & ...Show All
Visual Studio 2008 (Pre-release) My WPF application doesn't run on a machine which has .Net3.0 but doesnt have VisualStudio2005 and its extensions for WPF/WCF
Hello, Please let me know what are the minimum requirements for running a WPF application(using XAML) on a machine that doesnt have Visual studio 2005 and orcas Our application end users just have .Net3.0 installed on their machines.When this app.exe is run on a machine with just the .net3.0 framework, we get a msg like : "app.exe has encountered a problem and needs to close.WE are sorry for the inconvenience.If you were in the middle of something,the information you were working on might be lost." This otherwise works fine.Can you please suggest me what I am missing here Do I need to create a deployment package everytime so that all relevant dlls(w.r.t WPF) are also intalled our end user's machine.Am I missing something ...Show All
.NET Development .NET 1.1 vs .NET 2.0 behaviour with Image fields
In not .NET 1.1 and 2.0 the System.Type mapping for a SqlDbType of Image is byte[]. If you use this type to create a SqlParameter (with a value of DBNull.Value) and then use this in a SQL statement of the form "Update table Set ImageField = @parm where ......" Then in .NET 1.1 it works, but in 2.0 you get an Exception "nvarchar is incompatible with image" How can you determine the correct System.Type to use for Image fields, and why is the behaviour now different The application code is generic and not tied to specific database designs. Thanks Tony sorry if I am being confusing/misunderstanding, I apologise. From the code snippet, you are inserting a b ...Show All
Smart Device Development Deploying CABs to a device via ActiveSync using an MSI with installer class
I'm trying to deploy CAB files from my application to a device using a MSI project using ActiveSync. This method requires the CAB and ini files to be in a sub directory of ActiveSync. So I'm using an installer class to copy the CAB and ini files from the default c:\programfiles etc to the ActiveSync dir. The default dir is hard coded. This method is described in the msdn "Deploying >NET Compact Framework 2.0 Applications with cab and msi file" After a bit of tweaking this method works ok as long as the user does not change the installation folder from the default to something else. If this happens the installer class fails to find the cab and ini files and consequently the deployment fails. Is there any way of ...Show All
Visual Studio Team System Print Spooler won't start
Can anyone help solve this problem, all printers have dissappeared from printers and faxesm any attempt to add printer says print spooler not running. I have followed Microsoft suggestions for restarting and get errors 1068 and 1053, nothing seems to work. I am trying to avoid a reformat if at all possible. The problem occured shortly after installing a new printer Lexmark 6200, though not immediately. I was able to use the new printer for 2 days, I then took my laptop to work and used it with other printers at work. At home again used the Lexmark and then next day at work no printers. A problem with the lexmark looping in scanner mode was stopped by removing the usb cord which iam concerned may have caused some sort of corruptio ...Show All
SQL Server Document Map not appearing in Web Application
I have designed a report and everything is fine except when I view it in my vb.net application. When I view the report through the normal Reporting Services portal my document map appears fine without issue. However when I run it through my application the document map does not appear and the button is not available. Here is the setup I have a sql table that stores * ReportID * Title * Keywords * Serverpath I then have an aspx page that simply has the webform report viewer with the following code. So I have a data grid populated from the reportinfo table with a Link on each title that passes the ServerPath to the reportviewer page. The URL that is genereated after I recently added the commands to the end o ...Show All
SQL Server Automatic failover... help
Hi there, We've recently set up a Principle, Mirror and Witness configuration with the Mirror and Witness in a separate building to the Principle. All three are part of the same domain (DMZ) and are different servers, the buildings are connected via a fiber optic cable. All servers and SQL Server instances are logged in with the same domain admin account DMZ\esAdmin. Mirroring is all set-up and the databases are synchronized. Every once in a while some (not all, normally 6 out of 15) databases will switch roles and become active on the mirror. The SQL Server mirroring monitor job then reports: Date 25/01/2007 12:37:01 Log Job History (Database Mirroring Monitor Job) Step ID 1 Server& ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Using the Cue object generates exception with multiple .Play calls
I had entered this as an issue, but it has now been closed and marked "As Designed". I'm pretty confused by this. https://connect.microsoft.com/feedback/ViewFeedback.aspx FeedbackID=198351&SiteID=226 [Note: You need to be signed into Connect first, before clicking on links to Connect will work.] So basically, we are supposed to always use the dictionary object to look up a sound that needs played over and over again, instead of creating a Cue object to reference and replay that sound That just doesn't sound right to me. Has anyone else noticed this issue Is there just something that I'm missing I'd really like to understand why this is "As Designed" I guess. I have some simple sample code in the issue if anyone wa ...Show All
Gadgets Harry Potter Countdown
Could someone please create a gadget to countdonw the time untill thre release if Harry Potter and the Deathly Hollows You can do it yourself if you like http://markitup.com/Posts/Post.aspx postId=6a78b631-5933-4a1a-bfaa-8702943a2c55 ...Show All
