Create An Array Of Richtextboxes Called Rbox?

Jan 14, 2009

i need to create an array of richtextboxes called rbox, and position them in a tablelayoutpanel called tlp.

i have these snippets of

dim rbox(10) as richtextbox
tlp.Controls.Add(rbox(i), 1, 1)

i know that the second line of code has the arguments of (control, row, column). the row and column is good because that allows me to place them in the table and i need this but the control part doesnt work.

View 5 Replies


ADVERTISEMENT

Create "a Windows Form Game Called Yahtzis Which Uses Five Dice And Three Throws To Create A Score"?

Oct 18, 2010

i am suppose to create "a windows form game called Yahtzis which uses five dice and three throws to create a score" .

The problem is that i don't even know how to start it can anyone shed some light.

View 2 Replies

Create A Windows App Called Encrypt.exe?

Nov 9, 2009

I want to create a Windows app called encrypt.exe. This app doesn't have UI, just takes string and return a string. I want to call this app from other Windows app or from cmd. I am using Visual Studio, what kind of project should i create?

View 9 Replies

Forms :: Dynamic Buttons Made With Array And Called By Addhandler

Sep 2, 2009

I am fairly new to VisualBasic .NET (2008). I'm creating an application that, when a number is entered into the textbox, a new form window is created and populated with buttons. Each button starts the same command, but with a different parameter (the parameter being the pertinent record number found by the search).'The records are asset tag numbers.The procedure works fine if there is only one result.But the search allows for partial numbers and that's where the trouble begins.If two or more results are found, each button is configured with the last number found. The button being clicked doesn't tally with the proper ID number.[code]

What I didn't count on was that the event is only called when a button is clicked. When buttons are made, they are not assigned at that time.I've had problems trying to carry over the (current value) for pcArray(i), hence having it populate that form3_text field. When trying to add in a second object to be passed, I get the following error:"Method prtivate sub DynamicClick(sender as object, pcNameInfo as object, e as system.eventargs) does not have a signature compatible with delegate sub event handler with delegate 'delegate sub eventhandler(sender as object e as system.eventargs)."I tried manually entering a "Delegate sub eventhander" with the pcNameInfo object and VB 2008 ignores it.What can I do to get each newly made button to be told to run the RemoteIn(pcArray(i)) process properly?

View 5 Replies

Create A Delegate And Use The Function In Program Called DoStuff()?

Jan 4, 2012

For a class, I have to create a delegate and use the function in my program called DoStuff(). There is an error tht says "Method 'Public Sub DoStuff(stringVal As String)' does not have a signature compatible with delegate 'Delegate Sub MyDel()'.

[Code]...

View 2 Replies

Create A GUI For A Command-line Based Exe Called Psftp.exe?

Mar 20, 2009

In VB2008 I would like to create a GUI for a command-line based exe called psftp.exe which can be downloaded here and basic usage here.I need to be able to carry out commands on the fly for example...

On Click of Button1- Connect to host
On Click of Button2- Prompt for username
On Click of Button3- Prompt for password

As these commands all relate to previous commands, they need to be carried out in the same instance of the command prompt.I have tried using the attached solution from an older post however it just doesnt work when trying to connect to a host (it works perfectly fine when using the standard command prompt).I'd also like to read any outputs from the command-line so I can create events on errors thrown for example...

On Click of Button1- Connect to host
On Click of Button2- Prompt for username
On Click of Button3- Prompt for password

If command-line throws "Access Denied"- MsgBox(The password you have provided is incorrect)My alternative to this is to buy a SFTP .NET component .

View 3 Replies

Game Programming :: Have An String Array Called ArrMap (0 To 19) That Holds The 20 Rows Of Each Map For Display?

Sep 30, 2009

Im working on a roguelike console RPG. For those of you that dont know, just google search it.What I need help with is that I have an string array called ArrMap(0 to 19) that holds the 20 rows of each map for display. I also have an array of the same size called VisibleMap that needs to hold which portions of the map are visible and which arent so that when the player switches screens [IE goes from map, to inventory] they can go back to the map and it will look the same. I was thinking of using an array, but if you can think of another way to do it, that's fine.Here are the subs that deal with the map reading and display, so you know how I have things set up at the moment.

