I have opened a form. I have put a checkbox on the far left of the form. I have labeled the checkbox "Hello."I have open a textbox on the far right of the form. And I have removed the default name text1 the textbox using the properties drop-down menu.The code for the check box is as follows:
Private Sub Check1_click()
Open "C:MyFile" for Append as #1
A= "Hello"
Text 1 = A
[code]....
Discussion: It does indeed print the word "Hello" in the textbox as desired. But, it also prints the word "Hello" in the upper left corner of the form. I don't want the word "Hello" anywhere on the form other than the textbox. My question is "How do I keep the computer from generating text on the form outside of the text box.I have a Satellite Toshiba Lap Top M35-S3592, use XP Professional and the Visual Basic Version is VB6.
I have a datagridview that is populated from an Oracle 11g DB. What I would like to do is add the values of a column together and display the results in a textbox. What would be the easiest way to do this?
I have a text file with preferences in it. I read the file and find text on a particular line like this:If InStr(sLine, "avidDirectory") Then This is my line in the text file: avidDirectory "S:Avid MediaFiles" "D:Avid MediaFiles" "Z:Avid MediaFiles"..What I need to do is read each string between the quoations marks and place each one in a text box.I have 5 texts boxes to use if there are 5 different directories above (only three in the example above)So I guess I need to capture the text between the quotation marks, create a new string from it, and place that string into a text box [code]
I made a file that has many URLs of sites and I want to make each line of the file in a different place on the form. My current code places all the text in one specified place, but I want to break it up in segments and place each segment in different places in the form. [code]
Im trying to read a text file line by line and place each line in a separate Combobox. right now with my code i can only get it to print lines in separate message boxes.
The text file (test2.txt) contains 1, 2, 3,
[Code].....
if i replace the MsgBox code with Combobox1.text = (strArr(count)) i get nothing.
I'm converting a user generated list box to an array and then generating a user defined number of random strings and placing it in a textbox.The code I have works fine as it will generate the number of random strings the user wants, except sometimes a line is blank at the top of the list but is counted as a string.
This is the only way I know how to obtain the info I need for this equation but if generated again with no input from the textboxes I get an error. Is there anyway to bypass this if its generated a second time with no inputs?
In an installation on the user machine , it was required to Register an Assembly in the GAC.i registered it using the .net config utility from control panel.But .net config utility is available only if .net frame 1.1 redistributable is installed or .net 2.0 full sdk is installed ( or vs 2005).i was wondering if i can use gacutil to place the assembly in GAC on a machine which only has .Net framework 2.0 redistributable installed on it.
Im currently working on a program that will download some files and place them inside a folder. The tricky part is that the folder they have to be puttet into is a .jar file. The jar file is always the same place, and that is in %appdata% the full location would be "C:UsersBrugerAppDataRoaming.minecraftinminecraft.jar". With "minecraft.jar" beeing the destination for the files
Ps. Im trying to create a mod installer, since some people are having a little trouble installing mods for minecraft. Minecraft can be found at [URL]
I'm trying to place a Label at runtime like this:Form2.lblMaxLandingWt.Location.X = Form2.Panel1.Width * .65but I get an error "Expression is a value and therefore cannot be the target of an assignment"
Is it possible to place data from a vb.net windows form program to a program that we can't edit. What i am trying to accomplish, is setup either an automation or select several drop downs and press save and it will save everything into the program that we don't have control over.I can find the window handle and the class for each window with spy +++ would this help me so i can atleast put text into a box? The program i am trying to place data into doesn't write to any type of database it only writes to an xml file. From there we pull data from the xml file to feed our vb.net program Where is the best place for me to start on this?
I am trying to figure out how to place controls on top of one another in html.For example. I am trying to place 2 labels on top of eachother. and also I am trying to place a text box under a dropdownList.
I'm new at the forums but not to .net development. I'm trying to make an application, which stays above the Dektop level but ALWAYS below any opened window. This application cannot be minimized, it has to be visible as a desktop background (just for getting you the main idea). As I was reading, I found that the way to make the form not to minimize is by using the WndProc function, and intercepting the Minimize message. My question is.. which of all the available messages is the correct for this case?.
P.D.3 (And last one I hope): See, the main reason of this application, is to make some kind of an "Active Desktop" function, which is not supported by Windows XP 64-bit. As XP64 doens't come with Active Desktop to use Web Pages as Desktop backgrounds, my idea is to make an application which loads certain web page and put's it on the desktop background.
I have a project with a number of forms. In Form2, I have a split container. In panel 1, I have a number of radio buttons. What I have not been able to do is use the radio buttons to select a form to be shown in the panel on the right.
Im trying to place 63 squire images on my forms background with a keystroke. I need to be able to set the location of each image i have( they are all in my resources) Is there any easy way to do this? Or any way to do this at all? I need them placed on my forms background because i would like to add a second layer of simi-transparent images over top using pictureboxes.
getting a scrapped list from a website into a listbox. I now need to use the contents of that listbox in a combobox and am going nuts. I have included the code
I have some code that I've inherited, and it's not the greatest in the world, but it works, with one small exception:
This page is a directory search, it has controls identified by record ID, however there exists a situation where there can be more than one result with the same record ID, thus making .NET barf. I had originally implemented a check that just didn't put the control on the page, if it was already there, but we've been getting negative feedback.
My question is this: Is there a way to put the same control in two places at once, for instance having if a user checks one, the corresponding one checks as well? I'm not terribly well versed in how .NET behaves, but I'll try to provide as much additional context as possible, if needed.
EDIT: Here's the updated code that generates the controls by looping over a datatable of results
Dim cbxSendInfo As CheckBox Dim strCheckboxID As String = "cbxSendInfo-" & drOrganizer("ID") & "-" & i Debug.text = Debug.text & " Loading Checkbox (" &
[Code]....
Where drOrganizer("ID") is the record ID, and i is the result record number.
I know this is a terrible way to do this, at least from my background, but like I said, this is inherited code that's been hacked to pieces.
I am working on a program. I've got the following Private Sub frmTabel_Activated(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Activated Dim strHoofding As String strHoofding = "Geleend bedrag : " & _ strRechtsUitgelijnd(Format(glngBedrag, "‚¬ #,##.00"), 15) & vbCrLf & _ [Code] ..... What it should do is placing the four formats but I am only getting result from glngBedrag' Like this: [URL]
I have been placing my database fields (details view) on a form but for some reason they are all appearing as text boxes with the exception of date fields. Why are none of them showing as drop down lists?
I have the code written for everything except when I try to display the highest and smallest numbers from the array into a label it display 0 for both the smallest and highest number. Question: Create an application that lets the user enter 10 values into an array. The application should display the largest and smallest values stored in the array. *The form is a list box with 2 labels and a button to retrieve the 10 numbers and put them in the list box then the other button puts the highest and lowest number in the 2 labels
(I am not sure how to display line numbers in my code on VB2010, please if you know tell me and I will edit the post)
I was just wondering what is the meaning of placing the '$' character after a function call E.g.: Dim time as string = Format$(Now, "Long Time") And what is funny is that it is of no use (as far as I can see).
How can I get the items in my code from my listbox which is called "selectListBox" to a shopping cart called "cartlistbox", when the add button is clicked?
Public Class MainForm Private Sub MainForm_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
In my vb.net project, i use to add Datagridview dynamically into a tab control. tab pages's autoscroll property is set to true. i calculated the gap between consecutive DGVWs and pass the parameter in the location as like this. [Code]
supposing if i want to 7 DGVWS, say 5 DGVWs are placed finely in expected gap until i do the scrolling the vertical scroll bar. whenever i scroll the bar(vertical) to the downmost end and then again add DGVW into the tab page. unfortunately the 6th DGVW is placed somewhere down and the gap between 5th and 6th dgvw is enormous difference. what i understand is whenever the scroll bar is brought to the bottom most end, the drawing point is taken as the current top view. i don't want like this. Is there any setting needs to be take care.
I have second column as datagridviewTextBoxColumn column in the datagridview, after opening dot net form runtime, in first cell of this column , I am populating �-� character at third position with remaining everything blank. Requirement is cursor should be at first position in this cell.
But now what is happening is, as my second column�s first cell should have cursor after opening form, we are sending tab key from first column to second column runtime with SendKeys.Send("{TAB}") as result cursor is located after �-� which is not requirement , cursor should be at first position in cell.
I have created football (American) play creator. When the user is satisfied with a play he has created it is saved it as a file with a .play extension. What I want to do is to cycle through all the files in a folder (probably named after the team), and place each one that has the .play extension into a CList (of ClPlay) collection.I have been able to successfully load one play at a time by using this code...
Dim fs As Stream = New FileStream(diaOpenPlay.FileName, FileMode.Open) Dim bf As Runtime.Serialization.Formatters.Binary.BinaryFormatter = New Runtime.Serialization.Formatters.Binary.BinaryFormatter() Dim Play As CLPlay Play = CType(bf.Deserialize(fs), CLPlay)
...but that was when a specific play was selected from a load dialog box. This time I want to load all the plays in a folder and store it in a collection, and I'm not sure how to modify the above code to do that.
I have been trying for ages to put an ActiveX control on a windows form for a CCTV camera I am using. I have registered the control with windows, added it as a reference to my VS2008 project and now it appears in the toolbox.When I put the ActiveX control on the form I always get an error saying "Failed to create back buffer surface" The control is added to the form however I can not get it to work and I suspect it has something to do with this error.I have an example project from the developers of the camera that does not have this problem, i.e. I can add the ActiveX control with no problems, however the program is in C++ and I am using VB.Net.Is there anything else I need to do to stop this error from occurring?I am using a CCTV camera from Zavio (F521E). The ActiveX control is called AxVideoView.ocx.