Answer Questions
MKMahesh Mysterious Disabled KeyDown events on VB6....
Hi Im creating a simple game on VB6, and most of it is goin ok. I have completed one level, and attempting a boss level and that is were something is going wrong. The Boss moves up and down using a randomiser, and to prevent flicker is in a picture box (so the picture box is the one moving). Before i had put the boss in, all of the controls worked, but now none of the Key events work for any of the controls... any ideas Cheers Oli ...Show All
Stephie Authenticate HTTP
Hi, I'm trying to authenticate to a site automaticaly, and am using a web browser control in a VB .NET application. The furthest i got was using something along these lines Dim cre As String = String .Format( "{0}:{1}" , "userid" , "password" ) Dim bytes() As Byte = Encoding.ASCII.GetBytes(cre) Dim base64 As String = Convert.ToBase64String(bytes) Dim vHeaders As Object ...Show All
Warren B How execute javascript fiunction on HTML page, using WEBBrowser Control (VS2005)
I use new WEBBrowser control (VS2005) in my program (WinForm) for open web site. (VB2005) After using method "navigate", in webbrowser I have HTML page from some website. This HTML page has some input button with events "onclick(jsSomeFunction(someParam))". I can click with mouse on that button and this events working fine. My question: How I can capture this events (or execute jscript function - jsSomeFunction(someParam)) from my pro ...Show All
chk_Youssef Timer.Tick and Graphics
Well, code is: Private grafika As Graphics Private czas As Windows.Forms.Timer = Nothing private dl as integer = 0 Public Sub pc1_Paint(ByVal sender As Object, ByVal e As System.Windows.Forms.PaintEventArgs) Handles Me.Paint Dim pen_draw As New Pen(_kolor_obw) e.Graphics.DrawRectangle(pen_draw, 0, 0, s.Width - 1, s.Height - 1) dim tymbr as ... e.Graphics.FillRectangle(tymbr, 1, 1, s.Width - 2, s.Height - 2) Dim buf ...Show All
Marcin Kosieradzki Blair Allen Stark
Here is the problem I am working on. It asks me to use the method CalculateCharges, but I don't fully understand how to do this or how it works. I would be grateful for any input. Lab Problem III A parking garage charges a $2.00 minimum fee to park for up to three hours. The garage charges an additional $0.50 per hour for each hour or part thereof in excess of three hours. The maximum charge for any given 24-hour period ...Show All
Greg Thomas strange char's in writeLine task?
I'm trying to make files like this with a vbs script with the WriteLine command Problem is how to make the " and / chars and so on In C I find the \" and so on... but in vbs This is the file i like to make: < wsx version="1.0" encoding="utf-8" > <media src= http://111.111.111.111/Name "/> </smil> Anny Idea or link where to read more Thanks /C I did solve the ...Show All
Sam Thakkar MeasureString
I need to know how to measure the length of a string, without being in a paint event. For some reason I can not use the following code: System.Drawing.Graphics.MeasureString() As you’ve likely found, MeasureString() requires an instance of the GraphicsClass. Aside from the obvious method of using the one provided in the OnPaint method you could easily create your own in a visible object by asking the parent ...Show All
gilstav Not able to publish project VS.net 2005 Professional
When ever I try and publish my project in VS 2005 I get an error default certificate could not be created publish aborting. Any idea what is going on It is a VB project and it runs fine no errors. I am choosing to deploy to a local directory C:\deploy\firstproject. I have tried online help and nothing comes up on this error. Any help would be appreciated. -Troy hi, i also got the same problem. (but i'm using Vi ...Show All
thembi edit and continue
I can't seem to enable edit and continue in my VB 2005 app. Everyone seems to be pointing to Tools--> Options--> Debugging, but I don't have a debugging menu in my Tools--> Options. Any help would be appreciated. Thanks, Danny We use sourcesafe and the files are checked out of sourcesafe. If they were readonly I wouldn't be able to edit them in development mode either. ...Show All
bcox Getting primary key of record just INSERTed
Hi. What is the best way of inserting a row of data to an SQL Server database and getting the primary key (identity) of the record you just inserted - preferably in as few statements as possible I've not managed to find any examples of this on MSDN. Is there a method that does this without requiring another SELECT statement following the INSERT Thanks, Mark Thanks, Paul. (I read about @@Identity here f ...Show All
g0l3m Converting Julian Time Values
I am a VB6 newbie trying to convert a Julian (1970) value to a standard date and time format. The value I am trying to convert is the number of seconds since Jan 1, 1970. Any help would be greatly appriciated. This seems to be a common question and I'm sure there are many ways to tackle this. I've had the opportunity to do this in reverse. (i.e. Gregorian to Julian). I used a method described by the ...Show All
kmassey Changing screen resolution with VB 2005
I'm having a difficult time converting a Windows API call that works fine in VB6 to run in VB 2005 (Windows XP with SP2 in both cases). I reduced the problem code down to its core which is below. I'm trying to change the screen resolution with the ChangeDisplaySettingsEx call; the idea is that on entering the program it shifts to high resolution and at the end it restores the original settings. I left the restore part out because I get the same ...Show All
Jose A. M. tree view after select problem
Private Sub tv_select_AfterSelect( ByVal sender As System. Object , ByVal e As System.Windows.Forms.TreeViewEventArgs) Handles tv_select.AfterSelect If "exponantial" Is e.Node.Parent.Text.ToLower Then If e.Node.Text.ToLower Is "close" Then ...Show All
VinceAnguiano Application Icon
The help file says that any icon added to the application under resources should be listed in the drop down for the application icon. Mine do not show up! Anyone know why How do you take care of this if one is not using Visual Studio. If I am using Mage to automate the process how do I ensure that the manifest is aware of the desktop icon I have already added code in the startup of the program to add a des ...Show All
avenue Adding menu's at runtime problem
Hi, I need someone to put me in the right direction as I'm not sure how to do this, I want to add menuitems to my windows form dynamically withh their relevent event handlers. The text for each menu is read from an XML file and I don't know how many menuitems will be added at any given time as it depends on the users choice. I'm using the toolstripmenuitems and I'm not sure if they react differently to the normal menuitems. Can some ...Show All
