Roco72's Q&A profile
Windows Forms Formatting behavior - One machine different than another
I have a grid which shows sales order data. Using: Btrieve version 7.90 VS 2003 and 2003 Framework 1.0 and 1.1 The problem: the number 0 shows as 2.37776121520959 -154 in one column and 4.4131277577011 in another column of a datagrid on W2k but&n ...Show All
Visual C# How can I open a child window and block the parent window only?
So that, the other forms/windows in the application can still work. What about disabling the parent form while the child form is active When the child form is created, set its owner to this: ChildForm child = new ChildForm(); child.Owner = this; child.Show(); In ChildForm_Load: private void ChildForm_Load(object sender, EventArgs e) { this.Owner.Enabled = false; } private void ChildForm_Closed(object sender, EventArgs e) { thi ...Show All
SQL Server SQL Server 2005 Stored Procedure inserting duplicate keys into table that is uniquely indexed
I'm having a problem in SQL Server 2005 Developer Edition where I am calling a stored procedure to insert a row into a table. In the example below there is a table called "Machine" with three columns, MachineID, MachineName, MachineIPAddress defined. MachineID is the table Identity and pk. MachineName is setup as a unique index and can not be null. MachineIPAddress can be null - it can also be ignored for the sake of this example. W ...Show All
SQL Server Variables in the four naming conventions
Hi I am running SQL Server 2000 and have two different databases with different names on two different machines. The servers (machines) are linked and I want to use a single set of stored procedures on both databases. I want to know if and how I can use variables in the four naming conventions in a stored procedure. This way I do not have to write an if statement and rewrite the code for each database. Example: Select * from SE ...Show All
Visual Studio aspnet_compiler exiting with error code
Hi, I am converting a 1.1 project to 2.0, and have gotten to the point of needing to deploy. Understanding 2.0's asp.net compilation model, I don't want to deploy our .cs files to the production server, so we have to pre-compile. I have been trying the built in vs2005 procedures, the command line aspnet_compiler, and also the Web Deployment Plugin. All of them seem to run perfectly, however, at the end of the task, NOTHING e ...Show All
Visual Studio Tools for Office Where is my cursor?
I have developed and outlook add-in that contains a custom task pane hosting a windows form user control inside it. The user control had a textbox and a button. The button has an event handler attached to it. When the end user enter some text in the textbox while compposing a new email and click the button, I want to insert the text from textbox into the body section of the email. The problem is that how can I identify where my cursor is current ...Show All
Visual Basic VB vs C#. How capable is VB compared to C#?
I need some clarification please. I am learning VB.NET right now and have a co-worker who has a very strong technical background and feels very strongly that learning VB is a "waste of time in all respects" compared to C#. I don't understand this point of view. Since VB is a .NET language does it not posses the same capabilities as C# Am I on the wrong track I really enjoy the VB.NET syntax and am picking it up quickly. ...Show All
Visual Basic Calculate size of string in bytes
All, I am reading a text file line by line and want to display its progress with a progress bar... cunning eh ... Therefore I need to determine the following: (1) The size of the file (2) The size of each string taken from the line of the text file Can anyone help Regards, Determining the size of a file is easy. If you for example have opened a FileStream, check its Length property. The second part is mor ...Show All
.NET Development Blocked SMTP send in Net.Mail
I've found this problem mentioned in another thread but not addressed as it was off the main problem. My application appears to send mail OK but none of it leaves the machine until the app is exited. Is some kind of flush required I'm using VB 2005 express. Downloaded yesterday. Dim s mtpSend As New SmtpClient Dim mmNew As New MailMessage( New MailAddress( "y@X.net" ), New MailAddress( "j@X.net" )) mmNew.IsBodyHtml = ...Show All
Visual C# Error during installing after publishing the app
After publishing the app, i have errors during install this app. It look like some problem with manifest file Could you provide some details about the ClickOnce app that you've developed What problems do you suspect with the manifest What error message are you receiving when you try to install ...Show All
Visual Studio Team System File in use .mpp is locked for editing
Hi, We're using TFS RTM We're experiencing a really annoying problem which is, when someone closes a nd saves a MS Project document to the Team Foundation Portal no one else can open it for editing, we get a message File in use *.mpp is locked for editing There are a couple of other posts which refer to this as well http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=8011&SiteID=1 http://forums.microsoft.com/MSDN ...Show All
Software Development for Windows Vista custom activities property values
If I have a custom activity with a public property that is set during the execution of the activity, how can I access the value of this property after the activity has completed Anyone You can bind the property to a workflow level variable using ActivityBind. Then you would have access to the value from anywhere in the workflow. ...Show All
Visual C# Remote Shutdown Problem (i'm C# Noob :-P)
Hello, Since a month or two i'm learning and programming with C#. (i'm using Visual Studio 2005 version 8.0 beta2 with .NET framework 2.0 and stuff, the newest, got it from my dad be he only uses C++ and C and "says" he thinks of going over to C#) I'm living on my own a sometimes my brother comes over. (we've created a network between our pc's) and sometimes he stays over but forgets to shutdown his pc, or has the feeling he'll be back soon to ...Show All
SQL Server Fuzzy Grouping: Any success with > 3 million records?
I have tried to process > 3 million Fuzzy grouping records on two different servers with no success. 3 mill works but anything above 4 mill doesn't. Some background: We are trying to de-dup our customer table on: name (.5 min), address1 (.5 min), city (.5 min), state (exact). .8 overall record min score. Output includes additional fields: customerid, sourceid, address2, country, phonenumber Without SP1 installed I couldn't even ge ...Show All
Visual Studio Express Editions Not necessarily "Express" Related, but what about WinMX
With the cnahge from VB 6 to .NET 1, now .NET2, are we going to have to learn all over again to program under WinFX I'm just now getting my bearings in VB2005 (from VB5 Pro), will this be obsolete in a few months as well Am I misunderstanding the concept First of all, it's not VB.NET anymore it's just VB8 or VB2005. I think Microsoft is laying down a very solid foundation so that obsolescen ...Show All
