2 Group Box Components And Both Are Same Size,font,location And Visible Is False - Both Component Cannot Locate At Same Location
Mar 13, 2012
I have 2 group box components and both are same size,font,location and visible is false. When i click button2, the groupbox1 won't appear(the group box2 is on bottom n group box1 is on top).
Example:
button1
groupbox1.visible=false
groupbox2.visible=true
button2
groupbox1.visible=true
groupbox2.visible=false
Because i want to show the different,so the location have a little different(actually both are same location). I think my code is no problem. The problem i guess is both component cannot locate at same location?
View 6 Replies
ADVERTISEMENT
Jun 14, 2010
I have the Context Menu Options like ( Small Font , Large Font ) based on the selection I want to change the size of the Font in the Controls,Control's Size & location(x,y,height,width). The resize of the controls should not affect the look and feel of the forms.
View 5 Replies
Jan 19, 2011
I have the following code inside my MDI parent form:For Each crl As Control In me.Controls
crl.?????
Next
The code mainly used for getting some info from all child forms.I can get all the general property like size, location by crl.size or crl.location. But if all the forms have an own variable like myTxt. How could I get this own variable by this For Each method?
View 2 Replies
Aug 15, 2011
I need to know how do i locate a form window on custom location at the desktop[code]..
View 3 Replies
Sep 24, 2009
When I tried changing the location of the group box by:
MyGroupBox.Location.Y = 200
I get an error message, "Error 1 Expression is a value and therefore cannot be the target of an assignment. "
What am I doing wrong?
View 3 Replies
Jul 14, 2009
I am doing electrical circuit simulation in vb.net . i want to store each component in a particular address location. If i click the relay component then pop up come and ask the location then if i give 0001 it will store in that location .i don know how to do it...i give a model image in the below link,
[Code]...
View 3 Replies
Jun 6, 2010
I created a small project in VB using a SQLExpress db. So far everything has been fine. I need to take the little I've done to the customer for a look and feel approval.
When attempting to publish the project, I get the following errors:
"The install location for prerequisites has not been set to 'component vendor's web site' and the file...." You know the drill.
The two files are SQLEXPR32_x86_ENU.EXE and SQLEXPR_x64_ENU.EXE
I have downloaded the files and put them in the following directory:
CODE:
When that didn't work, I copied them to
CODE:
Same error
What's different about SqlExpress than other prerequisites?
View 2 Replies
Aug 5, 2009
I have a number of textboxes and labels in a panel which has to scroll in order to view them all. The user is then able to scroll down and click on one of the labels which has a textbox that appears so the user can change the corresponding value in the label. For some reason, if the user has to scroll down at all to any of the labels that are initially out of view, when they click on the label the textbox appears far below as if it was at its initial position and not directly where the label currently is.
View 11 Replies
Jul 17, 2009
I am trying add the prerequisites with my setup i have set the prerequisites download location to the same whwere my application is and now i am getting this type of several errors.
Error 1 The install location for prerequisites has not been set to 'component vendor's web site' and the file 'DotNetFX35SP1dotNetFX20aspnet.msp' in item '.NET Framework 3.5 SP1' can not be located on disk. See Help for more information. D:SETUP PACSSystemPACS 1.1.1PACS 1.1.1PACS 1.1.1.vdproj PACS 1.1.1
I had did some search on web but they all say to make change in Product.xml file but they did not say any thing about what to change. The prerequisites i am trying to add are.
windows installer 3.1
.net frame work 3.5
SQL server express
setup build fails every time when i try to do this.
View 1 Replies
Dec 19, 2011
i am using an unbound datagridview so i can dynamiclly add rows. all that is working fine. but the grid is not is the location i have coded.. i am using the defualt form as a base then coding the unbound stuff in.. should i just create a blank class file and do everything? the only problem i am having is the grid must bees in the correct location according to the pixel point that i have given it. Right now it is placing the grid at point (0,0) no matter what point is entered on the line for location. so what am i missing??????
View 3 Replies
Oct 22, 2011
I got a error when I run this code:
Dim btch As String
Dim LeftPart As String
[CODE]...
It says index and location must refert to a location withing string
View 1 Replies
May 3, 2010
dim cn as oledbconnection
cn = New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:valid.mdb")
[code]......
View 4 Replies
Dec 10, 2009
we have a user that my program works fine for.. and another that it just crashes for.. they get this error
"You cannot start application <App_Name> from this location because it is already installed from a different location."
then they run it up again and it comes up.. and then just closes..in reading some stuff online it says its a framework 2.0 sp 1 issue ?these pc's have 3.5, but my program uses all 2.0 stuff..so is this a 2.0 sp level issue ? or should I make my programs start to use framework 3.0 instead ?
View 6 Replies
Nov 9, 2009
I was using this old method of creating a bunch of rectangles when I need to get the location of a certain point within a grid so I could draw images on the grid. The thing is, I don't want to use rectangles, I want to be able to just round the location as if I were using rectangles. I need it to be able to round the point (66,70) to (50,50) so if you can imagine a grid and the mouse position being within that square in the grid, I need to get the location of the upper left corner of that square.
View 5 Replies
Jul 21, 2009
I have encounterd a problem when trying to re-enstall a program i have writen in vb 2008.I get the following message:"You cannot start application Shell from this location because it is already installed from a different location."This program is to be used on many workstation computers and i need to be able to update any changes by just reinstalling the program, no uninstalling needed first. If the program was installed from a cd first and needs to be updated from a flash disk this error will be a problem, if the update is from a cd as well then there is no problem.Is there a way to change the installation package to ignore where the program installs from and just update itself?
View 2 Replies
Jan 27, 2010
I'm currently working on a project that has a simple game . I want to change the location of a label ( middle ) to another location when a key is pressed down. But there is something wrong with the first of the If statement .I've underlined "point " because it has the error.
Private Sub Space_Navigator_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles Me.KeyDown If e.KeyCode = Keys.Up Then If middle.Location = [u]Point[/u](156, 655) Then middle.Location = New Point(156, 547)
End Sub
View 2 Replies
Sep 5, 2009
If I know the hwnd of a window, could I get it's position and location based on my screen size. (I mean, size and location in pixels)
What I want to do is capture the screen, but only capture the handle's area.
View 1 Replies
Aug 24, 2009
Was just wondering if there is a way to set the location and size of a form in the same line ... as i have a form that takes a little while to resize all components ... and when u tween the form's location and size at the same time it chunks as it sizes.
View 1 Replies
Sep 24, 2010
I wam trying to create a application that will take a screenshot when the timer ticks over.What I need to find out is how do i Make a type of 'crosshair' system for the window that the screenshot will be taken.ike I will have my main VB app and the end-user will drag the crosshair over lets say, Their iTunes libary and the ap will get the height, width of the iTunes and then take a screenshot JUST OF THE ITUNES program, not the whole dekstop.
View 23 Replies
Apr 3, 2009
i need to developer project from vb.net to vb 6.0 and i have already project in vb.net and i have to convert in into vb 6.0 but i need same GUI format,but i get problem that is in vb.net control height and weidth is in pixel formate and there is vb 6.0 i dont know so i copy control's height and weidth or size so i got there is difference in vb 6.0 so any one have idea how to convert vb.net location pixel to vb 6.0 location format .
View 1 Replies
May 3, 2012
I'm trying to copy a picture from one location and paste it into another location however VB throws out the following error
Exception from HRESULT: 0x800A0046 (CTL_E_PERMISSIONDENIED)
both locations are on my local computer. So not sure what is causing the problem.
Here's the code
Module CPASU_SPC
Sub Main()
Console.Title = "MOARW Programs"
[Code]....
View 8 Replies
Oct 8, 2011
I have come across a problem with visual studio 2010 & vb.net. i have a few custom controls on the form and few standard controls. When i build the application, the custom controls automatically change size and location. Anchoring and Dock properties are fine. Anchored to Top Left without dockstyle. Even if i fix the location and size in design mode, after i run the application the controls again change back to weird position.
View 2 Replies
Jul 22, 2009
I make 3 datagridview control in 3 tabpages with same size and location, they stack together.I can tick the related datagridview to show such each datagiridview.But when initialize or tab selectedIndex change event, change from dgv to another dgv. dgv display in mess, all border line and color are not shown property.When I resize my main form cause dgv resize, it display fine.
1)Is it bugs for dgv ?
2)I try to run the Main_resize before but also not ok , need to manually regulate the main form size. [code]
View 5 Replies
Jan 5, 2012
I have been searching for a solution to this but I can't find one. I have played with the anchor and dock properties but they are not doing what I want, so here goes... I would like to place and size all of my controls on my form and then when the form is re-sized during run time (different resolutions, full screen/windowed, etc), have everything just scale up or down accordingly. Anchoring the controls to all four sides of my form re-sizes the control properly but it doesn't move it's location in sync with the other control's size next to it, they begin to overlap each other. Am I going to have to code my own scaling code for each control in my program?
View 5 Replies
Mar 14, 2011
im toying with an idea based round having controls end user movable at runtime, and having a function to save the current position/location of all the controls, so then i can skip through presets i already made as it were. Ill be using .ini files eventually (just testing with txt files to check it was a valid aproach) I can get all the info i need into the txt file, the problem is how to read it back into the app?
[Code]...
View 3 Replies
Dec 18, 2011
How to copy folder with its content from location to another location defined by FolderBrowserDialog
View 7 Replies
Jun 28, 2010
I have placed several PictureBox Images of different colored dots(which represent lights) on an image of a Christmas Tree. I can make the lights randomly flash using a randomGenerator and a Select case statement. However, the code is very long. There are 67 lights on this tree and the code is 71 pages long. There has to be an easier way to do this. So far I have tried the following with two images of lights just to see if it would work and it does not work:
Dim picLight(2) As
Boolean
For intX
[code]....
View 8 Replies
Jun 21, 2011
im using vb.net to open IE and go to a website... i can figure out how to size the window, but not change the windows location on the screen... how can i make the IE window position always 0,0
Dim oIE As Object
Dim hWnd As Long
oIE = CreateObject("InternetExplorer.Application")[code].....
View 3 Replies
Aug 14, 2009
I want to take a snapshot of the foreground window without using print screen key. So far the only think i can do with the foreground window is get its title but If i can get the size and location then I can get cordinates on where to set capture with graphics.copyfromscreen.
View 3 Replies
Jul 21, 2010
If using the following in an if statement I get an error: If trg.Name.Substring(4, 6).ToUpper <> ("ABCDEF") Then I get the error: "Index and length must refer to a location within the string. Parameter name: length"
I assume this is because the string (trg.name) is too small for the 4, 6 substring. What would be the correct method of working around this problem? VB.net Studio 2008.
View 3 Replies