I have a simple form. In the top left corner I have a numericupdown box. Under that I placed a panel that holds a picturebox. I did that so I could use the panel autoscroll feature if I resize the picturebox to be bigger than the form. To set this up, I set the panel to dock fill. If I do this, it covers up the numericupdown box. The docking on a form is very, very sensitive. How can I make sure I set this up correctly.
btw - If I place the numericupdown box on the panel and I scroll later. The numericupdown box scrolls away also. I am trying to make sure it stays fixed.
Also - I looked to add the numericupdown box to a toolstrip, but the box is not available to be placed on it - This would be my first choice.
How can I add controls to a form in code and set the properties of the controls using the With statement?Also I would like to know how to add a container control and then add a control to that container.
I have a slight problem With an enumaration of child controls on a form. The following code will not get but about have the controls that are on the form. The controls show that the count is correct but when it goes through the loop it skips over some of the controls. If you run it through the enumeration two or three times it will get all the controls a few at a time. The solution uses two forms, one that has the controls and the other that labels are made and displayed on. The Tx is just a index to add a number to the label.name and rename the label. So each label is identified seperately. This works for all the the controls that are seen in the for each loop.
I had made a media player program, i have some other posts regarding that, my question though is how do you reorder a listbox using drag and drop, kind of like you can do with windows media player. I want to be able to drag song 4 after song 1 and then have it play that song after song 1. I seen a different post but it looks to be in C and not VB.
i have a panel. the autoscroll is set to true. and i have the menu called "add bar". when user click on it, the usercontrol will appear. but different placed. so there will be more that one usercontrol. i want to do the usercontrol y location is increase when the location x is more than 600 for e.g.
If x > 600 Then y += 200 x = 0 End If
the code above is work, but the problem is, why when i scroll down, and click on "add bar" the value of y location is not same as the previous usercontrol, it should be same on y because it is not yet reach the codition x > 600.
I have a module level sub that I use to clear text fields etc on my forms:
CODE:
The problem I have is in the last few lines of code as I'm not really sure how to access the text boxes contained within the tab controls (of which there are many tabs and many text boxes).
This is the closest I've got but I am getting an "option strict on disallows late binding" error on the tabCtl in the following line.
I need to display a set of images as rows and columns in a form. The layout should be user selectable similar to MS Word 2007+ - Table Insert functionality ie. rows & columns need to generated during runtime. Is there a built-in layout manager to support this functionality?
The application I'm doing requires me to "enter the size of an array in a TEXTBOX, then click a button, a list of random number would show up, then re-arrange from Lowest to Highest".For ex, i enter "5" in the TextBox, then an array or list of 5 random number will show up vertically on the ListBox. I already got this part done. Now the thing is, I have to make a For...Next statement to rearrange them from Lowest to Highest.
I have made a database that stores images as each record. I want to add a feature where mum can select a few of the records that she likes the images of. Once that is done I want a new form to appear whereby she can drag those selected images about and arrange them in a simple collage. Then save that as a new image. The database is done and the images can be stored, however I am not sure what would be the best way to select the images she wants. What do people reckon? A form that displays thumbnails of all the images and she can click on the ones she wants? or a check box on each entry? Then does anyone know how I could allow her to arrange and save the images as one new image?
I am doing a project for a college assignment and im stuck on the print section, i have alot done but I need it to be able to print out like the photo from the link below, but i have no idea how to change the code.[code]
I'm working on a project which generates numbers. When those numbers have been generated I would like to arrange them from smallest to biggest. Let's say 6 22 8 12 15 2 is generated. Then i want it to be re arranged to 2 6 8 12 15 22
This is the code I'm using:
PHP
Private Sub btnRandomClick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnSlumpa.Click Dim random As New Random
in my application i have to print some data on alrady printed forms...for example: i have print on a BANK CHEQUE.
Now my problem is that these forms are printed differently and different bank have different check but all have the same data..and to meet this requirement printing need to be ajusted for eg i might need one colom two place down or left or right.. so i need a printing tool in which i can edit the location of printing meterial i mean take them few places left or right and adjust them as my requirement.i have used crystal reports and ms reports at very basic level but what i have found is that i can not edit design move drag etc from the application..
Am Developing a program that requires alot of questions on a database. each question have four options in answer. one of the four options is .is the correct answer. i need idea on how to arrange the question and four answer options table in access. do i need different access database for the question and each of the answers options.?
I have a form. And some controls(such as TextBox,ComboBox,etc.) on the form.Now,I want to store the controls' Text into a .txt file(or any other formarts).Then I want to read the text in the .txt file to my controls.
A TextBox has the Following Words; " ABC : 12" , "EGF : 15" and "JUT : 02".I want to have "ABC : 12" to have Red color Font, "EGF : 15" - Blue Font and "JUT : 02" to have Green Font.Is it possible to do this? Changing the "Fore Color" in the "Property" of the TextBox changes the color of all the Texts to one color.
The other problem I am having is (how) to get these sorted according to the Number shown with the ABC, EGF etc,. They should be arranged either in ascending order or descending order.Each one is displayed as a String ("ABC : 12" is a String but "ABC" is a String and "12" is a Double converted to String).
Inside a form, I would like to display a pdf file which is already available in my resources (template file "untitled"). In this pdf file, I have some fields which get their values from some texboxes in another form. My aim is, when the user triggers the button to call this form, it should insert the values inside the pdf file and display the output pdf inside the form.I have written the code to an extend but could not finish it myself after my many trials... Now here are the two things I cannot manage:I can use a directory to read the template pdf "untitled1.pdf". But my aim is to use the file inside my resources. can save the output file in a directory but this is not I want to do. I want to display the output pdf.
I'm trying to convert a DTS package to an SSIS Package. My package contains a Data Flow task that pumps data from an OLE DB connection to a Flat File destination.The data in the flat file needs to be arranged in a certain way (eg: spacing), So how do I do that? Is there any data trasformation tool that will help me achieve this? If so how would it be done?THE DTS CODE (to put things in perspective)
I have a visual basic 2010 form with various group boxes, buttons, and labels. i want to be able to have the form maximized but when i do that the controls stay where they are at and they do not resize with the form. i want them to resize proportionately with the form.