Remove Remove Statics And Use Delegates Refering To Class?
Jan 11, 2011
Just had to remove remove statics and use Delegates refering to class. i have got a little problem in one of my project.I need help to resolve it.My application Connect several FTP server with the same Class.I'm using TCPclient for few specifics Commands.The problem : All threads call the same TCPclient wich can't connect several server at once.I would like to create a New TCPclient for each thread.
[Code]...
View 8 Replies
ADVERTISEMENT
Oct 10, 2011
I'm trying to remove individual nodes from their parent, I tried the Remove method but it doesn't seem to be working. How is this done? Is this a bug or what?
Sub Main()
Dim xml =
<?xml version="1.0" encoding="utf-8"?>
[Code].....
View 1 Replies
Feb 17, 2012
I created a Class that inherits List(Of TKey, TValue) and adds a few functions. Its purpose is not to add items to it at runtime, but when it is initialized. I would actually like to remove the add/delete methods from the class (as it currently exposes them from the inherited class).
[Code]...
View 2 Replies
Dec 19, 2010
I need to remove the tag which has class value "footer_1". i struck with writing regex for this.[code]
View 1 Replies
Jan 14, 2011
I've wrote a class library in vb. it only has a class called MathEx. Now when i add a reference to a test project, i had to refer to the class as MathEx.MathEx is there anyway i could refer to the class as simply MathEx? (in other words i do not wish to have the default namespace added to my class libraries)
View 1 Replies
Jan 31, 2010
I guess this is a general question say I have created a taskpanel class and I have text space in a footer I created. How would I refer to say a button that may or may not have been put on their at design time. I have code like this:-Private Sub Button1_MouseEnter(ByVal sender As System.Object, ByVal e As System.EventArgs)
Dim rv As String
rv = ToolTip1.GetToolTip(Button1)
BorderContainerGood1._BorderDetails.footerDetails.Text = rv
[code]......
View 1 Replies
Jul 18, 2012
How can i remove an array item by selecting an item from listobx and press remove/delete button?for an example, if i want remove index 2 from listbox, so the array should remove index 2 item and move the item of index 3 to index 2 and so on.
View 7 Replies
May 3, 2011
I have the following on my interface / webform: <div id="mydiv" class="forceHeight" runat="server" />
now I have a dondition in my code behind where if a certain situation is true I need to remove the forceHeight class from this control. I know in C# you can use:
mydiv.CssClass.Replace("forceHeight", ""); I'm not so sure how you do this using VB? Intellisense doesn't offer me this option?
View 1 Replies
Feb 22, 2009
I'm trying to get a ComboBox to remove the 6th string in the ComboBox or an index of (5) but it doesn't remove it here is the function I am using:
if ComboBox1.items.count = 6 then
ComboBox1.Items.RemoveAt(5)
End If
View 3 Replies
Jun 21, 2010
why the code...
Form1.Controls.Remove(myCustomControl) ...does not remove the control.
Because whenever I remove a control and add it again, it does not Load but rather just changes its visibility from false to true and all the variables are not reloaded.
I tried to use .Dispose() but VB.net tells me thatit can't access a disposed object whenever I try to add the control again.
View 6 Replies
Sep 16, 2009
i am building this application for receiving data frm modem my application is consoled based, problem here is that its giving me an error in the line which is bold that invoke is not the member of mdm firstly i developed this with form, which has invoke method so i called it using me.invoke, now since i am at a console enviornment so it is not working..[code]
View 6 Replies
Oct 6, 2010
I am in the process of prototyping a small sockets application, which monitors IT infrastructure (due to in-house financial and deployment restrictions, I am unable to utilise an existing commercial or open-source solution). Basically, I have a server application and associated agent process for communicating heart-beat data to the server. The server application implements a TCP socket class (TCPDevice), which is called from a WinForm. I am aware of the restriction on updating the UI from processes running on separate threads, and that the preferred technique for acheiving this is via the use of Delegates in conjunction with the Invoke method. Having had very little need previously for using Delegates (apart from of course std windows events and the BackGroundWorker control), I am at a loss as to how to do this in the context of my application, and would appreciate some assistance, although it has occurred to me that I could use the backgroundworker for marshalling updates to the UI.
Eventually the application will need to update a grid of devices via feeds from the defined agents, however for the purpose of this exercise simply updating a status bar on the UI will suffice. The section of the code which I believe is relevant to propogating the code to the form is contained in the OnDataReceived method.Below is a code excerpt from the protoype app which should put the above into appropriate context:
Code from the form:
[code]...
View 1 Replies
May 30, 2010
I've got a calculation, but if the user forgets to enter in any details, or if it is equal to itself, it comes up as 'NaN'.How can I get it to show another message if the result is to be 'NaN'?[code]
View 5 Replies
May 2, 2010
theres a bar with 'x for close' 'square for maximize' and '- for minimize'how do i get rid of that, i forgot what its called.like where it says 'form 1' for example
View 7 Replies
Jan 7, 2011
"Image.png"
How do I remove the .png part? My program seems to be having trouble with it..
View 2 Replies
Mar 27, 2009
What are Delegates and Multicast Delegates in VB.NET? How do I use them? provide a simple example to illustrate the concept.
View 1 Replies
Jun 18, 2012
Suppose I have a DataGridView called gridFiles.
For Each row as DataGridView in gridFiles.Rows
MsgBox(row.Cells("somekey").Value.ToString)
gridFiles.Rows.Remove(row)
Next
I will see message boxes, but only for every other row. What I think is happening is that the internal pointer for gridFiles.Rows gets off, because there is 1-fewer rows on the next iteration.
View 3 Replies
Feb 17, 2011
I have a DataGridView with 7 cells, in every cell I'm into if i press escape the current row is removed thou an event i made named Public Event EscapeOnFirstRowPressed with no problem, and brings me the control to each initial state. The general idea of this process is when all the cells are fulfilled then
[Code]....
View 1 Replies
Feb 9, 2011
In order to initialize my VouchersDGV Data Grid View I'm Using the following
DGV.AllowUserToDeleteRows = True
For i = 1 To DGV.RowCount - 1
DGV.Rows.Remove(DGV.Rows(i - 1))
DGV.Refresh()
Next
But when I'm runing it for the first time I take the error of {"Uncommitted new row cannot be deleted."} System.InvalidOperationException If I will continue and run my code and write a new row in my Data Grid and I will try to initialize again (now I have two rows, one has the data and the other is empty) I take this error {"Uncommitted new row cannot be deleted."} System.InvalidOperationException
View 2 Replies
Oct 15, 2009
This is my code i tried but it removes 2 lines not one
Dim b As String() = Split(TextBox1.Text, vbNewLine)
TextBox1.Text = String.Join(vbNewLine, b, 1, b.Length - 1)
View 3 Replies
May 28, 2010
I've wanted to add a tab (that works) but if the tab is already there i want to remove it.[code]...
View 3 Replies
Dec 16, 2011
I am trying to be able to find a delete a specific String.
If nameList1.Text.IndexOf(TextBox1.Text) Then
nameList1.Text = nameList1.Text + nameList1.Text.Remove(start, theEnd)
End If
I have start and end set to a value the user inputs
View 1 Replies
Feb 25, 2010
how to remove a image
View 2 Replies
May 19, 2010
how to remove a label from dgv show me how
[Code]...
View 1 Replies
Mar 27, 2010
In my code i create a textbox, in a event on a combobox because i don't know where it shall bee before the user have make a choise in the combobox.
I use this:
txttotal = New TextBox
txttotal.Name = "txttotal"
[code].....
View 2 Replies
Jun 7, 2011
friends Im using vb2005 an am BEGINNER in programming and I need to no how to remove my app from startup programs I use this code to add my app to startup programs so how to remove it?
View 4 Replies
May 13, 2011
I have a List which gets a Check Class like below:
[Code]...
View 4 Replies
Dec 23, 2009
I moved a vb project to a new computer. This one does not have Infragistic libraries installed. Apparently on the original computer it was installed, and the vb project must have some reference to it (see error bellow) even though I'm not using it in the project. So I am getting this error on the new computer.
[Code]....
View 3 Replies
Mar 4, 2009
1.Are exceptions used to indicate error rather than returning status or error codes.i need to remove the space between 1. and Are.So how could i remove the space? sugestions and samples are most appriciatable.
View 2 Replies
Nov 2, 2010
I ma using DevExpress controls (which doesnt matter for this example). I have a lookupEdit control and I never want the EditValue_Changed event to fire. Can I use RemoveHandler to do this? If so can someone give me a code example of doing this? Should I put RemoveHandler in the load event of the user control I am creating? Or does it go in the EditValue_Changed event of the lookupControl?
View 3 Replies