Communications :: Richtext Formatting On Receiver's Side?
Feb 18, 2009
I'm creating a multipurpose chat application for my final year project. The control for typing in messages is a RichTextBox. The rich text (with all formatting) successfully reaches the other side. However, like any chat client, I'm also displaying a complete list of all the previous conversations above the RTB. I've used it as a RTB too. However, I'm unable to separate the incoming message by a new line... I mean like.. each message (with all formatting) on a new line. This is my code on the receiver side :
[code]....
where, ServBox is my conversation box. I also tried changing ServBox to a List Box but the listbox doesn't seem to interpret formatted text....
View 1 Replies
ADVERTISEMENT
Jul 11, 2008
I am in the process of designing a computer control program to control a HF communications receiver (radio), and have found a problem with the Serial port. I am using VB Express Edition 2008. This module of the program is supposed to take an input string from another part of the program, format it, break it into 4 bytes, and send it to the radio in hex form via COM port 1. The problem comes in when you try to enter a frequency with an 8 or a 9 in it. The 8 or 9 is usually replaced by 45, ex.-input 9900, receiver tune 4545. The exact same thing happens with 8's, input 8800 and receiver tune 4545. All other numbers other than 8 or 9 work fine. The strange part of it is that sometimes the 8's and 9's work, and work correctly. For instance, 900, 1900, 2900, 3900, 4900, 5900, 6900, and 7900 all work correctly. This led me to believe that is may only be when the 8 or 9 is in the first position, but that is not the case, it also shows up in other positions as well. All other frequencies that do not have 8 or 9 in them also work. I ran into this same problem with VB Express 2005, and worked on it for weeks before giving up and going back to VB6.0. This same module (with exception of the port open command) runs flawlessly under VB6. I have even tried importing the MSCOMM control from VB6, but it gives the same results. In de-bugging mode, all of the inputs, decimal and hex seem to be correct, so the problem must come in after you click the command button, but before it leaves the COM port.
[Code]...
View 19 Replies
Aug 11, 2009
I've created a rich text box which stored the "textBox.Text" value in an SDF database. The storing works, but the formatting seems to be lost. Is this something that SDF databases can't handle? Do I need to store in binary or something? Not sure how to do that either.I'm using Visual Basic Express Edition with Winforms and writing in VisualBasic.NET btw This is how I store to the database:
Private Sub btnToolStripSave_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnToolStripSave.Click
Try
Me.Validate()
Me.SangerBindingSource.EndEdit()
[code]....
And this is how I insert the text in to the rich textbox
txtBoxText.SelectionFont = New Font("Verdana", 16, FontStyle.Bold)
txtBoxText.SelectionColor = System.Drawing.Color.RoyalBlue
[code]....
View 2 Replies
Jan 9, 2011
Is there a way to where i can send emails, but to the specific email client or receiver i make?
View 2 Replies
Dec 2, 2009
I am tring to get the receivers' e-mail address from a Ms access (mdb) database but I am failing. I had another thread but it started to get longer and I decided to open another one. Let's make a summary. Below is my VB code;
Imports System.Net.Mail
Imports System.IO
Imports System.Net
[Code].....
View 8 Replies
May 23, 2011
Can I send an object from client-side javascript to server-side code via ASP.NET ?
View 5 Replies
Apr 13, 2010
I know this defeats the purpose of client side vs. server side (refer to title of this thread). What I would love to do is build my own custom progress indicator on the client showing how far a server side code has progressed. I figure if I could only get a JavaScript to fire and render a value of some control at pre-defined intervals while the server is working I could make it happen - but alas I'm beginning to believe that this is impossible. Below is some code that performs three 2 sec loops. At the end of each I want to change the visible value of a control on the browser. [Code]
View 8 Replies
Feb 23, 2012
I have a basic asp.net web page. I have a menu bar divided into 3 columns. Each column displays an xml file. However instead of showing them side by side it displays them one on top of each other. i think it might be to do with my css?
My asp.net web code:
<div class="menubar">
<div class="menuleft">
[code]....
View 2 Replies
Jul 13, 2011
Using the following script:
$("#some_button").click(function() {
var changed = [];
[CODE]...
I need to send back the id, the old value from _1 and the new value from _0 back to the server. What is the best way to format this data so I can easily extract the data from the server side so I can easily email someone for example to let them know which textboxes have changed, what the old values were, and what the new values are
At the serverside level, I am using .NET-3.5 (VB). I know how to send the data bacl. and how to email the data, I just wanted to know how to best format the data at clientside before sending it back. I could have upto 50 sets of id, old, and new values to send back. Sorry for not making that clear earlier.
Example:
How can I modify the script above to generate this?
[
{
"id": "name_0",
"new": "text",
[CODE]...
View 3 Replies
Dec 18, 2011
I'm working on a 2d game. making a button that can move in a path random up,down, side -side, etc. in a selected space. and once hits end of the form to slide out and reappear at other side of the selected space and do same thing over.
View 1 Replies
Jul 22, 2009
I would like to know how can I transfer some data bits from one location e.g. Location X to the location Y. I am already moving MS (mobile station which I take as an image) from one location to other. Now I want to check or you can say add some data while MS is moving and make it reach successfully to location Y as I already can do with MS movement, mean to say data transmission along with MS and on that basis I want to find handover failure rate and if any data loss during the data transmission from x to y location. And check if the data delivered is successfully reached to location Y from Location X, check bits transmitted and bits received
View 2 Replies
Oct 14, 2010
Here are my two grids -- they are ExtJs grids however we wrap the declarations in vb.net code:
Dim VehicleOptionsGrid As New Framework.WebControls.Grids.Grid
With VehicleOptionsGrid
.ID = "VehicleOptionsGrid"
.Title = "Vehicle Options"
[code]....
Using javascript, is there anyway I can add a bottom scroll bar to these grids? Doesn't seem like we have a wrapped command to do it...
View 1 Replies
May 14, 2011
I currently have a parent Listview and its child Listview displaying in the centre column of an HTML page that consists of three columns left, centre and right. And all looks very good. However I would like to display the child list view in the right column beside the parent list view.
To do this it seems I must somehow generate from the code behind page a new row in the table every time the parent Listview displays a record of its data and then some column HTML so the first child list view will appear in the right hand column.
View 1 Replies
Apr 22, 2011
I'm trying to, from a client-side piece, call off to a server-side piece. I need to do this synchronously. On my server-side code, though, I'm calling off to another piece of code, which I want to have a maximum of, say, 10 seconds to return a value. If I don't have a response within 10 seconds, I want to force my own server piece to set my result equal to 0, and return to the client.
Here's what I have on my server-side code so far:
Public Function GetWebResult(ByVal inputParameter As Object) As WebReturnObject Implements IWebInterface.GetWebResult
Dim result As New WebReturnObject
Dim webItem As WebItem = Nothing
[CODE]...
I realize this code is not functional. The problem is that I'm unsure how I would go about getting back into GetWebResult to set the appropriate return values before it is sent back to the client.
View 1 Replies
Jun 22, 2011
I am struckup with a problem from last two days. I am creating a web application using VB.NET, Ajax & RAD Controls. When user clicks on a button I want to open a RAD Window and show the list of ledgers available to the user, so that he can select one from the list. And to open that window I have to call a java script function from client side, which is already achieved using the below code.
[Code]...
View 8 Replies
Jan 25, 2012
I add an option to a select with jQuery. When I save with an asp button, I don't see the changes on the server side in the click event.
And the HTML is all correct after I add the option.
Is it a coding problem or I don't understand something?
$(selectCourant)
.append($("<option></option>")
.attr("value",$(dropdown).val())
.text($(dropdown + " option:selected").text()));
View 1 Replies
Jun 18, 2012
I have an application which have multiple tab pages. On of these pages I have a group box with many controls that do something.Now the problem is I want to add exactly the same group box by the current one that can have different paparemeters.This is exactly the way that i want to add comparison capability between to set of parameters.I have more than 500 lines of code that responde to changes of these parameters and does something.Is there any way to replicate the the whole gropbox and use the same code for both and and being able to difrentiate between gropboxes.I think there was an array control in vb 6 but I am not sure if this the best way to do this in vb.net.What is the best way to do this for the least amount of changing the code and wasting time.
View 1 Replies
Jan 26, 2009
I am using VB2008 Express and am curious how to send a command via RS232 communications. The string that I need to send is 02h PON 03h. The start and end bits are 02h and 03h.
How can I convert 02h and 03h to its ascii form. In hyperterminal, I use the sequence {(hold)ALT 0 0 2} on the number pad to send the start bit.
I am using this code currently without the start and end bits
Code:
View 8 Replies
Jul 3, 2010
I have form 1 and form 2 form 1 is already loaded. When i load form 2 i want it to apprear right next to form 1 on the right hand side. What code should i use to accomplish this.
View 3 Replies
Jan 18, 2012
Basicly I have a program that retrieves data and parses it, which is fine, so it starts from:11:981.8 which equals to November 981.8 now what I have done is split the "November" and the "981.8" into 2 different arrays, with other similar data, now what I need to be able to do, is sort the array in either Ascending or Descending order, however keeping in tact, the November and 981.8 side by side in a list box.
My current code is:
Private Sub sortData(ByVal strYear As String, ByVal strSort As String)
lbDispData.Items.Clear()
Dim strData As String = My.Settings.usage2011
Dim arrRawData() As String
[Code]...
EDIT: Just to mention, there are many more values, not just November and 981.8, there would be for example December and 128.1, January and 191.1, etc.
View 2 Replies
Jun 3, 2011
I am starting a butterfly program and having an issue and really just barely have it started and would like to get some helpfeedback on how to do this. The following is the instructions and I will make a second post on what code I have so far...The butterfly is going to be moving from side to side in a slightly upward assent when the animation starts. You need to build a set of controls that allow the user to control whether the butterfly ascends (up) or descends (down) and also allows the direction of the butterfly to change (left or right). The best way to implement this feature is through the use of keystrokes that when pressed act to control the direction of the butterfly. Whether you implement this feature through keystrokes or controls, make sure that the feature is communicated to the user.
Butterflies fly by opening and closing their wings. So it is expected that the butterfly will alternate between opened and closed as it wings its way across the form. If the butterfly is moving right, make certain the butterfly graphic displayed shows the butterfly as moving toward the right. If the butterfly is moving to the left, make certain the butterfly graphic displayed shows the butterfly as moving toward the left.
If the butterfly reaches the top of the form in its assent, it should wrap around to the bottom of the form. If the butterfly reaches the bottom of the form in its descent, it should wrap around to the top of the form. If the butterfly reaches the left edge of the form, it should begin flying toward the right side of the form. If the butterfly reaches the right edge of the form, it should begin flying toward the left side of the form. If the user changes the direction of the butterfly, insure that the correct graphics are used in relation to the direction of the butterfly and that the butterfly moves in the indicated direction. Please note that when the butterfly reaches the edge of the form, the butterfly must change direction regardless of any user input.
View 8 Replies
Dec 28, 2011
Ultimately, what I want to accomplish is an AJAX-based messaging system. I already have a database table for messages, and an ASPX to add new messages (and declare old messages no longer relevant).
The current messaging system simply polls the server every 15 seconds, and re-pulls the current message set.
What I am looking to do is: On $(document).ready(), register an ajax callback function that listens for a server-side event (e.g., MessagesUpdated) On table insert/update, fire MessagesUpdated server-side.
This way, whenever the table is updated (or new records added), any clients listening know that new data is available and can re-poll the server then.
Ideally, I'd also like to make the new data available as an event argument (to minimize re-polling the db).
I can find references to something like this in other languages, but I cannot find any actual code examples to get me started.
Assuming this is possible to do via .Net, can anyone help get me started on this?
I'm using the 2.0 Framework. Also while I added a VB.Net tag, I can read C# reasonably well, so please feel free to post in either language.
View 4 Replies
Sep 30, 2010
I have some VB .NET software that interfaces to a load of old (but sound) COM objects. The VB provides a GUI for the COM objects, part of which consists of setting various options on the COM objects - several of which relate to string formatting.I have a simple pair of VB .NET functions that convert basic %f, %d, %g formats to/from .NET equivalents using a large select case covering specific common strings, but they don't cover all formats.[code]Before I start diving in and making it more versatile with some parsing, does anyone know of a class (eg VB or C# .NET) that provides a decent ready-made implementation? Or perhaps some regexp wizadry could be used?
View 2 Replies
Dec 2, 2009
Im creating a space invaders game that has a group of "invaders" moving side to side and when i shoot one it gets destroyed, my invaders are in an array. So in order for the invaders to keep moving right until they get to the edge, i made a function that detects which invader is right most. But this was crudly done as I wa trying to make the opposite of my left most function which works. So my rightmost function dosent work
[Code]...
View 19 Replies
Jul 5, 2010
how to add text in richtext box in vb.net
View 1 Replies
Nov 22, 2009
Is there a way to check if a RichText box is on the bottom? I don't think this is working:
Code:
If RichTextBox1.Selected = Len(RichTextBox1.Text)
'It's on the bottom
End If
What I am doing is, having the text go to the bottom (like a chat client) with this code:
Code:
RichTextBox1.SelectionStart = Len(RichTextBox1.Text)
RichTextBox1.ScrollToCaret()
However, if the user is looking at what was sent before, it scrolls them back to the bottom.
View 16 Replies
Aug 21, 2009
Im trying to put text into a RTB using buttons. These then auto fill in notes etc in the RTB to say a user did X at X time and date. This was working fine when i did it for a plain text RTB. But when using RTB i have had to change my origional code from:
Private Sub Button20_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button20.Click
NotesBox.Rtf = Me.NotesBox.Text & vbNewLine & Date.Now.Day & "." & Date.Now.Month & "." &
[code].....
View 8 Replies
Sep 2, 2011
how to insert table into a richtext box in vb.net
View 2 Replies
Aug 17, 2011
I'm new to the VB applications.My basic background is C.I just installed VB and learning stuff from google and microsoft help center. and I'm having fun with the things I'm doing but I got stucked up at one point and thats at richtext box.Is there any way to keep track of Rich textbox text in VB? So that I can append some text when user hits new line (i.e enter ) and do some task when he hits backspace. How do i keep track of richtextbox.?
I found
stringer = RichTextBox1.Lines(0) to read lines
& vbNewLine for new line
[code].....
View 2 Replies
Feb 23, 2011
I am working on a richtextbox application.When I typed text into it and hit return, the returns were preserved.However, when I opened the page up in my Microsoft Vista notepad.exe program,the returns were not preserved.The text appears as if wordwrap was unselected in my notepad.exe program.I just got one long strings and no returns.How can I fix this problem so that the returns are preserved? when I open the file back up in my richtextbox program, it appears as I had typed it with all the spacing and returns.
View 6 Replies