clint 2's Q&A profile
Visual Basic Cursor
Hi all! I have a little problem with the mouse cursor, using VB 2005 Express. On a form there's a non-visible webbrowser, which is updated every 2-3 seconds or so. In the form load event I can choose any cursor type I want but every time the webbrowser updates, the cursor changes to a waitcursor (the one with the additional hourglass) I do not want this to happen, the cursor should remain the same, i.e. the arrow. There are no doevents() which may cause a reset, I've tried mousecapturechanged.events on the form, also on the browser the navigated- and navigating.events are not of any help here. I have tried the oldcursor = Me.Cursor V.V. trick but nothing works. Am I overlooking something Any suggestion much appreciated! Bob ...Show All
SQL Server SQL varchar conversion
Ok i've been asked to right a sp that converts a date. Now this is usually quite easy, but unfortunatly it was a poorly designed DB, and the date has been stored as a varchar(50) in the for dd/MM/yyyy, so doing a stright CONVERT(dateTime, Field, 101) doesn't work. So my question is, is there a way to do a varchar to varchar conver such as this: CONVERT(varchar(50), <field>, 'MM/dd/yyyy') where <fields> is varchar(50), and data stored within it is in the format dd/MM/yyyy. Thanks for any help you can give. Hello, There's a few ways to tackle this, with the easiest being: SET DATEFORMAT dmy GO SELECT CAST(ColumnNameHere AS DATETIME) GO You can use SET DATEF ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Help Needed Collision Detection
Hi, Everyone, Any help would be great, I am trying to replicate master of defense as a learning curve and i cannot figure out the collision detection. It needs to be able to fire continuisly and it will always hit if the army man if it is in a 250 radious area. I have a static tower firing at co-ordinates x = 250, y=0. I also have an army man running down from co-ordinate y 0 to 250. x= 0 I just cant figure how to make the bullet fire properly to kill the army man if he is in the 250 box area. example : if tower x= 0 and y = 0,, army man x = 0 and y = 250 he can be hit, if he is the other side army man is at x=500 and y = 250 he can be hit. I am trying to make a 250 pixel circle around the tower. Any ideas Thanks ...Show All
Visual Studio Express Editions Problems installing VB 2005 Express
Hi, I downloaded the ISO file for VB 2005 Express. The first thing that happened was that the download was not the size indicated on the web page. I abandoned that and later that night when nothing else was happening, I downloaded it again. Same thing. The downloaded file was only 388,460,250 bytes. As I have WinRAR, I noticed that the ISO file was associated with WinRAR so I opened it up with the program. All the files were there, and extracting them saw no problems so I burned the files to a CD (maintaining folders) and tried to install the program. I also tried to burn the ISO image to a CD using Nero, but when I tried to start it it reported that the file size was incorrect and asked if I should correct it. I aborted the burn ope ...Show All
SQL Server Microsoft Participation in this forum
The VSTS team have posted a really useful manifesto for their participation in MSDN forums which I have read here: https://forums.microsoft.com/MSDN/ShowPost.aspx PostID=885414&SiteID=1 I'd like to politely suggest that the SSIS team do something similar on here. People have different expectations of what involvement Microsoft do/should have on this forum and it would help if Microsoft could clarify their position on this. -Jamie Hi Everybody, Here is the perspective of an insider; SSIS team member: First of all, this is a great forum. The posting traffic is quite amazing. SSIS is the most popular SQL forum and one of the top MSDN forums overall, which is amazing for such a young product. ...Show All
.NET Development SqlReader not working
I am nearly there, on my thing. Now to get the result For Some reason If i type System.Data.SqlClinet.SqlReader rdr = cmd.ExecuteReader; I get can error saying The type or namespcae name 'SqlReader' does not exists in the namespace 'Sytstem.Data.SqlClinet' (are you missing an assembly reference) I have the following at the top using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; using System.Data.SqlClient; Am I missing something Is it a config erorr The main question, How do I resolve this ALSO.... The query I am running is to select the row, where th ...Show All
SQL Server What is the Flight Recorder?
Hi, Can anyone tell me more about the Flight Recorder I think I can probably make an educated guess but I'd like something concrete. What is it What does it do How is it different from the query log Is it something used to do an AS trace What are flight recorder snapshots The only thing I can find is here: http://msdn2.microsoft.com/en-us/library/ms174827.aspx -Jamie What does it do Records last period of history for so you can try and troubleshoot events you didnt catch in Profiler How is it different from the query log Records quite a few trace events, but it is bound by time and space where query log records without restrictions but records only one event. Is it something used to do an ...Show All
Visual Basic adding handler to a button generated at runtime
everytime I try to add this code: AddHandler btnLogin.Click, AddressOf mybutton_click it gives me the following error: name 'mybuttom_click' is not declared. Here is the code that I am using to create the button: Imports System.Drawing Module formsLogin Public Function loginForm() Dim btnLogin As New Button With btnLogin .Location = New Point(55, 75) .Text = "Login" .TabIndex = 3 End With Dim btnCancel As New Button With btnCancel .Location = New Point(175, 75) .Text = "Cancel" .TabIndex = 4 End With D ...Show All
Visual C# automatic text file creation
I'm using the IO namespace and i need to have a text file created if it doesn't exist, im not sure how to do this i had found a good example on this site the other day but didn't think i needed it at the, and now that i do need it and ive spent hours looking for i cant seem to find it. so if anyone could help explain the code needed to create an if statement that would create the text file if it didn't exist already There is several ways you can achieve that. First you could do an if statement to see if the file exists like so : if ( File.Exists(path) ) or you could tell the filestream object to "OpenOrCreate" when instanciating it, like so: FileStream fs = new FileStream(path, FileMode.OpenOrCr ...Show All
Visual C++ Teach me what is _T?
I has such experience: CString s1="testing"; But compiler report error error C2440: 'initializing' : cannot convert from 'const char [7]' to 'ATL::CStringT<BaseType,StringTraits>' I don't understand it. If I modified it to : CString s1=_T("testing"), complie will be no problem. But if I tried to print it out by : TRACE(".... %s\n", s1); the output is only the beginning character 't', not whole string. Why this happened And how can i print out CString type messages The reason it is happening is, I suspect, because you are compiling with Unicode enabled and hence are strings are wide-strings (each character is 2-bytes) instead of narrow-str ...Show All
Visual Studio Express Editions Quick help needed pls,
Well this hopefully will be the last question i need answering, How do i make it so that "" this will appear in a message box, cause at the moment it uses it as if you was making it say something such as: MsgBox ("Hello") i need it so when the message box pops up it would say "Hello" and not Hello Please help i get an error, ill show you my code Private Sub Button1_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Form1.RichTextBox1.Text = "(script continuous " + (TextBox4.Text) + Environment.NewLine + "(if" + Environment.NewLine + "(volume_test_object " + "(" + (TextBox1.Text) + ")" + "(" + ( ...Show All
SQL Server How to connect to Microsoft analysis Server 2005 (9.0)
Hi People, I need to connect directly with the Database , not with a .CUB file. Somebody knows how it is possible (intructions in C#) Where can I find all this information Thanks If you want to administer the database (create, delete, process), you can use AMO (Analysis Management Objects) with code samples at "%ProgramFiles%\Microsoft SQL Server\90\Samples\Analysis Services\Programmability\AMO". If you want to query the database (run MDX queries), you can use ADOMD.NET. Adrian Dumitrascu ...Show All
Software Development for Windows Vista Laptop close lid, and re open lid, Vista wont resume, screen is off/black
I'm having a problem with Windows Vista Ultimate 64 bit edtion on my HP laptop, when i close the lid but i have set up what windows does when i close the laptop to do nothing, but when i close the lid, and re open it, the screen is off/black, cant shutdown it properly and must do hard reboot. Laptop is HP Pavillion dv9000nr AMD Turion 64x2 Nvidia GeForce GO 6150 1gb memory Wow, i thought i was the only one having this problem :( I have Sony Vaio VGN-FE21S with nVidia GeForce Go 7600, i have been using many driver from laptopvideo2go.com, but not solved problem yet, i am currently running nVidia 97.46 (the Sony release version for Vista) and i have upgraded my BIOS to R0172J3, which Sony UK ...Show All
.NET Development Error checking in compression xml document ?
Dear All, Previous time I have started a threaded which was regarding xml compression, its URL link is http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=1125126&SiteID=1 , now i want to do error checking in that xml document. Kindly solve it. Thanks Uncompress it and it is yours. Do whatever you want including "error checking". ...Show All
Windows Forms Launch Condition to check for available disk space
I am trying to add a launch condition to check for available disk space before uses can install my application. I tried to use the PrimaryVolumeSpaceAvailable Property but it looks like it has no value at launch. I also wanted to check the processor speen so I used a registry search to HARDWARE\DESCRIPTION\SYSTEM\CentralProcessor\0 to get key '~Mhz' , its returning the correct value but with a #, I wanted it to return an integer so I can use it to set my cpu speed launch condition. Please help ...Show All