Code:
Public Sub ReadMap(ByVal location As String)
Dim ioFile As New StreamReader(location)
Dim ioLine As String
Dim intX As Integer

[code].....

View 6 Replies

Have A Column In The Datatable Called Amount And A Textbox Acting As The Filter Called Say Maxamount To Set It?

Feb 9, 2011

i was wondering if it possible to have a condition where lets say you have a column in the datatable called amount and a textbox acting as the filter called say maxamount to set it so the rowfilter when filtering the table will sum the number in the amount column until the number in maxamount is met, then stop and only return the rows where the total sum of the amount column is equal or less than the maxamount value, so i guess if the next row takes us over the maxamount it discards this row and returns the rows previous to it. is this possible using datagridview rowfilter or should i be loooking elsewhere to achieve this?

View 4 Replies

Combo - Sql Table Called Stock With Two Fields Called StockID And StockCode

Jun 5, 2011

I have an sql table called Stock with two fields called StockID and StockCode. I want the user to select the stockcode from a combo which in turn populates the stockid for that item into a lable on my form. I have already populated the stockcode into the combo but dont know how to compelte the rest.

Imports System.Data.SqlClient

Public Class cbo2
Private Sub cbo2_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

[CODE]...

View 4 Replies

Form Called FrmPracDetails Which Is Built Up With A List View Called LvwColProc

Aug 11, 2009

I have a form called FrmPracDetails which is built up with a List view called LvwColProc. Therefore when you click a field on the LvwColProc it takes you to another form called FrmColProcessing, here you can make changes to certain fields which are also present on FrmPracDetails. What I want to do is when you make changes on FrmColProcesing and Click the Save Button (which calls the Save function)the changes appear instantly on FrmPracDetails. Please note, FrmColProcessing will always be open next to FrmPracDetails. I have tried to put this code in the Save function present in FrmCol Processing as shown below, but it doesnt Refresh FrmPracDetails form. [code]

View 1 Replies

Create A Code That Can Be Called Apon To Activate But Not Receive Or Send Any Information Through The Program?

Jul 18, 2009

I have been developing a calculator for complex math. (Much more complicated than +,-,/,*, and above your usual scientific calculator)Its works quite well .In past programs I have used "private functions". I know that you give them a value and it returns on back. But what if you dont want to recive or send value? My example for this is a function I am attempting to make called "Autopi".The idea of Autopi is that whenever a mathimatical operation is about to be performed textbox(s) are cheked to see if they contain pi. (3.14 or 3.141) If they test positive Autopi will continue pi to however many places have been specifyed in the program. (Currently 300 places just beacuse i can :) Before the Autopi function does this it chekes to see if variable "pi" = 1. If it does it proceeds if it doesent its job is done

How would I create a code that can be called apon to activate but not recive or send any information through the program.And just to clarify what I mean by that is it will read information out of a textbox and write into it. But it wont actualy recive anything or send anything back from where it was called apon.

View 5 Replies

Create A Splash Screen Before InitializeComponent Is Called On Form Load Of Winforms Application?

Jan 25, 2011

To create splash screen before InitializeComponent, the WithEvents statement for the BackgroundWorker component needs to be moved from the Form's Designer.vb file into the constructor as indicated in the first commented lines of the constructor below.

[Code]...

View 19 Replies

Properties - Default Property Set Being Called Mysteriously Called?

Apr 2, 2012

I have the following line of code in my program:

JCL_History.Enqueue(JCL_History(I))


This JCL_History object is basically a Generic.List encapsulated in a wrapper and has the following method:

Public Sub Enqueue(ByRef value As String)
If Members.Contains(value) Then
Me.RemoveAt(Members.IndexOf(value))

[Code].....

In my testing I have 2 items in this JCL_History list. When I call that first line of code I posted (the one that invokes Enqueue) with I = 1 I expect the first item to be shuffled to the bottom and the second item to be shuffled to the top.

