Forms :: Creating Paragraph Styles Of Text In Window Forms Text Controls?

May 8, 2010

I am trying to build a NOTEPAD/WORDPAD like application with vb.net on visual studio 2008.

I need an option to define and choose (MsWord, or CSS like) paragraphs styles, such as: "heading1", "green quotes", etc.

View 1 Replies


ADVERTISEMENT

Forms :: Reference Text Controls In Other Tabs

Sep 2, 2011

i am building a tab control (using VS 2010 and 4.0 framework). on Tab 0, this works as expected:

Me.ddUE_B1.SelectedValue = Me.B1.Text <-- changes the combo box selection to what is in the label.

on the other tabs this does not work. when I do a messagebox to show, say, Me.Ea1.Text on Tab 1, nothing is returned.

Is there an issue with referencing controls on tabs that I am missing? In general, I will need to set combo box's value to what is in the database when the form loads.

View 3 Replies

Forms :: Creating Editable Text On A Form?

Jun 2, 2009

I am using VS2008, I need to update a vb6 application that I wrote a while back and make it more user friendly. [EDIT] I am not using any of the vb6 code, this is a complete rewrite.[/EDIT] The application basically creates ZPL based on user inputs, it sends the ZPL to the printer via the parallel port and we have our label. I know there are pre-written pieces of software that do this but I have a few other things going on that are not an option for a pre-written label application.

The task at hand at this point is creating a form which will display a mock-up of the label and allow the user to create text, rotate it, move it, re-size it etc. I will also have to add in image support a little further down the line but I figured i would keep it simple to start out. This is my first major project in .net (the company has been hesitant to spend the money until now and I haven't had the time to do much on my own.)

I think the best place for me to start would be with a simple form with a button that allows me to create text and edit it only. I am unsure of the best way to pull this off, should I be using a label, a text box with the design styles turned off or something altogether different that I may not know about?

To summarize:

a) What type of object should I be using?
b) How would I go about creating it?
c) How should I go about making it movable/editable at runtime?

As an aside, I am aware that the ThermalLabel SDK would probably be beneficial in this application but the company is not willing to spend anymore on this project.

View 2 Replies

Forms :: Creating Bullet Points In A Rich Text Box?

Apr 15, 2009

How can i create bullet points in a Rich Text Box?

View 1 Replies

VS 2005 Accessing The Controls Of Multiple Data Window(mdw) Forms

Oct 21, 2009

I have to make some automatization on a web server, I use Visual Studio 2005 Visual Basic Windows Console Application. I want to make a load/performance test of the web server, so I open several Internet Explorer instances, and I login the application, that is not a problem. But after that I have a mess on the page and I cannot make any more automatization...The composition of the page after the login is like this: I have the default form, another form and a multiple data window(mdw) controller, which dinamically can switches the forms on this part.

The problem is that I don't know how to access the controls of this mdw forms. I couldn't find much about this mdw controller and I am not an expert.

My code is here:

Imports System
Imports System.Diagnostics
Imports System.Web.Ui.Webcontrols

[Code].....

View 5 Replies

MDI Application MDI Child Forms Close() Error Creating Window Handle?

Jul 14, 2012

I'm in the process of converting a VB6.0 application to VB.Net (2008 Express). I have a MDI parent form, I'll call mdiBackground, and 4 MDI child forms, frmStatus, frmShow, frmQwerty, and frmSentence.The layout is as follows:mdibackground - has the menus at top and is a container for the child forms.frmSentence - appears at the top frmShow & frmQwerty - appear at the left and when one is closed the other one is in the same position.frmStatus - appears at the right, it has buttons which control when frmShow and frmQwerty are to appear I have a couple of regular forms that act as dialog forms. The Me.Close() works fine on these.

[Code]...

View 11 Replies

Forms :: Passing Several Textbox.text Between Forms

Jul 28, 2010

I use the code

Dim Selvk As New Selvkost2
Selvk.PassedText = TextBox29.Text
Selvk.Show()

[code]....

in my second form and the text passes. but I need to pass values from 20 textboxes. do I have to copy the code in my second form 20 times an declare passedtext2 and so on or is there an easier way to do this?

