Miahoo's Q&A profile
Visual Studio Express Editions How to display and write text file in TextBox?
I have a sample program that will going to write a text file (in notepad format) and then i want to display it back in a textbox. How will i do that in Visual Basic Express Helping me please:( Or you can use the helper classes in VB 2005 My.Computer.Filesystem.WriteAllText("C:\Foo.txt", Textbox1.text, True) Textbox1.text = My.Computer.Filesystem.ReadAllText("C:\Foo.txt") ...Show All
Windows Forms Problem using DataGridView in DragDrop Event
Hi I would appreciate your help in solving my problem. I have a UserControl which contains the DataGridView (manually populated – with unbound data) and this control is used several times on the main form. It is here that I require to drag and drop (Move) rows of data from one DataGridView to another. The problem is when I try to add the new row to the DataGridView it adds an empty row, but when I look at the object I’m cloning it contains the correct data. Since if I move the data from the cloning object to a string array and then add the string array to the DataGridView it works. Also how can I remove the source row from its D ...Show All
SQL Server sql server 2005 SSIS and AS400 connectivity
Hi all I am trying to connect to an AS400 to download data to a 64bit sql server 2005 server. I am able to do this easily by migrating existing sql2000 DTS packages but how do i do this is in an SSIS project creating the process from scratch and how do i incorporate activex transforms like you could in DTS2000 into the trasnform with copy columns Please help i am slowly turning grey trying to get this to work. thanks Chris If you are building your package from scratch then don't use ActiveX scripts. They are only there as a form of backward compatability - but not a great one. The most analog ...Show All
Software Development for Windows Vista Taskbar Thumbnail API
Our app currently does not display properly in the taskbar live thumbnail in build 5384. It seems to not display any popup windows in the thumbnail. Is there an API that allows us to construct our own thumbnail for this (or can we turn it off) Thanks. We've made several improvements in how applications appear in the Flip3D view and in thumbnails in builds later than the one you are using, and we are still working on it. By the time the OS is released your application should display correctly -- assuming we have the same understanding of what "correctly" means, of course. There are c ...Show All
Visual Studio Tools for Office Word.Range.Font.Hidden???
I'm setting various ranges within a Word document to be hidden. When the document is reloaded and I check to see if those same ranges are indeed hidden I get confusing values. Most of the time when I'm checking a range to see if it's hidden the value returned is either 0 or -1. True or false as expected. Sometimes I get a value of 9999999. What does this value mean I came across that one... it is WdConstants.wdUndefined If for some reason the status can't be determined the result will be this one. You can find it here in the list. Go to WdConstants and expand the group: http://msdn.microsoft.com/lib ...Show All
Visual Studio Team System Problems found when install TFS on a AD domain controller
I install TFS on a Windows 2003 Active Directory Domain Controller, using Single-Server depolyment mode. Everything seems ok during the installation, but after that, when I open the event log, some error appear found : Volume Shadow Copy services could not start, the error code is 0x8000FFFF. Does anyone encounter the same problem How to solve this Thanks! I see many people are having trouble installing Team System in a single machine. Even after installation, many cases it seems to fail during new project creation. I also had all possible errors found here in newsgroups. Here's a visual tour of the entire single machine setup process ...Show All
.NET Development No data to Read Exception
I am trying to connect to a firebird DB and added the reference....but i know its data there but its not reading it at all Is there something i did wrong....The compiler tells me there is no data to read....How would i be able to troubleshoot this any help Dim connect As FbConnection = New FbConnection("User=SYSDBA;Password=masterkey;Database=localhost:C:\APPOINTMENTSPRO.GDB") Dim fbread As FbDataReader Dim fbcmd As FbCommand Dim client_id As String = "38548148PM5938" Dim str As String = "SELECT last_name,first_name,middle_name,address_1, address_2,city,state,z ...Show All
SQL Server upgrading MSDE with SP4
Hi, I'm trying to upgrade MSDE with SP4. I used the following in command prompt. setup /upgradesp sqlrun INSTANCENAME= MSDE1 SECURITYMODE=SQL UPGRADEUSER=sa UPGRADEPWD= 12345678 /L*v C:\MSDELog.log i got the message " Please go the control panel to install and configure system components." What does it mean How to upgrade it Thank U! Which error do you get in your smart devices HTH, Jens Suessmeyer. --- http://www.sqlserver2005.de --- ...Show All
Windows Forms TaskVision Excel dependency
Hi, I downloaded TaskVision_FullSource_CS.zip, the CS version of the application. After I extracted the project and tried to build it I noticed that it cannot resolve the reference to Excel dll. I assume this is an interop module to work with Excel but I cannot find this dll anywhere. Does anyone know where it should be Thanks, Norton. Alright Nor ...Show All
Visual C# Blinking Controls on WinForm
Hi I'm using Winform, I put some controls on it textboxes, treeview etc. And when I'm resizeing form - controls are blinking. - For example Nodes in Treeview disappear for short time and appears again. How to prevent this Hi Lufa, This problem usually occurs when you have grouped controls in many panels. Make sure that you are not using too many panels. ...Show All
SQL Server Using Transactions causes database connection to fail
In one of my packages, I set the package-level property called TransactionOption=Required. During run-time I saw an error saying "[Execute SQL Task] Error: Failed to acquire connection "SQL_DW". Connection may not be configured correctly or you may not have the right permissions on this connection. ". When the property is changed to anything other than Required, it works fine (the calling package that calls this package is not involved in a transaction). The machine running the packages is Windows Server 2003, and so is the database where the data lives. I verified that the machine containing the database does has Ena ...Show All
Visual Studio Tools for Office How to display an Infopath in a typical windows forms application.
Hi, I want to display the Infopath form in Windows forms Application developed using C#. Thanks in advance for the help. Subramaniyan Sorry -- InfoPath 2003 cannot be hosted inside another application. Darryn Lavery -- MSFT ...Show All
Windows Forms data binding to a photo with sql server 2000 in c#
hi all, the question as above anyone can solve the problem I appreciate your time in responding. Ok let me see if I understand. I already have a table in the database with a column datatype Image I already have a dataset derived from the table I already have a datalist derived fromt he dataset with an image lable from the table. It generated update functions and I am suppose to manually change the updater from byte[] image, to Image.FromFile() for example in my case Image.FromFile(~/nappapmail/ProMembers/artists/images/Image{0}.jpg) when I do this I get an error message Error 5 'FromFile' is not a m ...Show All
Visual Studio Team System How to generate a 'physical output' from the sharepoint query result?
Hi, I'm using a SQL Query Analyzer to run a query in my sharepoint database. The query doings fine, and it shows results. My question here, how can we use the result and put those files into a folder It doesnt matter a particular or not, but basically to generate a 'physical output' from the result query that we had. Previously, i'm using VSS Reporter where it can search my database through labels, and able to select the particular label and put those file in a folder. How can sharepoint implement this Is there any software of steps can we use Thanks Kind regards Seth, Windows Sharepoint community would be the b ...Show All
Visual C# Image size changing during rotation
I copy pictures from one directory into another. I rotate some of them. Average size of the picture is 0,9MB. When I copy images without rotating file size doesn't change, but when I rotate this image it size is smaller (about 4 times). Did I loose some quality of this image Code: _stream = new FileStream(@"C:\test.jpg", FileMode.Open); Image _photo = Image.FromStream(_stream); _photo.RotateFlip(RotateFlipType.Rotate90FlipNone); _photo.Save(@"c:\test2.jpg", System.Drawing.Imaging.ImageFormat.Jpeg); Have a look at this... http://www.codeproject.com/cshar ...Show All