After the thread returns from Enqueue I notice that this is exactly what happens to my list, HOWEVER if I hit the "step_in" button after the execution of Enqueue I go into the Default Property's set method where Index = 1 and value = and it screws everything up, because the item that got shuffled to the end (index 1) gets overwritten by the item value shuffled to the top.

So basically the set method on the default property is getting called at what I think to be a completely ridiculous time. What gives? By the way I'm running VS2005 on XP.

View 1 Replies

Compare Two Richtextboxes?

Oct 23, 2009

I have two rich text boxes.I have to compare both the text boxes and highlight it, if any difference is there.Which is similar like compare and merge option in msword.How can i do it in vb.net(vs2005)?

View 2 Replies

How To Combine Richtextboxes

Oct 27, 2009

How do I combine richtextboxes? Currently, I am directly saving rich text to a RTB with ".rtf" and I would like to append the rich text information to that box from another RTB. Something like: RTB.rtf &= newrichbox.rtf do not throw any flags but also does not work. What I am ultimately trying to do is save multiple richtextboxes to a single RTF file. I was trying to do it by combining them all into one RTB and using ".savefile()" or is there a better way? Maybe appending them to the file one RTB at a time?

What I'm doing is generating a report, so I have built generic rich text templates that go into multiple RTBs that will create the form sections and I have left placeholders for the data I am adding, so I do replaces on the placeholders to insert the data. However, there are a couple dozen different possible formats for the report based on user options, so I built each section into its own RTB so I can just write out the relevant sections when it comes time to generate the file.

View 2 Replies

.net - SSRS Report Called From ReportViewer Control Displays No Data In The Report When Called With A Parameter

Apr 11, 2012

Can you look at my coding and let me know what I'm missing or doing wrong?I have a SSRS report that is called from a ReportViewer control and the ProcessingMode for this control is Remote. The report also has 1 parameter in it's DataSet.In the code I placed a MsgBox to make sure the code is finding the parameter and returning the parameter name. I am trying to stick the value of 10 into the parameter for playerID 10. Data for this player does exist.

I believe I need to add some more code to make this work but I'm not sure what else to add.

When the code executes the report is displayed but no data is shown in the report.

[Code]...

View 1 Replies

Office Automation :: Called "Freemind" That Is Called A 'mind Mapping' Program?

May 13, 2010

I recently found an awesome tool called "Freemind" that is called a 'mind mapping' program. It's similar to MS Visio but way cooler and more automated.I reeeallly would like to integrate this into a VB.net Form, but how?

Has anyone seen or heard of mind mapping inside VB.net before? Are there programs out there already that work with VB.net or anyone have an example they have seen / built that works?

View 5 Replies

Add Tables To RichTextBoxes In Program?

Feb 29, 2012

How do I add tables to a RichTextBox in VB.NET 2010?

I've tried adding the tables by using RTF codes, but I can't get that to work. And there is nothing like richTextBox1.AddTable() which would make things very simple. At least, if there is, I haven't found it.

View 1 Replies

Autoscrolling Inactive Richtextboxes?

Sep 6, 2011

How can I make inactive textboxes / Richtextboxes autoscroll? I have Multiple richtextboxes that are constantly being appended with data automatically and at the moment only the one that is active scrolls and all the others stop when the fill up. How can i get round this?

View 3 Replies

Find And Replace In 2 Richtextboxes?

Dec 29, 2009

I have code that works great for 1 richtextbox, heres the problem i have 2 richtextboxes I need to some how search either 1 textbox or the other depending on whether that particular richtextbox is active i.e. cursor in it. [code]...

View 6 Replies

How To Join Text From Two RichTextBoxes Into Third One

Jun 8, 2011

I'm working on a project in vb.net 2010 that has 3 RichTextBoxes. Two of the RichTextBoxes can be loaded with text from text files. How do I take the multiple lines of text from each RichTextBox and combine them into the 3rd RichTextBox.

