Modifying Parent Containers Before Runtime?
Jan 31, 2010
i'm working on a program and i'm working with panels, and i'm very frustrated because I want to bring a panel to the front of the form but because of its parent it is locked into another panel.... in the properties for the panels there is no Parent container option though the only way i know how to modify parents is during runtime like this Panel1.parent = Me
View 3 Replies
ADVERTISEMENT
May 7, 2012
since upgrading from 2008 to 2010 i have seen an issue where i pause my vb.net project,modify some code, resume, but the app does not execute the new code, it continues as if nohthing was changedery strange, very frustrating
for example
msgbox("1")
if i pause my app and change this to
[code].....
View 16 Replies
Mar 16, 2011
Locality Not repeating code..Modifying program means modifying one aspects.
View 11 Replies
Aug 29, 2009
I'm making a custom control that can be dragged around and it is semi transparent. I need it so that while it is moving (the mousemove event) that if it intersects a control that its parent becomes that control. I tried to have it iterate through all the controls and if control.bounds.intersectswith me.clientrectangle then me.parent = control type thing, but it did not work.
View 1 Replies
May 5, 2012
I want to program a water supply pipeline network in a treeview control. It has five node (junctions). The parent-child relation is based on a parameter (say pressure). Initially, the node 1 is parent and its child nodes are 2 and 3. The node 3 has child nodes 4 and 5. At run time the pressure changes. Now, node 3 is parent and its child nodes are 1, 4 and 5. The node 1 has child node 2.
View 7 Replies
Oct 25, 2009
I migrate between C++ and VB.NET in my coding ventures... which leads to the occasional confusion about when something is by value or by reference in VB.NET.Let's say for example that I have an array of MyObject which is populated with a bunch of objects.
dim MyArr(5000) of MyObject. let's say that the information from this array travels throughout various data structures:
dim MyList as new List(of MyObject)
for i as integer = 0 to 5000 step 1000
Mylist.add(MyArr(i))
next
Under the above scenario, I believe everything is by reference. If I extract an entry from "MyTable" and modify its MyObject Members, I think that the original in MyArr will be modified.However, I have run into situations where I thought something was by reference, and it was by value. Are items always added to containers by reference, or are they sometimes added by value?
View 3 Replies
Dec 17, 2011
How do I go about looping through all the controls within a container, and all the controls in the container of a containing control, and so on.
[code]...
The following only retrieves -Panel and none of the other controlsFor Each cntrl As Control In Me.Controls Next How can I retrieve them all in a For Each loop without an If/Then for every level in the stack?
[code]...
This is so far the best method I found of doing this.
View 1 Replies
Nov 26, 2011
i have a treeview which has a bunch of parent and child nodes preset at design time, there is 1 parent node tho which is called developer, that i want to add child nodes to at runtime.When the form first loads im trying to have it check a text file and for each line in the text file add the text/string from that as a child node tot he 'developer' parent node.
vb
Dim reader As String = My.Computer.FileSystem.ReadAllText(Application.StartupPath() & "ConfigDevs.txt")
Dim strs() As String = Split(reader, Environment.NewLine)
For Each s As String In strs
[code]....
Thats what i have so far, how can i set it so 'Dim parentNode As TreeNode = ' points at the 'Developer' node?
View 1 Replies
Feb 15, 2009
I want to do a container that seems like this: Wich containers must use?
View 1 Replies
Jun 8, 2011
I was wondering if there is a way to group controls together without using any containers such as panel, group box, or container.
View 4 Replies
Apr 14, 2012
Been doing web development for the past 2 years - so I'm a little rusty (and I just switched to VS 2010 from 2008 so maybe something new is available)... I have 4 toolstrips floated to the top of a form. And I have a picturebox below - filling the whole form. Unfortunately the picturebox is "behind" the toolstrips. I want to split the form so that the top of the form holds the 4 toolstrips and the picturebox appears below them.
What would be the proper container to put this mess into so that autosizing is the easiest? The toolstrips will most likely be "turned off and on" during the running of the app.
View 2 Replies
Oct 22, 2009
How can I place a BG image on the tabs only (title area of tab)? I am also finding it dificult to change the tab text font, since it is changing the tab body font not the tab titles........??
View 2 Replies
Feb 10, 2011
I'm working on a winform which contains several controls like textboxes, radio buttons, datagridviews... All of these controls have been added to a main group box called gbDataEntry. My problem is when the user is seeing the form, I set gbDataEntry.Enabled = False but I want to enable some controls like DataGridviews so the user can scroll them. After disabling gbDataGridview I set DataGridView1.Enabled = True but it seems that the datagridview does not respond to this line. Why?
View 1 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
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
May 27, 2011
I know how to do it individually but not sure if it's possible to merge into one.
I have 6 containers that contain either Checkbox or RadioButtons.
Struggling sending the type of control and also wondered do i really need to call clear 6 times? Can't VB search each container for a control that can be checked?
vb
#Region "Form Events"
Private Sub ClearPizzaCreation(Of t As Control)(ByVal root As Control)
For Each ctrl As Control In root.Controls
[Code]....
View 6 Replies
Jun 20, 2010
In the toolbox, under Containers section, there are some "Layout" controls. What's the use of them ?
View 6 Replies
Dec 3, 2009
I have a core EXE I wrote to serve a series of purposes. Another editor that goes along with it needs to repackage that EXE along with the script that EXE interprets. That is simple enough.
However, I need to give users of this stuff the ability to give that repackaged EXE an icon of their own choosing, but they do not have the source code to manually compile that EXE.
I know some magic with file streams and binary manipulation could do this, but I have the sinking feeling that that's pointlessly doing this the hard way and there may be a better way. Maybe the EXE itself can reset its own app icon per instructions given to it.
View 3 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
Aug 28, 2011
I use this code to delete rows from dgv but what about modifying
View 1 Replies
Aug 23, 2011
I found a CSS file while I was searching for how to create tabs without using images. I came across CSS Tabs 2.0. which serves my purpose.However, now I need to customize it to fit my asp.net page, and I can't seem to be able to get anywhere.The CSS file uses a
<ul and an <li
I am using a Table with <tr> and <td>
This is the sample code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">[code]......
View 1 Replies
Jan 11, 2010
I have to convert this as stated. I am trying to retrive the next position line in an .txt file based upon a user's integer.Basically retrive the next .txt line from user input to an lbldisplay.
Option Explicit On
Option Strict On
Option Infer Off
Public Class frmMain
[code]....
View 2 Replies
Mar 1, 2012
I am populating data form database in combobox. This data is in the form of numeric codes like 112, 113,
The thing i want to do is on selecting some code like 113 from combobox, it will display it as ABC113 in the combobox.if code like 114 selected from combobox, it will display it as ABC114 in the combobox.
I don't want to store this modified string in database.
Please help me to achieve this.
Provide me some sample code or link for simple combobox or combobox in datagrid.
i think there is no change in code in both above cases.
View 7 Replies
Sep 25, 2009
I have a ComboBox that is bound to a List(of T).Now I type-cast the ComboBox.DataSource into List(of T)and add some more elements in the List.The items collection of the ComboBox doesnt get reflected and the new element does not show up in the ComboBox. Am I missing something ?
View 3 Replies
Sep 1, 2011
I've got to do some special things with a RichTextBox. I have to add syntax highlighting and I need
to be able to find out what character was added/removed/inserted at what position every time a key
is pressed. Is there some way to edit the existing, or is there a open source (.net compatible,
preferably VB.net) available for download? I've tried making my own, the problem is, it has to have
every function normally available and I don't have enough time to implement all of that.
View 1 Replies
May 26, 2011
I am trying to add a parameter to the deleting event of an ObjectDataSource as in the example below from msdn. I generated an event handler for the ObjectDataSource's deleting event, and it had the same signature as in the example, however, when I try to clear the paramsFromPage as in the example, I receive an error stating that
View 1 Replies
Mar 22, 2011
I have some code to create a Virtual Directory programmatically.
I need to edit handler mappings of framework 2.0 to use .net 4.0 (basically run .net 2.0 code under .net 4.0 CLR).
The code below works fine under win 2003 server, but on Windows 2008 server webservicefactoryHandler2.0 is renamed as webservicefactoryHandler4.032_1245.
I don't know how to access/edit this name or infact retain the name and just change its value to Microsoft.NETFrameworkv4.0.30319aspnet_isapi.dll from Microsoft.NETFrameworkv2.0.50727aspnet_isapi.dll.
Dim scriptMapVals As PropertyValueCollection = VDir.Properties("ScriptMaps")
Dim objScriptMaps As ArrayList = New ArrayList()
Dim frameworkVersion As String = "4.0.30319"
[Code].....
Update: @kev : So basically you are saying to use different code for different version of IIS right? Well while using import "Microsoft.Web.Administration.dll" , do i need to pack it up in my build ? or this is part of all IIS7.0 installables? as Some poeple could have IIS7.0 on Windows XP.
View 1 Replies
Aug 9, 2011
Why does QueryBuilder modify my query? Is there a workaround? When I enter the query below, QueryBuilder modifies the query to the more complex version below, requiring additional parameters for the FillBy method. Any additional parameters adds an exponential amount of complexity to the modified query.
[Code]...
View 1 Replies
Aug 16, 2011
I am modifying an existing application in VB .NET. In one routine, I have added a reference to a class in a newly-referenced class library project that is part of my solution, and now I get run-time FileNotFoundException messages when the program attempts to access this routine while debugging. The error tells me that the class can't be found, what's up with that?
To be clear: If I remove the lines of code relating to the new class, I no longer receive the exception messages. If I add them back in, here they come again! I have referenced the class library in the project containing this routine. The class library is building properly (other projects reference same library, and use it more extensively), and the project is referencing the class library's .dll file in my "debug" folder. I get no errors from other routines that use this new class (thus far). I get no errors in the Error List of the IDE.
View 1 Replies