FistFullOfSteel's Q&A profile
Visual Basic textbox selectall not working
Neither of the two code pieces are working for me... Private Sub TextBox1_GotFocus( ByVal sender As Object , ByVal e As System.EventArgs) Handles TextBox1.GotFocus TextBox1.SelectionStart = 0 TextBox1.SelectionLength = Len(TextBox1.Text) End Sub -= OR =- Private Sub TextBox1_GotFocus( ByVal sender As Object , ByVal e As System.EventArgs) Handles TextBox1.GotFocus TextBox1.SelectAll() ...Show All
SQL Server Send Email Task - Error Reporting
SSIS : I have a "On Failure" precedence constraint that executes a Send Email Task for a Data Flow Task. Do you know how I might capture the error message from the Data Flow Task to include it in the Email (most likely as a variable) Thank you for any help! -Tim Put the send mail task in the OnError eventhandler for the data-flow. The error message will be available in @[System::Error ...Show All
SQL Server How to get detailed info of views?
Hi. We're using Sql Views to access data from our database, and I need to validate the views so that we don't loose anys data. By that I meen that e.g. if a foreign key column is nullable, we need to use an outer join to secure that we get all the rows from out "main" table in that view + some other checks on the joins and the joined columns. But I couldn't get this info from the Smo.View-object. Do I have to parse the CREATE VIE ...Show All
Visual Basic Copy a file to a folder
Hey, I am using Visual Basic 2005 Express Edition, and have ran into a dead end. I want my program to copy a file into a folder but the only copy command I could find was the io.file.copy but this only allows the code to copy to a file path not a folder, is there a way to copy a file to folder or a way around it Thanks Try this: Dim FilePath As String = "c:\test.txt" Dim DestFold ...Show All
Windows Forms How do I draw an image at the actual size (pixel-wise)?
I'm using C++ in VS 2005 with the Windows Forms Designer. I create a Bitmap in the code (loaded from disk) and try to draw it to a panel (created in the designer). The problem is, instead of rendering at 320x320 pixels, which is the original size, it renders at about 425x425. I tried DrawImage and DrawImageUnscaled, and both do the same. How do I draw the bitmap so that it's 320x320 pixels Take a good look at t ...Show All
SQL Server Simulating ORACLE SEQUENCES
In order to replace an Oracle DB with SQL-Server 2005 i've to find a substitute for the DB-Object "SEQUENCE" used in ORACLE. I tried it with a trigger and a stored procedure. But in both cases the stress-test failed. In case of the trigger the requests blocked each other. In case of the stored procedure "unique" numbers have been assigned twice to the requestors. Main problem may be the fact, that i can't read and w ...Show All
Visual Studio Express Editions insert
how can i insert a new record programatically That's a very generic question. Following is an excerpt from ADO.NET QuickStarts: String InsertCmdString; InsertCmdString = "Insert into Region (RegionID, RegionDescription) VALUES (100, 'Description')"; SqlCommand mySqlCommand = new SqlCommand(InsertCmdString, myConnection); ADO.NET QuickStarts link: http://samples.gotdotnet.com/quickstart/howto/doc/adoplus/ADOPlusOverview.a ...Show All
Visual Studio Team System Can't reconnect to TFS using FQDN
I originally posted this in the General group, but this may be better here: I connected to our TFS Server with just the host name, and that worked fine (tfsdev01). Now though I've removed the connection and am trying to add the full name: tfsdev01.some.internal.domain.com. I can browse to the fully qualified site from IE ( http://tfsdev01.some.internal.domain.com:8080/Services/v1.0/ServerStatus.asmx ). When I try to ad ...Show All
Game Technologies: DirectX, XNA, XACT, etc. CreateDevice.cs(13)
I'm trying to compile example projects that came with DirectX SDK 9.0 and I get this error: CreateDevice.cs(13): The type or namespace name 'DirectX' does not exist in the class or namespace 'Microsoft' (are you missing an assembly reference ) The only reference I found to this error was from 2003 and did not help me. I also downloaded the 9.0b development runtime for directx. Do I need to move files to fix this or is there an update I should do ...Show All
Visual C++ error LNK2019: unresolved external symbol -- Why???
I am trying simple static linking with VS Express 2005 (C++). I have headers and source for a very simple sample static library and source of a very simple sample executable using that library. ---------------------------- Static Library Header Sample: ---------------------------- //returner.h #ifndef _RET_ #define _RET_ #ifdef _LIB #define DECLSPEC __declspec(dllexport) #else #define DECLSPEC __declspec(dllimport) #endif int DECLSPEC return ...Show All
Visual C# A problem about binary file source safe versioning
Does anyone of you ever try to check in your binary files for versioning We have this habit since the day when we work on VB projects. Since COM versioning is very important, we have very clear habit to keep different versions of the DLLs. Now in .net, with VS.NET 2003, we realize there is a very strange behaviour which prevents binary files checking from working properly. Lets say, we have 3 projects: ClassLibrary1, ClassLibrary2, WindowsApplic ...Show All
Visual Basic Sorting Items in ListBox in VB.Net
Hi everybody, How would you sort items in a Listbox based on what is selected and move it up or down How to get its index of item if there is one, nad change the index of items by rearrnging them This to be done in VB.Net Windows Application. Thanks. den2005 Button2 is an UP button, ListBox1 is the listbox to re-arrange. The code assumes that you are using the VB6 method for ItemData, otherwise ...Show All
Smart Device Development Printing from SmartPhone
Hi, I am planning to prepare an application for pocket pc with print feature. I have seen many third party SDKs for printing but can anyone help me out with some other way. Any help will be appreciated. regards, Chintan There is no printer support built into the .NET Compact Framework. If you want printer support, you will need to use a 3rd party solution or write software to talk to the printer yours ...Show All
SQL Server How to export a table column of XML type to file?
How to export a table column of XML type to file when I use international characters in values of XML parameters Thanks for an answer. Thank you very match for your answer. It was about “-w” parameter. With regards Jiri. ...Show All
Visual Studio Express Editions Multiple installations?
Can I have the WebDeveloper edition AND C# Edition installed on the same computer Evil, yes, Standard or Professional can be installed and work alongside Express. ...Show All
