Implementing Notation And A Messaging Center?
Nov 15, 2011
I've created an application where our clients can have access to our program by logging in. It uses our database for most information. I want to implement a richtextbox where it saves notes but i don't know if i should be saving that information as a file or what. Also I also have an application that handles everything that deals with our clients I also want to implement a messaging system that can leave a message to the client upon opening the application if they are missing any information that we require. Can someone point me the right direction on where to learn about this.
View 2 Replies
ADVERTISEMENT
Aug 7, 2009
Im currently writing an application for our call center to use and would like it to have messaging functionality so that team leaders can send a message to the individuals whilst they are on the phone.
I have used a couple of tutorials around the web, but they differ to what i actually require. They all seem based around the whole "client must connect first" thing, is this really necessary? I just need each user to be a "server" constanly listening to any message recieve on a specific port, and display it in a popup when one is.
At the moment the code i have sort of works, but its a bit flakey and doesnt handle the initial connection/final disconnect very well.
Client program (team leaders console):
Form:
Imports System.Net
Imports System.Net.Sockets
[CODE]...
View 7 Replies
Apr 11, 2009
I am trying to have a firm grasp of VB.NET and wondering if there is a way to use a double dot notation instead of the single dot notation people are normally accustomed to?The double dot notation that I want to implement is shown directly below:
PersonData.Birthdate.IsValid
Currently, the only way I know is by using the call shown below which I suspect is not using the full capabilities of .NET:
Validations.IsValid(PersonData.Birthdate)
My code is shown below:
vb.net
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
modVar.intDay = 25
[code]....
View 6 Replies
Aug 10, 2010
Is it possible to automatically insert a Code Snippet when an interface is implemented? If so, how do you do it? I am looking for something similar to when you implement IDispoable in VB.[code]This will be used by web forms when transfering parameters from one page to the next using Server.Transfer
View 1 Replies
Jan 3, 2012
When I call this Messagebox, is it possible to center the Messagebox on the parent form rather than centering it on the center of the screen?
View 2 Replies
Jun 11, 2012
i found this video today and its a simple vb game but made me wonder how they kept the charater centered during movement.url...Anyone have a simple snippet to demostrate how they made a larger resulution then vewable and kept the picturebox centered and only moved the viewable area?
View 2 Replies
Jan 30, 2010
We have a Message broker application in Java which accepts messages(XML). It validates the XML against XSD and calls a .net Webservice and passes the validated XML.We have a requirement to do the same in .net. Do we have any API's to do this one. I am looking for a system that takes care of logging in case of errors or some kind of activity log. Is Windows workflow foundation meant to do this kind of task?
View 3 Replies
May 17, 2011
Our programming teacher taught us to use the Hungarian notation (e.g. intMyInteger, strMyString,...) while programming.But I have heard somewhere this isn't actually used in the professional world. Is this true?
Edit: I just found out this is actually "Leszynski"
View 5 Replies
Jul 7, 2011
I have a final year project to do..i want to create p2p instant messaging using udp. Can anyone guide me step by step how to create this application..many code can be find via internet, but i dont know how to start..and my coding knowledge is average.
View 2 Replies
Apr 26, 2009
I put it in Communications.For My programming class at school we are required to have made a program. So I decided to make a LAN messaging program which uses VB and Microsoft Winsock Control 6.0. Im quite new and noob at using VB so i'm using a tut here, url... to make the base program.As you can see if you've read it, he uses Microsoft Visual Basic 6.0, while I use Microsoft Visual Basic 2008 Express Edition.
View 3 Replies
May 13, 2009
Is there any official notation for private fields? Like mVar, m_var or another notation?
View 10 Replies
Oct 23, 2009
Could anyone give me the prequisites needed for a LAN Instant Messaging Application?And then, if possible, a step-by-step explanation of how this is accomplished, or a link to a good tutorial?
View 3 Replies
Jun 2, 2011
I Have a bit of a problem..For some reason visual studio says there's an error--it reads:Statement is not valid in a namespace..I can't figure out how to fix it. This is what my coded looks like and there's a blue squiggly line on the first two lines that start with Private Sub:Private Sub btnPlay_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnPlay.Click.[code]
View 2 Replies
Dec 21, 2011
I am trying to use MessageQueues to notify users of an application of data changes using the Multicast feature, but can't get it to work : the workstation that sends the message does receive it, but none of the other running workstations seem to catch the sent message.Sending messages is done as follows :
Dim sendQueue As New Messaging.MessageQueue("FormatName:MULTICAST=234.1.1.1:8001")
Dim message As New Messaging.Message("message body...")
sendQueue.Send(message)
And receiving them :
Dim receiveQueue As New Messaging.MessageQueue(".private$myQ")
receiveQueue.MulticastAddress = "234.1.1.1:8001"
receiveQueue.BeginReceive()
[code]....
So I'm obviously missing something, and I can't seem to find any good ressources on multicasting with MSMQ 3.0 in .NET.Also, what is not clear is wether I should use a local queue per workstation, or one single remote queue on a server to multicast messages ? And does using the receive method on multicast messages purge them from the queue ?On a side note, all workstations are on the same subnet, and all have MSMQ 3.0 installed.
Despite what the Queue properties dialog says, permissions are NOT totally ignored on unauthenticated queues, at least when using multicasting. If you want your queue to receive multicast messages, it must give to 'ANONYMOUS_LOGON' the right to 'Send messages'. Otherwise, multicast messages are just discarded without any notice in event logs or whatsoever (unless I missed something).
On Win7 stations (XP stations seem to do fine, which is what pointed me to the actual problem), queues created through code do not have such permissions, and hence must be manually set after creating the queue :
Dim msgQ = Messaging.MessageQueue.Create(queueName)
msgQ.SetPermissions("ANONYMOUS LOGON",
Messaging.MessageQueueAccessRights.WriteMessage)
It would seem that internally, MSMQ uses that account to write multicast messages to unauthenticated queues.
View 1 Replies
Apr 27, 2012
I need to incorporate a private messaging system. I have done some research but do not know what to use. the system needs to be the following.
both a client and server
Be as instant as possible (not sure but if the server could push out the message to the client this would stop a lot of traffic from client software having to connect and check for messages when there is no to be collected).
Be able to work both over the local area network and the internet.
Be able to store messages and push them out to the user when the user comes back online.
Be able to transmit both plain text and html.
View 9 Replies
Oct 21, 2009
I've got an app that sometimes stores some decently small numbers, such as 0.000023425. These numbers get loaded up in TextBox controls for users to edit.
Dim number As Double = 0.000023425
someTextBox.Text = number.ToString() ' Shows "2.3425E-05"
As mentioned, the text that shows is 2.3425E-05, which isn't exactly intuitive for the user to see, plus I have numbers even more precise (out to 19 decimal places). I would like the output to be fixed point. Of course I could easily and cleanly do:
number.ToString("F20") ' Shows "0.00002342500000000000"
But then there's an annoying number of zeros left over. So, to fix that, I could do:
number.ToString("#,##0.####################") ' Shows "0.000023425"
Which is what I want, but is there any better way to do it than to have that giant ugly format string there? So, ok, it's not that ugly, but surely there's a different way, right? My goal is to show the raw value being stored in the DB in a friendly way, and I would rather not have to force a format on the number at all.I found that changing the underlying datatype to Decimal solves the issue.
Dim number As Decimal = 0.000023425
someTextBox.Text = number.ToString() ' Shows "0.000023425" instead of "2.3425E-05"
So it sounds like Doubles aren't precise enough to be displayed normally?
View 3 Replies
Nov 12, 2011
The only post I can find on this matter is one that coverts the double to a decimal before converting it into a string. However the numbers I'm using are far larger than what a decimal can store.
Example: 1/(16^10)
So how can I convert the solution to the problem above. Which equals 0.00000000000090949470177292824, to a string value that is exactly as it's shown?
Cause when I convert this to a decimal I still end up with a string in scientific notation..
View 39 Replies
Feb 19, 2009
I can not column 4 of my Datagridview1 to display numbers as ###,###,### with not decimal places it seems stuck in Scientific notation mode, even though I have set it several different ways in the menus.How do I set it in the program like I set the column width.
DataGridView1.Columns(2).Width = 80This is in VB ExpressGary
View 3 Replies
Sep 28, 2009
I've written a small program that does some calculations and I want to display some of the results in scientific notation. For example, I want to display 0.005 as 5.0E-3.
View 2 Replies
Mar 23, 2011
What would be the best approach in Vb.Net to generate music notation by importing a MusicXML (example below)
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE score-partwise PUBLIC
"-//Recordare//DTD MusicXML 2.0 Partwise//EN"
"[URL]">
<score-partwise version="2.0">
[Code] .....
View 4 Replies
Jun 18, 2009
There is a Select overload that adds an index to each element of a sequence :
[Code]...
Can this query be written in Query Notation ?
View 1 Replies
Mar 1, 2006
I am trying to send a query to a device over http with the url:
[code...]
What I want to do is retreive this xml file over http and save it with my VB.NET application. To do
that I am trying the following function, and it works to retreive the page source for normal web
sites, but it fails when trying to retreive this particular page.
[code...]
I think that the problem is that the code is counting own a present length in the header, which is
not the case for a dynamically created page. (i.e. you dont know the length until you are done) As
such, the code should be written to read the entire reply.
View 5 Replies
Mar 12, 2009
6/0
6/1E-10
6/2E-10
[Code].....
I need those in there true form not scientific notation, how do i do this in vb.net?
View 1 Replies
Jul 22, 2010
I am deveolping a charting program and have a need to have dynamic draggable labels on the chart for notation purposes. Everything works fine until I try to drag a label past the 32767 (16 bit limit).
Here is the code that I drag the label with:
If ISDRAGGING = True Then 'DRAGGING LABEL
If CURRENTLABEL.Tag = 2 Then
CURRENTLABEL.Left = 0
[Code] .....
I have tried to create a new label and override the Top value with a Long Value, but it still does not do the trick. Hhere is my attempt to overload the top value to an integer.
Public Overloads Property Top() As Long
Get
Return _Top
End Get
Set(ByVal value As Long)
[Code] .....
The charts are dynamically generated from a database and represent depths. Usually at least 10000 feet are plotted at 5 pixels per foot. So some labels will be created or dragged below this 32767 line regularly. Any way to be able to drag the labels past this limit, or possible another option to be able to view these long charts.
View 5 Replies
Dec 31, 2007
I am working on a project that involes reading an Excel file, picking through it, then creating a flat CSV file. One of the the data elements I am picking up is a 9 character string that may be numeric, or contain one or more alpha chatacters. Excel has a nasty habit of converting long numerics to scientific notaion. I can overcome this by converting the "general" string to "TEXT".
However, there is one instance where I can not get the function to work...the string is "90333E108" ( the CUSIP for USU). Regardless, the text string is saved properly into the CSV file. When opened in a text editor, it reads correctly.
When opened with Excel, it is in scientific notation. Changing the field to "text" from "scientific" still displays "9.03E+112".
how to create an csv file that Excel will open and read correctly?
You can test this by creating an Excel workbook, format all cells as TEXT and add the following data:
90333E108
123
2
[Code]....
View 14 Replies
Jun 12, 2012
This is the first time I have used this messaging library and used some example code to implement it. The first time I ran it it worked perfectly but I abruptly stopped the code since my parsing method seemed wrong. So when I restarted it, the code freezes at the following line:
[Code]....
View 1 Replies
Oct 14, 2011
I am trying to SendMessage to an app called 'Signal threads' - a test app which sends out a message called TV1_Threads, and listens for a reply. I have shown the values of each variable in the commented areas.
[Code]...
View 3 Replies
Feb 19, 2010
can i use an inverse notation in the databindings to enabled or disabled one checkbox?I have a form that has several controls binded, and if i have true in one field in the database i need to check checkbox and disabled it.Something like:
vb.net
chk.DataBindings.Add("checked", bs, "MyDBFieldBool")
chk.DataBindings.Add("enabled", bs, "MyDBFieldBool")
This can be done directly?
View 7 Replies
Feb 9, 2009
I am in the process of developing a messaging framework for a windows application that sends messages to a java application. To be precise when the win app wants to send a message it simply drops the message in a common database table which will be picked up by the java app. The windows application is deployed across 10 application servers (10 instances) over citrix for load balancing.Each instance of the application is capable of sending a message to the java application and each of these messages should have a unique id. From my end I need to make sure every message generated has to carry a unique id so that they can be identified when necessary. All the messages can be cleared every day or two.i am not quite sure about a best method of achieving this. Initially I wanted to create a static method that serves the next available id (incrementing the last id by 1). But this approach willn't guarantee unique number as the application starts only when at least one user is logged on. For e.g .On one server the app starts when a user logs in, he then sends a message and then the application stops when that user logs off. So when a next request for the app comes to that server a new instance will be started.
View 3 Replies
Feb 7, 2012
I'm working with Ticks a lot at the moment and when setting a timespan/similar, I find the shorthand exponent notation 3e6 far more easy to read at a glance than 3000000
VS converts to the long form as soon as it tidies up the line.
Is there any way to turn off the editor feature which reformats this?
View 1 Replies