kleinma's Q&A profile
Visual Basic Contatenation
I'm very new to VB programming and I am trying to take the first name and a last name from two textboxes and cont. them into a txtFullName Below is the code I have been trying to write and I keep getting a blue error line (Value of type 'String' cannot be converted to 'System.window.Forms.TextBox'. Could somebody help please Ted Public Class Form1 Private Sub TextBox1_TextChanged( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles txtFullName.TextChanged Dim FullName As String Dim FirstName As String Dim LastName As String txtFullName = LastName & ", " & FirstName you have not specified the first name and ...Show All
SQL Server SSIS hang
I sumbit a package A in MSDB in SQL2005 EE server with SP1 by dtexec. Package A called 2 packages B and C in MSDB to do some data flow task. The package A finished successfully in about 2 to 3 mins. Howerver, when I submitted the package A again. Package A hanged. I checked the Activity Monitor and found all related Package A, B, C task is sleeping. I killed the dtexec and then re-submit the package A. Package A finished successfully this time in expected duration. It is strange. Could anyone tell me the reason of hanging Thank you very much. >I checked the Activity Monitor and found all related Package A, B, C task is sleeping. Do you mean SQL Server Activity Monitor ...Show All
.NET Development HttpWorkerRequest & Sessions
Hi all, I have an asmx application using HttpListener and HttpWorkerRequest to process the request. For example: http://msdn.microsoft.com/msdnmag/issues/04/12/ServiceStation/ In HttpWorkerRequest.GetFilePathTranslated() I need to obtain something from the user's HttpSessionState before the file is returned to the user. Is this possible I am guessing that the HttpSessionState has yet to be created. So, is there a way of getting access to the collection of HttpSessionStates that are available in the running application Thanks in advance for any help. Regards, Nige. Self-hosting ASP.NET is powerful and tricky. I am not sure whether there's a good answer to your question, since it's hard to tell the detai ...Show All
Visual C++ Looking for some tools to help VC++ compile times
Does anyone know if tools to perform these functions exist and where I might be able to find them: 1) Scan .h/.cpp files and identify #include statements that are not necessary. Or better yet, identify which #include statements are directly required or indirectly required, and suggest better #include files than the ones already listed. Or, even better yet, which #include files can be removed if you just replace it with a "class name;" statement and move the #include into the .cpp. 2) Scan the .h/.cpp files and give statistics on how often the .h files are referenced so I can decide if any of them should be placed in or out of the stdafx.h file. 3) Scan the entire project and list any included source file that can be safe ...Show All
Visual C++ How do you declare Enumerations for ATL projects using embedded IDL
I've declared the enum in both a header file and an IDL file as such: typedef enum tagFlipObjectType { None, PageType, FrameType, FrameSetType, SequenceType, SetHashEntryType } FlipObjectType; I have the following property for a simple object as such: [propput, id(5), helpstring( "property Type" )] HRESULT Type([in] FlipObjectType eType); With the added IDL file, I get: "failed to compile IDL content" I aslo tried adding the enumeration within the __interface block as well Is there a new or better way to do this Thanks for your help. Turned out that it wasn't the enum causing the problem. I had overlapping disp id's. Its resolved now. Ken ...Show All
SQL Server Stop Report generation
Hi, I have the report with two textboxes,Startdate and EndDate,I write a function like 'CheckDate' in custom code which checks the whether startdate is less than enddate and displays the message box,i added a parameter named 'Valid' and call the function 'CheckDate'.When i click on ViewReport button it displaying the messagebox and doesnot stop yhe report execution.I want after displaying the message box,Focus is set to StartDate textbox and stops the report execution. How to acheive this. Thanks in advance mahima, the only way I know how would be to check the dates in your SQL stored procedure that you are using, if you raise an error with an error messgae in the stored procedure than yo ...Show All
.NET Development Convert Binary file to Ascii and vice versa
Hi, is there a simple way of converting a binary file to ascii file and vice versa Thanks, -srinivas yelamanchili You cannot convert binary data directly to ASCII these days, ASCII can only represent character codes between 0 and 127. A common workaround is to use Convert.ToBase64String to convert binary data into a Base64 encoding string that only uses ASCII characters... ...Show All
Visual C# creating a sprite from a file picture
I have spent over 4 hours trying to figure out how to create a sprite from a picture. I have a programming background of turing I know a little bit of visual basic. I can't understand how to load a picture. Any help is appreciated. Image image = Image.FromFile(string fileName); fileName is just the name, not location if you have the picture file added under bin\Debug (in Solution Explorer, Show All Files). fileName is location if you have the file in another directory. ...Show All
SQL Server Is there a session variable? Microsoft please help
Is there a way to access a session variable for the url in reporting services This is hard to explain, but our internal users access our website and view reports via one url, while external users use a different url to view the website and reports. I used the jump to url in some of my reports, but I need the report to read which url they came in on so that it can jump to the correct url that I need it to. Has anyone done anything similar to this Anyone have any ideas I use "jump to url" in quite a few of our reports w/ the link that it is jumping to being different information on our website. Our internal users see our website on a different url than our external users, so in my jump to link I need to conditionally set whet ...Show All
SQL Server Sort and select, which executes first?
I use SQL Server 2005. I want to split the data in a table into two parts, say 30%-70%. Here are my query statements: -- 30% SELECT top 30 percent * FROM DataTable ORDER BY Col1 --70% SELECT top 70 percent * FROM DataTable ORDER BY Col1 DESC Somebody says the result is not guaranteed to be correct since in SQL Server 2005, the query optimizer may choose different strategy to execute the query statement. I think select should execute after order by , which has nothing to do with query optimization. Am I correct Yes, this what I am using now. But I am still wondering if my method works without any problem. Actually, I tested it and the result looks fine. But I need to make sure that it can be used in ...Show All
Visual Studio Express Editions table adapter queries
why would i want to create a table adapter query. what are they for ...Show All
Internet Explorer Development IE7 and issue with TrackPopupMenu(Win32) within ActiveX-control
Hello. I have a trouble with calling win32-function TrackPopupMenu from ActiveX in new Interner Explorer 7 (RC1 and all betas). The situation is: I have some ActiveX-control - "MyPopupMenu". This control is being used to show context popup menu. To do it, it used win32 function from winuser.h. There's an issue with one of them - TrackPopupMenu. Control has worked fine in IE6, but in IE7 it doesn't. When TrackPopupMenu is called in non-dialog window, nothing happens! There's no popup menu (it was constructed by calling CreatePopupMenu and InsertMenuItem previously). But popup menu still works fine in dialog windows (ones that created in script by window.showModalDialog). Can anybody help me THX. I think tha ...Show All
SQL Server aggegrate component
Hi, i have 2.5million records which i have to aggregate on a couple of columns, then add those to another table. i have created ole-db-source -> aggegrate is this wise or should i use ole-db-source with a sql-query that aggregates for me... will this increase my performance Try to use the power of the SQL engine to do this if you can. It has the benefit of indexes and statistics, which are not available to the Aggregate Tx, so it should be faster. However if the source is a high volume transactional system it may be unacceptable to have this type of query running, in which case the Agg Tx is probably a better way for you to go. As to which is faster, I can guess, but just test it ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Hosting Souce Code
Does anyone know a website where i can host the source code for my game . There is also freepository.com, where you can get free CVS hosting. If you want nice logs and stuff, though, you have to pay for premium service. If you just want a place to store source, it's very cool. ...Show All
Visual Basic ListBox selection subroutine
I need the code for creating a function or subroutine that will 1. count the number of items that I have in a listbox that are larger than 100 2. count the number of items that I have in a list box that are larger than 100 but less than 150. and then add these items up. 3. select certain alphanumeric from a listbox and count them... like the number of Smiths in an address book. and how to output them into a Label display box. Thanks! let's see if we can alter it Function FindList1000( ByVal lstBox As ListBox ) As Integer Dim intItems As Integer For intItems = 0 To lstBox.Items.Count - 1 if double.TryParse(lstBox.It ...Show All
