I am trying to put a Data1 control on an MDIForm linked to an Access database with a PictureBox control linked to a field in the database, but no picture appears and the Data1 control will not step through records. All this works fine on an ordinary form, so what am I doing wrong for the...
I notice that Windows XP provides Microsoft Sam as a text to speech facility. It would be very useful for the educational program I am developing for pupils with reading difficulties to be able to press a button to get the text of a question read to them. Is there any way of harnessing XP's...
I have a program that needs to resize as a proportion of ScreenHeight and ScreenWidth so that it is full screen on any resolution setting. I have two Toolbars on a MDIForm, one at the top and one on the left hand side. The top one resizes as a proportion using
Toolbar1.ButtonHeight =...
I am using a PictureBox to contain some science questions that will be downloaded from a database. This allows to me to mix all sorts of text, tables and diagrams. I want to be able to print off all these in order with question numbers next to them. I can do this by placing 2 questions per page...
I need to be able to print the contents of a MSHFlexGrid. I can't find the syntax to do this. Also the MSHFlexGrid is on another form that will not be showing, will this cause any problems, ie will I have to filter and refresh the adodc data control on that form first? Lastly is there a way of...
I have a template Access database form where both the rows and colunmns have headings and there are about 360 cells which will be filled by each user over time. Each user needs their own form, and I am only expecting small numbers of users (3 or 4 at most). I need to be able to 'open' the...
I can't seem to print the contents of a picture box - I just get some numbers. Printing the contents of a TextBox works fine with Printer.Print Text1.Text so why doesn't Printer.Print Picture1.Picture or Printer.Print Picture1.Image work?
Any ideas?
I have a database table set up in Access as a Template, named "MyResults". It contains about 20 fields and 360 rows with empty records. When a new user registers, I want to be able to make a copy of this template and name it UserCode & "Results" so that when they log on the...
I have a large number of science questions stored in an Access database as Long binary data (this allows me to use MSWord to combine a complex mixture of text and diagrams). These can be downloaded into a PictureBox according to parameters set up by the user. I want to be able to print the...
I want to select a group of records from an Access database according to certain criteria and then pick one at random and deposit the IDNumber (the Primary Key AutoNumber) in a variable to be used later. This is what I have so far:
Data1.RecordSource = "SELECT * FROM QuestionsDatabase_...
I need to download some questions from an Access database by selecting according to certain pre-chosen parameters and then pick one of these at random. QuestionID is the Primary Key AutoNumber in Access, RowNumber is the VB equivalent, QuestionLimit is the full count of questions under the...
I am trying to use the SSTab control to display different selections of information in MSHFlexGrids from a single database using a single Adodc control. Unfortunately I cannot find a click event that recognises which of the 12 tabs is being selected so that I can attach code to change my...
I am trying to put different selections of information from the same database into different MSHFlexGrids on different Tabs of an SSTab control. I initially assumed that clicking, say, Tab 3 would fire an event for which I could write code for my ADODC control to make a particular selection from...
I want to be able to open word from my VB program I am working on to be able to use it as a text editor. I can get it maximised - MSWord.WindowState = wdWindowStateMaximise or minimised, but nothing in between ( with wdWindowStateNormal it seems to be minimised). I need to be able to set its...
I am a very amateur programmer trying to develop an educational assessment program. I need to count the number of questions (selected according to certain criteria)that are deposited in an Access database and display this number in a text box. So far I have this:
Dim QuestionCount As Integer...
I am a science teacher with only amateur programing abilities trying to write an educational assessment progam in Visual Basic.
I am storing some test questions in an Access database that I will be able to retrieve according to parameters such as "subject", "module"...
I am a science teacher trying to design an educational assessment program using VB6 (Pro). My Visual Basic is entirely self-taught.
I currently have a Picture control inside a Rich TextBox control into which I am able to copy diagrams at run-time. This works fine and the Picture control...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.