Get The Text From A Class?
Jun 30, 2011my point is to get the text from a class or something, see on image above
View 1 Repliesmy point is to get the text from a class or something, see on image above
View 1 Repliescan someone please help me with a textbox? I have created a new class and require this textbox field within a sub in the new class but i get Error1 'TextBox1' is not declared. It may be inaccessible due to its protection level.I have tried MyClass.TextBox1 = Form1.TextBox1 but I get declaration expected.
View 23 RepliesIf Class X is within the scope of Class Y, is X a subclass of Y?If Class A is a sub Class of B, then is Class B considered a super class of A?if Class C inherits Class D is Class D a superclass or parent of Class C?if Class E extends Class F then we can consider Class E a child of F?if Class G inherits Class H and is within the scope of Class I then who is the parent of Class G? Classes that inherits Class J and classes that are within Class J are all sub classes of Class J?
View 1 RepliesI have put this code in the global form Inherits System.Windows.Forms.Form. And then in the form that will inherit this from the global Inherits MenuStrip. "MenuStrip" is what the global form is called. But keep getting this error: Error1Base class 'MenuStrip' specified for class 'Lesson2' cannot be different from the base class 'System.Windows.Forms.Form' of one of its other partial types.
View 5 Replieswith this all previously defined earlier, book is another class with a public sub new and all is working perfectly well.However. Within the book class I've a bit of code which sets the author "invalid" if it is wrong (i.e. the name has numbers).How would I then check within myBook for an instance of invalid?i.e. assuming a string that can only be invalid or not if myBook= "invalid" then correctstuff=false
View 3 RepliesHow would i get text from a specific class in webbrowser control [code]....
View 7 RepliesIf There is a html code element like that: id"xxxxx" Class"yyyyy" name"zzzzz"
Usually, I know how to use the id, to click or fill text.
My question is, what If I know the id=xxxxx, can I get the text from class or name for that id, and the opposite?
I want to be able to save the yyyyy and zzzzz in strings, by knowing the id for the same object.
I have a class (see below)
Imports Microsoft.VisualBasic
Imports System.Data.SqlClient
Public Class ClientProfile
#Region "Variables"
[CODE]...
It is in the file ClientProfile I have placed in both App_Code and also App_Code/Models
In my code behind I have the following
[CODE]...
The last word, "ClientProfile" has the scary squiggly red line below it. It is not recognizing my class.Even the Intellisense is not picking up te class. Do I have to register the class file in any way?
it is possible to create a class based on text box, add some code to its events, say gotfocus event, and visually add this textbox to a form instead of adding it in code. Just like we drag and drop a textbox to a form from toolbox.
View 5 RepliesI'm having a little difficulty Setting the .text value of a Textbox in an MDIChild from a Subby in a standalone class.
I'm at this point:
[code...]
I know that the data exists because it displays in the Message Box ( MsgBox("first item = " & ds.Tables(0).Rows(0).Item("NameLast").ToString())) and the executes fine, but for some reason, I can't get the text boxes in LeadsMod2 (Open as MDIChild) to update.
i need to grab text from a class in my webbrowser and idk how to do it here is what it looks like class="Class Id">Text<"/div>
View 3 Repliesim currently writing a program calculates commute costs. How can i have the class that calculates the costs of the commute, to be able to change the .text value of a label?
View 1 Replies how to set the value of a Public Class variable to a text box entry?
I have a variable declared in the Public Class that was assigned to a public variable and I want to be able to have user entry via textbox.
If i change the variable to an integer and set it to textbox my program wont build.
I have quite a long java class and I need it displayed within a text box, with a scroll bar, in a powerpoint presentation. I have only just found out that powerpoint can use vb to create macros. I would want it displayed in the powerpoint presentation correctly formatted etc. [Code]
View 2 Repliesim still stuck and i really to get past this and move onto the rest of my program. I'm trying to update a textbox with new text from another class on another thread. I can get this to work no problem on another thread with the same class, and on the same thread in another class. but not on another thread on another class. my code looks like this, when it is run to produces no errors but does not add the test to the text box, what is wierd is i had made some changes to the program to add multiplelines to consolebox.text and then checked console.text from form2 and it produces the values i added but those arent reflected inside in the consolebox for some reason.
[Code]...
I have a string which i need to parse using Regex class of System.Text.RegularExpressions. I need to find if the first 2 characters of the string are either "00" or "07" or "16" or "23".
View 1 RepliesHow can I create a class so that I'll just call it to my form:This is the code of my Add Text box button that adds multiple text boxes.
Public Class Form3
[Code]...
'This code usualy works when placed within the forms code, however I am wanting to create a class with several text manipulators. The error says System.windows.Controls is not defined
Imports System.Object
Imports System.Windows.Forms.Form[code].....
I have a code in website:
<h1 class="mf_dI mf_Hblack mf_vmi">
Blabla</h1>
How to get this "Blabla" to my application?Dim rx As New Regex("(?<=<h1 class=""" & Regex.Escape("mf_dI mf_Hblack mf_vmi") & """>).+?(<=</h1>") MsgBox("Name: " & rx.Match(WebBrowser1.DocumentText).Value)
but it don't works.
And. How to get picture from website to picturebox if this picture is in the table like <table style="background:url('/blabla.png') no-repeat"> ??
I have a custom collection class that is bound to a data grid view object.I'd like to try to do the following from the custom element class if possible.
1) I'd like the name of the column header to be a different text than the name of the public property in the custom class. i.e. Trade_Name should read "Trade Name"
2) I'd like to try to be able to manipulate the text formatting/color of the individual collection class element's items. i.e. for a profit/loss field I'd like to have the numbers be red if they are loss and black of they are profit. I know I could do this from the datagridview object in the form, but that can be cumbersome to raise events etc.
I have a problem to solve and not quite sure if the way I think is correct.
I have a main form class MainForm the class has got: a variable call Value and a label called LabelValue
Now I would like to automatically update LabelValue every time the Value changes his value
in the richtextbox(from my class) gotfocus -what I need is the richtextbox.text to also be in a different textbox on the form. the richtextbox(readonly) is from my class that has mousedown and mouseup code and more than one richtextbox (small in size) will be on the form in a container so when user clicks on one I need the richtextbox.text to also be in a regular textbox (not from my class) and not located in container. And I need to read a property I made in my richtextbox class.
[Code]...
Suppose I have this Dim proc As Process proc = Process.Start("Notepad.exe", "C: est.txt") Now, if I want to use Notepad.exe to open another text file (ie. C:2ndTextFile.txt) without closing it, how am I going to do it?
View 7 RepliesI'm using a barcode reader which emulates a keyboard with swedish layout. I'm using RegisterRawInputDevices to create a lowlevel hook, catching windows messages and checking which device that sent the keyboard input. If it's the barcodereader, I would like to store the input. I receive the key input one by one in this class - how do I translate this into a string? If the character to be sent is an #, then the keys sent are Shift+3.
View 2 RepliesI have two forms Form1 and Form 2. I am passing a function with three values from Form1 and want the load event of form2 to trigger this function.. Basically I want to "paint" the values of qseq, midline and hseq on form2
Public Class Form1
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
[Code].....
When I run this, nothing gets printed on form2 as when load event is triggered thee drawstring method is not called. how can I call drawstring from load method as drawstring takes in arguments and is called from Form1 class.
Dim a as Type=GetType(className) would gimme the type. But I have only the name of the class as string. I want something like GetType("class1") which would return the type.
View 2 RepliesI can't make difference between public class and private class and friend and protected friend class.
View 1 RepliesI can do this without problem.
Class A
End Class
Class B : Inherit A
End Class
Dim Obj1 As A = New B
so I used to mess around with C#, just a little. And someone had helped me make a class for Visual C# that was supposed to do the math parts for "internal structure" - which the program used for a part of its calculations and screen... Basically there were 2 options. Endo-Steel and Standard. The user would use a updownbox to determine weight of the machine and then internal structure was a % of that total. If it was standard then it was 10% of the overall weight, if it was Endo-Steel then it was 50% of standard (so 5% of total weight) rounded to next 0.5 (so .25 was .5, 1.25 was 1.5, 1.75 was 2.0, etc). I have the code for the C# class file for it, but want to make it in VB.
[Code]...
I need to create unit testing project for my current website. The currentw ebsite si written in VB. All unit testing examples are using interface to create mock object. My current VB class does not implment any interface. Can I add interface and implement it to my current class and functions without affecting or changing codes to any pages in my website that call the functions? For examples my current class is like:
[Code]...