For example, if 2 of the RichTextBoxes contain the following lines of text:
(RichTextBox1)
Monday
Tuesday
Wednesday

(RichTextBox2)
Jan
Feb
Mar

I want the 3rd RichTextBox to show following result:
(RichTextBox3)
MondayJan
TuesdayFeb
WednesdayMar

View 6 Replies

How To Link Scrollbars Of Richtextboxes

Sep 29, 2009

I have 2 richtextboxes on a form and I want to link their vertical scrollbars i.e. ifrichtextbox1's scroll bar is moved then richtextbox2's scroll bar moves by the same amount.The reason for this is that both richtextboxes will contain almost identical text barring a few differences in the second richtextbox. By linking the scroll bars my hope is that the user can better compare the textboxes for any differences between them. I have looked at trying to find a scroll bar property but can not find one. Does one exist?

View 1 Replies

Scrolling Multiple Richtextboxes?

Jul 7, 2011

The code I came up with ALMOST works... but almost is not enough.

1.) all 3 of my richtextboxes have the same quantity of lines, always.

2.) When I scroll one of them, I want them all to scroll in unison, as if they were 1 richtextbox.

Here is the code I have that ALMOST works right....

Public LastLineNumber As Integer
Public HighestVisibleLine As Integer = 16
Public LowestVisibleLine As Integer = 0

[code]....

View 5 Replies

Create A Custom Control With An Event Called "valuechanged"?

May 27, 2011

I have created a custom control with an event called "valuechanged" When I try the following line to: AddHandler

ScheduleMain1.ValueChanged,
New
System.EventHandler(AddressOf[code]......

View 2 Replies

Inheritance - Create A Method Called StartWorking() And Want FrmChild To Inherit - Method

Nov 25, 2011

I have a large problem with inheritance in vb.net. The problem is the following:

I have 2 forms => frmBase and frmChild

In frmBase i want to create a method Called StartWorking() and i want frmChild to inherit this method.

But here is the tricky thing: when frmChild.StartWorking is called i would like the following => without calling MyBase.StartWorking()

I want frmBase.StartWorking() to be executed first and after a test in frmBase.StartWorking if blnValue is true then frmChild.StartWorking has to be activated. if blnValue is false that frmChild.StartWorking cannot be activated.

View 2 Replies

Foreign Character Sets And RichTextBoxes?

Jun 9, 2010

I have some text in an .rtf file which uses a non-English character-set (it's chinese).When I open this in Wordpad or Word I see just the chinese characters.When my app opens the .rtf file and reads the file's contents and puts it into a RichTextBox for display, I get "everything" from the .rtf file, i.e.:

{
tf1ansiansicpg1252deff0deflang2057{fonttbl{f0fnilfcharset134 SimSun;}{f1fnilfcharset0 Calibri;}}

[code].....

View 3 Replies

Make One Scrollbar To Scroll Two Richtextboxes At Once

Nov 16, 2009

I Want To Make One Scrollbar To Scroll Two Richtextboxes At Once

View 1 Replies

Read A Random Lines From A 2 RichTextBoxes?

May 12, 2012

As the title shows I'm trying to to read a random line from a RichTextBox. It should be as follows:

User loads a list with firstnames a RichTextBox. User loads a list with Lastnames in a RichTextBox. Then it needs to read one random line from firstNameBox and a random line from LastNameBox into 2 strings. When the user clicks on genarate name. A random First and last name will be showed in a textbox.

View 9 Replies

Richtextbox :: Clearing All RichTextBoxes From A Form?

Nov 14, 2009

I have a form with 25 RichTextBoxes. I need to clear them all when a user presses a button.I think it's something to do with: Me.Controls.Clear but I'm not sure.

View 4 Replies

Selecting Text In Textboxes And RichTextBoxes?

Apr 28, 2009

I'm trying to select text with the intension that the text is highlighted. I've tryed using the following:

Tb.SelectionStart = 5
tb.SelectionLength = 10
And seperatly
tb.Select(5,10)

However, visualy I can not see any selected text in the textbox.

[Code]...

View 3 Replies







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