Visual Basic 6 Forms Question ?
141656
Making full screen apps is harder than people usually think, you need to know exactly the resolution of the viewer's screen OR add code to calculate the position and size of things in the forms, this code was not wasy to be made. The only solution is to make a non-fullscreen apps,  and make it so that it uses larger fonts, set the fonts at the property page (find it, I forgot which)
123651
You can do it in Visual Basic by defining a subroutine that will be called just before the document is printed:\n\nPublic WithEvents appWord As Word.Application\n\nPrivate Sub appWord_DocumentBeforePrint _\n        (ByVal Doc As Document, _\n        Cancel As Boolean)\n\nDim s As Shape\n\nFor Each s In Doc.Shapes\nIf s.Type = msoTextBox Then\n    s.Line.Visible = msoFalse\n    End If\nNext s\n\nEnd Sub\n\nThe problem is, it's a little bit tricky getting this routine hooked into the application event handler.  Translation:  I didn't get it to work.  Look at the documentation for the DocumentBeforePrint event for details on what to do.
791942
First off, the program you designede in visual, are you running it in another visual basic program or are you importing it into another program.  Second, all you need to do to run the program by single key execution is to set the program to a macro.  For more detailed info go to the help section in visual (or press f1) and type in "macro".  Everything you need should be there.  You can send me a direct e-mail if you have any other issues the help won't help with (flyingrizzly@yahoo)
639064
Put this code in the OnClick event of your button.  Between the Private Sub and the End Sub lines...\n\nIt'll take the user to a new blank row when it is clicked.\n\nOn Error GoTo Err_Command0_Click\n\n\n    DoCmd.GoToRecord , , acNewRec\n\nExit_Command0_Click:\n    Exit Sub\n\nErr_Command0_Click:\n    MsgBox Err.Description\n    Resume Exit_Command0_Click
638752
Put this in an asp page and try it.I jus did it and it worked. \n\n<%@ Language=VBScript %>\n<HTML>\n<HEAD>\n<META NAME="GENERATOR" Content="Microsoft Visual Studio 6.0">\n</HEAD>\n<BODY>\n<form name="frmTest" method="post">\n<img src="Bluebar.gif" ></img>\n<br>\n<LABEL id="lblclick" onclick="ShowList()">Click on this</LABEL>\n<P> </P>\n<br>\n<LABEL id="lblShow" ></LABEL>\n</form>\n</BODY>\n</HTML>\n<script language="javascript">\nfunction ShowList()\n  {\n   window.document.getElementById('lblShow').innerHTML = "Hey ! you just viewed and clicked me :)"\n  }\n</script>\n\nDude.....the window.document.getElementById will show as .... I tried all methods and yahoo still sucks...\nSo here I will explain.  getElementBytId() .In this bracket you need to give the Label which is displaying the text, its id , i.e in this case getElementBytId('lblShow'), and after the close parenthesis we give ".innerHTML" and then "=" what value we want to give.\nhave issues still then, send me a mail at nigeljd@gmail.com
37333
Assuming you are writing your macro in VbScript:\nsResult = Inputbox("Prompt", "Input box title")
764673
When you create a control dynamically like this, don't forget to set its properties then ADD it to the forms control collection so that it will be seen.\n\nDim asd as New Picturebox\nasd.Image = Image.FromFile( "pathtoimage" )\nasd.left = 10\nasd.top = 10\n\nMe.Controls.Add( asd )\n\nThen you should be able to see it and all should be right with the world. My example assumes you included the System.Drawing namespace, but you could fully qualify it like you did in your example.\n\nHope this helps! Enjoy
670070
 Dim frmName As String\n   \n frmName = "form2"\n   \n Select Case frmName\n  Case "form1"\n   Form1.Show\n  Case "form2"\n   Form2.Show\n  Case "form3"\n   Form3.Show\n  Case Else\n   MsgBox "Invalid form name"\n End Select\n\n***EDIT***\nIn VB, you can't convert a string object into a form object.  This is why String.Show doesn't work.  However, you can use a "select case" on the string and if the string matches the form name (i.e. form2), then show the form.\n\nAnother alternative is to loop through the forms collection until you find a form with the same name as your string.\n\nIn any case, if you create a project with 2 forms (called form1 and form2).  Add a button to form1 and paste the above code into the click event of the button.  When pressed, form2 will be displayed.
1054101
PrintForm\n\nThis will print the window.\n\nOr....\n\nPrivate Declare Sub keybd_event Lib "user32" (ByVal bVk As Byte, ByVal bScan As Byte, ByVal dwFlags As Long, ByVal dwExtraInfo As Long)\n\nPrivate Function CaptureScreen(ByVal myFile As String) As Boolean\nOn Error GoTo ErrorHandler\nCall keybd_event(vbKeySnapshot, 1, 0, 0)\nSavePicture Clipboard.GetData(vbCFBitmap), myFile\nCaptureScreen = True\nExit Function\nErrorHandler:\nMsgBox "Error Occured " & Err.Description\nEnd Function\n\nPrivate Sub Command1_Click()\nCall CaptureScreen("c:&#92;screencap.bmp")\nPicture1.Picture = LoadPicture("c:&#92;screencap.bmp")\nPrinter.PaintPicture Picture1, 0, 0, Picture1.Width, Picture1.Height, 0, 0, Picture1.Width, Picture1.Height, 0\nEnd Sub
952409
That is a good question needs a GOOD answer.\nYou have some tools in Excel to do this.\nTry:\n1- View > Toolbars > Forms\nand draw the object you want (Use Checkbox and OptionBox will help you alot)\nRight click on each of these boxes and go to Properties > Control where you can select the way this control controls the action.\nYou can alos use ListBox or ComboBoxes.\n2- You may need some VBA macros to complete the job\n\nI can do alot of these for you, need you to send me more info here in Y! Answers and I can promise I will help\n\nEnjoy my profile, I am the VBAXLMan
1082702
Using C# in the code behind you can get access to the form as an object. \nYou can access it via a method on the object of the form class. I do not correctly remember the method but it is of this format: <form name>.getForm().. or something.. \nTry this out.. or contact me..
325795
I don't think its an option from the menu. Ofcourse, VBA script can be written for that to happen.
849138
Usually MSDN pages aren't the best, but this one is actually really descriptive and has a section on this topic alone. How to edit data through a bound formview. So I will provide you the link below and you can read up on it. It even provides you an example.\n\nRemember to create yourself an edit template and the rest is cake.\n\nEnjoy!
956630
try to find your answer in the Internet first, before you post your messages here.\n\ngoto this site about 'Drag and drop' in VB :\nhttp://www.devx.com/vb/free/articles/pa62502/pa62502-1.asp\nhttp://visualbasic.ittoolbox.com/documents/popular-q-and-a/drag-and-drop-with-listview-2947\nhttp://visualbasic.ittoolbox.com/documents/industry-articles/drag-and-drop-in-windows-forms-a-primer-2510\nhttp://msdn2.microsoft.com/en-us/library/xz32ty04.aspx
1015496
Access has the "forms" but I forget how to use it.
95375
I used to know how to do this.\n\nOne way is to make several forms (one per tab) and then make them all invisible except for the active tab. Use the tab buttons to switch the current form to invisble and the selected form to visible.\n\nMicrosoft is usally pretty good with code samples and the like.
513425
Pull over!!!\n\nDriving Visual Basic 6 without a license, huh?\n\nGonna have to write you a ticket.