rod_r's Q&A profile
Windows Forms compiling 2 projects
hello! i am making 2 vb projects. i compile (build) the first project and everything goes right. it even created folder on program file's shortcut. now when i compile (build) my 2nd project, it also uses the same program file folder name . where can i change this thanks sir, i tried your suggestion, but on my start>all programs, my second program to compile still uses the same shortcut folder i need to use two separate shortcut folder on my start>all program. ...Show All
SQL Server ms sql 2005 delete record problem
I'm facing problem when delete a record in the ms sql 2005 . The error message i got is stated below: No rows were deleted A problem occured attempting to delete row 1304. Error: .Net Sql Clint Data Provider Error Message: Possible index corruption detected. Run DBCC CHECKDB. Correct the errors and atempt to delete the row again or press ESC to cancel the changes. just certain record i can not delete and face this problem. i detach the database and attached in the ms sql 2000, and select the same record to delete. there is no problem at all. i wander is it ms sql 2005 bugs can anyone tell me how to fix it .. how to to use the DBCC CHECKDB thanks alot.... P/s : if i posted at the wrong section jus ...Show All
Visual Studio Tools for Office ServerDocument persistance object error
Hi, we are deploying a server side solution based on VSTO. On manyof our client sites, we did not install Office / VSTOR as part of our installation. Instead, only a reference to the Microsoft.VisualStudio.Tools.Applications.Runtime dll is kept in our solution, which uses only the ServerDocument class. On a single client site, we have encountered the " Could not create a persistence object for the specified file." when trying to construct an instance of the ServerDocument class. Is there any other dependancy that we should be aware of Thank you very much, Yoav Sion If the ServerDocument usage is trying to Add or Remove customization from the documents, you need to install VSTOR ...Show All
Visual C# Newline problem with running Cmd.exe in a process
Hi, I'm trying to run a CHDIR command in a cmd.exe process. The command fails to chnage directory because of the newline characters thrown to the end of the string... i.e. chdir d:\\Folder2\r\n\r\n Is there a way to stop the streamwriter from insert \r\n\r\n This doesn't happen in it's VB equivalent. I've tried messing around with the proc.standardinput.newline property but had no luck Here's my code for this ProcessStartInfo psi = new ProcessStartInfo ( "cmd.exe" ); //Redirect both streams so we can write/read them. psi.RedirectStandardInput = true ; psi.RedirectStandardOutput = true ; psi.UseShellExecute = false ; psi.CreateNoWindow = true ; Process proc = new Process (); ...Show All
Visual Basic KeyDown Repeat Delay
Just what it says...when using the KeyDown event it delays just as if a key was held down in a text application. Of course I can change this rate in Windows itself, but I'd like to change it on run-time with my program (then of course have it revert back when the program closes). Is there a simple code which will change the delay/repeat rate to a set value Thanks! Hi, Not that i know of but you could use a timer as a delay and set the number of milliseconds or seconds delay in your code perhaps Example taken from Microsoft files. This example tracks the time of day in one-second increments. It uses a Button , a Label , and a Timer component on a form. The Interval property is set to 1000 (equ ...Show All
SQL Server DB Library will not connect with Shared Memory
I have installed SQL 2005 and have noticed that older applications using DB Library now connect with TCP/IP instead of Shared Memory. Has anyone else seen this problem I have tried everything I know to get a shared memory connection, nothing works. I have created a test program using the SQLTESTC,c sample program - just plain vanilla and it will not connect to the default instance (SQL 2000) using shared memory: // Get server's computer name Servername[0] = '\0'; printf ("\nEnter Name of SQL Server: "); gets (Servername); // Get Username Username[0] = '\0'; printf ("\nEnter Username: "); gets (Username); // Get Password Password[0] = '\0'; printf ("\nEnter Password: ...Show All
Visual Studio Express Editions Console Application & Parameter
Hi I am just learning C# using Microsoft Visual Studio and I am having the following problem: I have a Console application with 2 parameters - In the folder debug I got a “myAplication.exe” if I call from the command line it works. - when I compile it I got a setup.exe and a myApplication.application. But I am not able to call the myApplication.application from the command line the parameters are just ignored. How do i have to configure a Console Application in order to compile it and be able to pass the parameters ...Show All
Windows Live Developer Forums How to load new pushpins depending on my map location
This might be an obvious question so please bare with me. I want to be able to have push pins loaded asynchronously as I move around the map. So if i have 20 pushpins in one state and 20 in another, I obviously only want to see the 20 while i'm in that state, but as I scroll or pan to the next state i only want those other 20 pushpins to be loaded as I move to that location. Can someone point me to an example of this as i figure this would be an obvious scenario, I just haven't been able to find a good example. What a great help. I am using .net 1.1. Is there a workaround for this version of the framework. I am happy to use Atlas for fhis. ...Show All
SQL Server Dynamic Cube partitioing in MSAS2000
Hi, Pl give me a way, by which i can dynamically make the cube's partitions. Actully every month on start i have to create a partition for that month manully. Can it make it automatic by any way Pl help me for this regard i need it urgently. Thank and Regards Abhishek Hi Matt, Thanks for your response, But i am working in MS AS 2000. Pl help me for SQL Server 2000 reference. Regards Abhishek ...Show All
SQL Server delete multiple rows with 2 ids
Hello All, I have a table: idSurrogate int identity id1 int id2 int id1 + id2 is a unique index I need to delete multiple rows from the table given a list of id1 and a list of id2 In other words @id1List = '10,20,30' @id2List = '1,3,5' I need to delete these 3 rows from the table 1) @id1=10 and @id2=1 2) @id1=20 and @id2=3 3) @id1=30 and @id2=5 I am a bit lazy today - can anyone help out with a delete sql stmt Thanks! Adamus Turner wrote: Lazy...big time...I would never respond to this...but Delete from MyTable where ISEVEN(@id1list) = TRUE OR ISEVEN(@idlist2) = FALSE OR Delete from MyTable where @id1 mod 10 = 0 OR @id2 mod 10 <> 0 Write a UDF (User Defin ...Show All
SQL Server ROLLBACK TRANSACTION
Hi everyone, In the following T-SQL code snippet,when I attempt to insert more than one record I encounter an error because of the following trigger but I have some doubts about the performation of ROLLBACK TRANSACTION in here. So there is only one transaction occured in the specified table that contain both trigger and the specified table however I supposed that when we call ROLLBACK TRANSACTION, the transaction is aborted. But the code run the Raiserror statement which is located in after the ROLLBACK TRANSACTION statement. So why do this code( Raiserror) is run Should not it be terminated because of the ROLLBACK TRANSACTION statement ALTER TRIGGER kimlikNo_Degistir ON Bilgi FOR INSERT AS IF(SELECT COUNT(*) FROM Inserted) > 1 BEGIN ...Show All
Visual Studio Express Editions Position Thumbnails
Hi, I'm hoping someone can help me. I got some code that will display a thumbnail image and filename (using a label) of a image file and. What I want to do is for every image file opened using the openfiledialog display a thumbnail (using the thumbnail code) on the form so it would look something like the thumbnails you get in a windows XP window. Example of how I want the thumbnails http://img109.imagevenue.com/img.php image=50925_thumbs_122_442lo.JPG Heres the thumbnail code I got if it helps Dim picture As String = opnFile.FileName Dim ratio As Double Dim bm As New Bitmap(picture) &nb ...Show All
Visual Basic Problem with adding new records in Database while saving changes on exisiting ones works!
Hello, I'm developing an application which handles an Access database and I can't save a new record in any table of it though I can save changes that I do in it! I am using the following code to add a new record: Me .HUMAN_RESOURCESBindingSource.AddNew() and I'm using the following code to save my changes: Me .Validate() Me .HUMAN_RESOURCESBindingSource.EndEdit() Me .HUMAN_RESOURCESTableAdapter.Update( Me .DATADataSet.HUMAN_RESOURCES) which is exactly the same that I use to save my changes when I edit a record. While the code works perfectly on saving my changes to existing records, it doesn't work when I add a new one! I also tried to add a new record with the BindingNavigator but I get the same ...Show All
Visual C# Object class and value data type
Hi All, I cheked the Object.ToString method in MSDN this morning. It says that This method can be overridden in a derived class to return values that are meaningful for that type.For example, the base data types, such as Int32 , implement ToString so that it returns the string form of the value that the object represents... After reading these, I've two questions. Q1)Can Int32 be considered as a class I checked the Int32 definition. It's a struct that implements the following interfaces. public struct Int32 : IComparable, IFormattable, IConvertible, IComparable< int >, IEquatable< int > Q2)How can the ToString() be overridden in the Int32 since it's not derived from Object class (based on the above definition) I kn ...Show All
SQL Server Calculated Measure with MDX query
Hi All, I need an MDX Tuple Expression that calculates and return the value based on two values to a dimensional parameter. select [Measures].[WA Quantity] on rows , {[TIME DIM].[CALENDAR MONTH MMMYY].&[6-Sep] , [TIME DIM].[CALENDAR MONTH MMMYY].&[6-Aug] } on columns from [Demo Cube] will give me two columns on measure "WA Quantity", but my requirement is to get to know the difference between the value of WA Quantity in 6th Sep and 6th Aug. How to do this. Any thoughts/solutions will be really helpful. Regards, kart Hi Kart: I think you can accomplish the difference calculation with a calculated member. The following query works against the Adventure Works sa ...Show All