View 3 Replies

Forms :: Generate Text Boxes Programmatically Using Generated Text Box Names

Jun 22, 2011

i am trying to automatically generate multiple text boxes on a form with the following code

Private Sub CreateTB(ByVal x As Integer)
Dim y As Integer = 1
Do Until y = x

[Code]...

i need it to generate as many text boxes as the variable x states, so i used the do until loop thing. But i am stuck when it comes to naming the text boxes because obviously all the text boxes cannot share the same name. so i would like to know how to programmatically name each textbox uniquely.

View 5 Replies

Forms :: Reading File, Split Text And Write To Text Boxes

Jun 25, 2010

I'm trying to read a text file that contains info like this:

ACX-101-011 , J2168
BTXR-130A-013, D6733
AJ4-233-614, T8211

I want to split each line at the comma and write the left side to a textbox and the the right side to another textbox. I'm close, with the code below, but I can only post results from the first line in the file. How do I loop this and append the text results in each of the textboxes.

Dim TempFile As String
TempFile = "temp.txt"
Dim sw As StreamWriter

[Code].....

View 2 Replies

Forms :: Save The Text Box Values Of A Form To A Text File?

Jul 26, 2009

I have to save the text boxe values of a form to a text file almost like a data record. I will be saving an Employee First Name, Last Name, Dept Number, and Phone Number. This I know how to do using streamwriter.

next form which we have to use stream reader to load one record at a time. The form has a next button to load the next record. How do I seperate each record (I am sorry for calling it a record if this is inappropriate) when use streamreader and how do I load a record at a time.

I know how to open a file and use streamreader, I just don't know how to read one record at a time and move to the next one.

View 1 Replies

Force Visual Styles When Using .NET Forms Interop From VB6?

Jan 4, 2011

I have created a VB.NET Class Library that exposes some COM Interop sub routines. These in turn show various forms that are contained within the Class Library. When the forms are shown from VB6 they do not inherit the visual styles of the operating system and act like VB6 controls.

I gather that this probably by design but is there some way to force/control visual styles manually in the .NET assembly? I would imagine that if I use a manifest in my VB6 app then everything will use the correct style but I would like to be able to control this myself if possible because we are using 3rd party controls in VB6 that do not require a manifest.

View 1 Replies

Forms :: Show Text In Column In Rich Text Box?

Oct 15, 2009

I will show 3 columns of text in rich text box. i want show the column border with color.i can separate the texts with tabs or spaces but showing data in columns and cells will improve the visual of my program .

View 1 Replies

VS 2010 Get Text From A Textbox And Use That Text For The Second Forms Code?

Jul 18, 2011

Can i get text from a textbox and use that text for the second forms code?

View 1 Replies

VS 2010 Coding Forms - Creating Some Forms And Message Boxes?

Dec 25, 2011

I'm looking forward to reading and adding more to the community here. I've created a text based rpg. Next semester we are learning Visual Basic. I'm on winter break and I would like to get a head start on my learning. I've been working on creating some forms and message boxes. What is throwing me off, is that I have a good feel for doing coding so that I get functionality the will produce effects in a console. Coding the forms is a bit confusing for me. Is this something that others have run into? Is their some good primers for VB? I don't have my text books yet.

View 10 Replies

Forms :: Creating A Sub Main In A Windows Forms Project?

Sep 13, 2010

What is the vb.net equivalent to accomplishing this?

