Place A Label Box / Other Component In The MDI Parent?
Dec 15, 2011
I have an issue when I place a label box / other component in the MDI Parent form and then open any child form the label box/ other component displayed in child form (Show in SpanShot),
View 2 Replies
ADVERTISEMENT
Dec 15, 2011
I have an issue when I place a label box in the MDI Parent form and then open a child form the label box highlighted in child form?
View 6 Replies
Dec 1, 2010
I have developed a Component and I want it to be able to detect when it's running in the IDE.
Or, let me rephrase that - I want my component to be able to detect when its parent form is running in the IDE.
I can use .DesignMode and a few other methods to detect when my component is running in the IDE (For example when my component is placed on a form etc)
But when the parent form is executed from within the IDE then .DesignMode returns false.
Is it possible for a component to detect if its parent (the form) was started via an IDE/Designer ? or via the command line/start menu or what ?
View 3 Replies
Jun 30, 2011
how can i place other form(child) at the center of midi parent in vb.net windows application i m gettin it at the top left position
View 3 Replies
Mar 5, 2012
[URL]
Basically here's what I want to do.
Input data
ID Item Name
1 Apple01,02,Banana01,02,03
2 Spoon1,2,Fork1,2,3,4
[Code]......
View 1 Replies
Apr 13, 2010
I have a program which moves a label inside the panel in a four direction(up,down,right,left) when i click the relevant button.For this i have used the following code.Its working well. But the thing i want is the label should be placed in the center(0,0) of the panel when the form loads.
vb
Public Class Form1
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
[Code].....
View 8 Replies
Jan 15, 2009
I have to create a textbox and a label component. The textbox object will have to behave under the following conditions: 1. It will only accept letters and the ENTER key as input.
2. As an extension of condition #1, a message will appear whenever an invalid key is pressed
[Code]...
View 14 Replies
Mar 8, 2011
So basically what I am trying to do is, take the id value of the row that is clicked and place it in a label outside of the gridview, however, when I do this the label come up with no text. I think my problem is that x is not being set to the exact row that is being clicked.
Dim x As String
Protected Sub GridView1_RowDataBound(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewRowEventArgs)
If e.Row.RowType = DataControlRowType.DataRow Then
Dim id As Label = CType(e.Row.FindControl("id"), Label)
Dim button As Button = CType(e.Row.FindControl("button1"), Button)
[Code] .....
View 2 Replies
Nov 12, 2009
A fiend of mine and myself are working on a simple game of tic tac toe and we can't for the life of us figure out the computer part. Can you guys help?
What we want to know is, if the label has X or O in it and therefore is occupied then the computer should place at random an X or an O in an empty label.
View 9 Replies
Feb 6, 2010
I have an assignment that requires me to use a variable from an InputBox and place it on a label. That variable needs to be formatted using the P0 formatstring but results in the folowing error: Error2Option Strict On disallows implicit conversions from 'String' to 'System.IFormatProvider'.
Here's my
Option Explicit On
Option Strict On
Public Class MainForm
[Code].....
View 2 Replies
Dec 13, 2011
Trying to use icons on my visual basic form but don't know how to place the icon and label so that they are linked and when the are clicked they get highlighted and stuff like the basic desktop icons.
View 2 Replies
Jan 7, 2011
I'm creating a new (or more) tab(s) with a multi-line textbox (filled) at runtime and some text is added. Each time I change/select a (new) tab it needs to search for a string and if found...blablabla.How do I get the control to search in?
View 8 Replies
Jul 13, 2010
How do I despose (get rid) of a single Label on a Parent control? Hendri Bissolati noviceprogrammer@vodamail.co.za
View 14 Replies
Nov 18, 2011
I'm looking for a way to insert a label into a flowlayoutpanel without it having to scroll horizontally. Therefore, autosize is out of the question. I have it right now so it doesn't exceed the flowlayoutpanel using the
[Code]...
View 3 Replies
Oct 12, 2011
i'm trying to place a label with "backcolor = color.transparent" over a progressbar, but it seems that the progressbar becomes transparent too, how can i avoid this?
View 6 Replies
May 9, 2012
I am new to the forums and just started to learn vb.net. Currently I am making a project that require a lot of text. Since I would need over 20 labels and do not want to hide every single one, is there a way to place text on a specific place on form through coding. Then, I could just make it a sub and easily hide the text and reveal it
View 2 Replies
Feb 3, 2011
I am converting an old Vb6 solution to .net 2.0 in vs2010. I've been working in C# for about 3 years now and .net for 5. I don't recall having this problem in C#, but if I want initialize a readonly collection of DerivedControlFoo Is there a clean way to do it besides creating a sub to do it all off somewhere else? I'd love to be able to do it at the class level at the declaration for readability and simplicity.
View 1 Replies
Mar 1, 2010
Create a DLL component for database operation and use created component in another project. Required methods, events and properties
a. Connect
b. Add
c. Delete
d. Save
e. Record navigation (first, next, previous, last)
f. Properties for all database fields
g. Events for validation of database fields.
View 1 Replies
Mar 11, 2010
Like I imagine everyone, I often have problems navigating my code because the flow can jump from place to place. For example, if my code calls routine1, and I then want to go to routine1's code, I know that I can click in the dropdown menu and it will take me to that sub. But wouldn't it be easier if I could somehow right click on the call to routine way and select something like 'take me there' which would transport me from the function making the call to the code for the function being called? Then it would be easy to hop from place to place.
View 1 Replies
Jan 8, 2010
I've created a component whose name I'd like to be able to change while editing in the component tray. I've added a Designer action for a name property, but now I'm stuck.
Looking at the property grid, I can see that the name property is parenthesised, indicating that it's not a regular property.
View 1 Replies
Dec 18, 2011
How copy folder with its content from place to another place. example from C: to D:
View 15 Replies
Aug 3, 2011
This is a challenging one that got me stumped while I was coding today. Suppose I am running the Sub Test1() and Test2() and would like to print out the value of the Shadows method of the instance of the object I am passing in to TestCall() (see below - it is clearer) using the following restrictions:
Can't change the contents of Class A, B, and C
Can't change Sub Test1() and Sub Test2()
TestCall() can't have an if, select case etc. statement that tries to figure out the type
[code].....
View 2 Replies
Jun 24, 2009
I have a main form, and some sub forms, and each sub form can have some sub forms. When I have multiple sub forms open, and I try to get data from the parent form, it returns the data from the wrong parent form.For example I have two instances of Mainform.subform running. If I do something like this in a child form of one instance of the subform. It returns data from the other subform.
dim l = Mainform.subform.listofdata
Edit:I am using visual Studio 2008. Winforms, form designed using designer. In my mainform I am doing this
Protected Friend frmMain as Mainform
frmmain = new mainform
In frmMain I am doing this
Protected Friend frmsub as new Subform'
frmsub = new subform
[code]....
View 1 Replies
Jun 21, 2011
My form cant move i set none to formborderstyle and made my form transparent using
CODE:
So now i cant move my form from place to place.
View 4 Replies
Nov 30, 2011
I am learning Visual Basic 2010 and I am working on a space combat program for my own education and amusement (a simulation of the Honorverse space combat system). I have a routine to add ships to the enemy ship roster and then place them randomly on the viewscreen. When I step through the sub with the debugger, it works fine, but when I run it without stopping, it wants to place all the objects in the same place on the screen. It's actually assigning 2 random numbers pertaining to the size of the viewscreen and assigning those numbers to GameObjectScreenLocation through GameObjectWorldLocation.X and GameObjectWorldLocation.Y. The objects are fully initialized to 0 in their constructor, FYI. Code is below:
[Code]....
View 3 Replies
Apr 10, 2010
I would like to know if there is some simple code to release a child control from it's parent control, without having to name the parent control. In pseudocode, I'm looking for something like this:
[Code]...
View 2 Replies
Oct 12, 2011
I have a listview "CategoriesList" and i have a repeater "NewsRepeater" inside the listview "CategoriesList"
<asp:ListView ID="CategoriesList" runat="server" DataKeyNames="CatID" DataSourceID="CategoriesListODS"
EnableModelValidation="True">
[Code]....
how to pass the catID from the listview and make it as SelectParameters in ObjectDataSource "NewsRepeaterODS"?
View 1 Replies
Jun 27, 2012
I have 2 pages. parent.aspx and child.aspx. In parent.aspx, i use colorbox and send some value for the child.aspx to popup.
[code]...
child.aspx will popup and shows ASPxGridView base on the value passing from parent.aspx. User will select the data from ASPxGridView. the selected data need to send back to the parent page. I code it in child.aspx.vb page.My problem is how can i get the value from child.aspx.vb and pass it to parent.aspx ?
View 1 Replies
Jun 27, 2012
any node above the current node in an hierarchical tree example the parent,grandparent,great-grandparent or the rot node are all ancestors of anode within an xml How might I get the grand parent and great grand parent of a current node xml.I'm using VB.Net in an ASP.NET application.can i have something like XmlNode greatGrandParent = myNode.ParentNode.ParentNode.ParentNode.lastchild.lastchild
View 2 Replies
Aug 9, 2009
i am using vb.net i just wanna ask if we can place a picture in a picture box in different places... for example, we place a picture in the center of a picture box then we place another picture on the left side of the picture box. is it possible?? and also can we use one picture box that can contain more pictures or images on it??? to make it clear, it is a drag and drop senario, first you have to drag a picture from a toolbar for example, then you are to drop it on the picutre box, the problem is, we have to drop more than one picture in the picturebox, so is it really possible?
View 2 Replies