static void Main()
{
frmCalcView view = new frmCalcView();

[code].....

View 5 Replies

Display A Paragraph Of Text From A Database?

Sep 20, 2009

In VB.net which control should i use if i want to display a paragraph of text from a database?The text displayed should be uneditable.

I found that i can insert a rich text box and make it read only.

View 1 Replies

Grab The Inner Text Of Paragraph Marker?

Nov 10, 2011

I am trying to grab the inner text of this paragraph marker but I don't have a clue as how this is to be dones because the inner text changes on refresh.

<DIV class=rightcol>
<P class=description>I need to grab everything in here</P><INPUT id=moreoptions class="primary textbox" tabIndex=1 name=toppings[input]> <INPUT id=toppings2> </DIV></DIV></DIV>

View 1 Replies

How To Turn Paragraph Of Text Into One Continuous Line

Mar 8, 2012

Is it possible to turn a paragraph of text (grabbed from a textbox) into one continuous line? I could have the following information:
34 MyRoad
da7 888
london
the moon

And I want it to read :
34 MyRoad da7 888 london the moon
Spaces added to cause line breaks, and sample data formatted as code.

View 2 Replies

Putting A Block Of Text (ie A Paragraph) Without Using The Label Tool?

Mar 28, 2012

Is there a way of putting a block of text (ie a paragraph) without using the label tool?

View 2 Replies

Copy The Value From One Text Box To Another Text Box From Different Two Forms?

Jan 6, 2011

I use the panel in the form, the panel contains one text box and the form contains another text box. When I click OK button the panel, ill hide.and the form ill show, the value of text box in panel is transfer to the another text box in the same form.

View 2 Replies

Forms :: Add Looping Text Into Text Box?

Feb 19, 2010

I'm new to VB.Net. I try to convert from VB6 to VB.Net (2008) with a simple code as shown in the picture below but its come up with Warning. Did anyone know how to solve this warning. Sorry for lame question..

View 3 Replies

Forms :: Changing The Text Value Of A Text Box?

May 5, 2011

I've got a button_click function that calls a Powershell script and outputs the results into a text box. This sometimes take a few seconds, so I wanted to first change the .text of the textbox (called Results) to "Please wait... searching remote PC" so the user knows the program is actually doing something.

Results.Text = "Please wait... searching remote PC"
Results.Text = RunScript(LoadScript(fullPCinfoScript))
However, the text will not change. It basically waits to change the text of the text box

[code]....

View 3 Replies

Forms :: Adding Controls To Mdi Forms?

Jul 7, 2011

I am developping a VB.net application. I would like to add buttons on the MDI but every time I open a child form of the MDI, it appears down the buttons. Is there any way I can solve this problem?

View 3 Replies

Forms :: Type "1 Month" In A Text Box, Then For Text Box To Count Down In Days And Hrs?

Jun 8, 2011

I want to be able to type "1 month" into a text box, then for text box to count down in days and hrs.

For more iinformation: I want to type in the box "1 month" or "2 months" etc (not Years or days)

Then for another textbox to begin a countdown in days and hours from the current date and time to the one which it will be in "1" or "2 months" etc

View 3 Replies

IDE :: Excluding Forms To Convert A Window Forms Application To Class Library Application

Jan 16, 2012

I am not able to find the Exclude Command in VB 2010 Express. I have no idea which version of Visual Studio it is working with. I've got one 217MB VB 2010 Express file and many 2008 VB Express files with one of them measuring 31 MB. There many other SQL files and .Net Files.

View 4 Replies

Forms :: Call A Process Which Is Spliting A Text File Into Various Text File?

Oct 14, 2009

I am using a thread to call a process which is spliting a text file into various text file and folder using the system.io , now when calling the Textsplit() with thread on click of a button i am getting the error below , how to use thread and why this error occurs.

Cross-thread operation not valid: Control 'txtbox_destn' accessed from a thread other than the thread it was created on.

View 1 Replies

Forms :: Increase A Forms Opacity Without Increasing The Opacity Of The Controls In The Form?

May 30, 2009

How to increase a forms opacity without increasing the opacity of the controls in the form?

View 1 Replies

Forms :: RichTextBox - Changing Font Size Without Changing Families And Styles

Sep 21, 2010

I'm searching for a way to change the font size of selected text in a RichTextBox (rtf) having different font families (e.g. Arial and MS SansSerif) and font styles (underline, bold...) using the FontDialog, but without changing the families and styles. The following code resets all the font attributes, which is not what I want:

[Code]...

View 5 Replies

Add User Name Text To Other Forms?

Jun 2, 2011

I have developed an application for booking meeting rooms. A user has to log in before he / she can use the system.

I want the user name of that user to be shown in the form.[code]...

View 2 Replies

Forms :: Add Text To Textbox?

Jul 18, 2011

when i type any web site address in textbox1 and i press ctrl+enter it will add www. and .com.

View 4 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved