Vadd The Functionality Of Instead Of Coloring The Whole Screen?
Jul 17, 2009
i have designed an app that colors the screen, and makes it look like you are wearing different color glasses.
i would also like to add the functionality of instead of coloring the whole screen, ONLY coloring the background of a document exactly like this program does:
[URL]
View 2 Replies
ADVERTISEMENT
Aug 29, 2011
I have this to append a text to a richtextbox
RichTextBox1.AppendText(String.Format("{0,-11}{1,-18}{2,-10}{3}", "[" & Now.ToLongTimeString & "]", "SergeMorel", "∙ Some Text Here", Environment.NewLine))
It's for an irc client. It appends the text users send or receive.How do I color for example, the time in a color & the user in a different color, etc...
View 18 Replies
Feb 28, 2011
I�ve a label which displays a time counter as follows:
Me.label.text = �Hrs: � & myH & � Mins: � & myM & � Secs: � & myS
The line:
Me.label.ForeColor = Color.Red
Changes the color of the entire text to red.
I�d like the letters H, M and S to be of different colors. I know I could set up three different labels and color them but I was wondering if exists a trick which allows me to change colors with the same label.
View 2 Replies
Jul 24, 2009
I have some textboxes on a report in VB 2005. There are three "Status Types": A, B and C. I want an expression like this to work on a number of textboxes:
[Code]...
View 3 Replies
Jun 23, 2009
i'm working on a project app to help me color code my html snippets. i'm not being able to figure out how to change the color of this line when selecting text :
<font color=blue> synthax helper </font>
to look like this:
<font color=blue> synthax helper </font>
as far as i can get it to change the selection color is this:
<font color=blue> synthax helper </font>
here's what i have in code:
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
RichTextBox1.SelectionColor = Color.Blue
RichTextBox1.SelectedText = "<font color=blue>" & RichTextBox1.SelectedText & "</font>"
End Sub
View 20 Replies
Aug 19, 2011
I have a program that appends text to a richtextbox.I do it like this :RichTextBox1.AppendText("[" & Now.ToLongTimeString & "] <" & Username & "> : Hello World !" & vbNewLine)
I know the username.Now, I searched google to color the username (the text between '<' & '>').It works, for the first line at least.As soon as I add another line, only the first line stays colored.How would I do that so it colors every line?
View 15 Replies
Apr 25, 2011
Is there an easier way to color certain tags like: <html>, <h1>, <body>, etc?I would like to make an html editor and i would like to know if anyone out there has a VB10 Example of a text highlighter When the text changes.
View 1 Replies
May 30, 2011
I am making a personal application in VB.NET that uses a CheckedListBox to store items. I have three buttons on my form, with which I would like to change the selected item's color with (to green, orange, and red.)
View 4 Replies
Jan 13, 2011
I have a bundle of tiny pictureboxes on a form. The number is specified by the user, but it could be up to 100, or so. The user can select any set of these pictureboxes by a variety of means. I want to change the image to show the selection state of the pictureboxes, and I'm looking for the best way to do that. The pictureboxes each shows a bitmap. The brute force method would be to have a selected image and an unselected image and just swap them, but it seems like there ought to be a way to do something significant and reversible to the image, such as inverting the colors, that might be smaller that having a second copy of each image.
View 5 Replies
Jan 5, 2012
I have a program that colors certain words, but when I do a Ctrl+Z, the textbox undoes the coloring. How do I make it stop undoing the coloring, and just the text that was edited?
View 4 Replies
Jun 29, 2011
BTW this issue occurs in any MS office program when the VB.Net (or even VBA) is processing information.Example: In Excel, a worksheet is displayed on the screen. I start either, a VB.Net or VBA procedure and within 30 seconds the Excel worksheet (previously displayed) blanks out. In both VB.Net and VBA,ScreenUpdating = False. My expectation is that the previously displayed screen would stay static as if I left my desk to get a cup of coffee; came back and the same ole Excel worksheet was still there?Of course, setting VBA Screen Updating = False accomplishes two goals: 1) speeds up processing and 2) saves the user from seeing unnecessary "garbage-processing" steps.Why does VBA or VB.Net ScreenUpdating = False not freeze the screen at the time of its invoking?
View 11 Replies
Sep 25, 2010
This is my second post and today I have the following problem:I want to make a Steam Gamertag Maker ..
1) I have a RichTextBox.
2) I have 8 buttons each representing a color (red, green, yellow, blue, teal, pink, white and black ..)
3.1) I enter some text into the richtext box.
3.2) I select part of the text.
3.3) When I press a button, e.g Blue and the selected text changes to that color.
3.5) I have a copy button, that copies the content of the richtextbox .. and that is where the problem starts .. (The copied text has no color and so on .
4) If I press, for example the Blue Button, I want that the following text "^4", is written just in front of the selected text and that the selected text is colored blue at the same time. The other text should not be affected by those adjustments ..
5) If the "^4" is inserted, it should be hidden
6) If everything is colored, I press the copy button and it should copy the whole text, including for example the "^4" ..
7) I want the "^4" to be hidden, because it looks better, but if I copy the content of the RichText box it should be included ..
View 15 Replies
Apr 18, 2011
Rather complicated question here. I am improving the text coloring in my custom RTB ontrol, and it is pretty simple:Quote:1. Disable drawing (SetDrawing(False))2. Get current selection
3. Select lines to colorize4. Process selection RTa Font object.
View 2 Replies
Apr 1, 2011
Dim listbox1 As New ListBox
listbox1.Items.Add("<br/>")
Dim int As Integer = 0
Dim line As String = RichTextBox1.GetLineFromCharIndex(RichTextBox1.SelectionStart)
For Each item In listbox1.Items
[Code] .....
My coding selects an item from the list box and tries to color the words in the currently selected line, however, it often colors characters that come after the instance. Why is this happening?
View 2 Replies
Feb 14, 2011
I was wondering if it was possible to colorize syntax of, say HTML, inside of a RichTextBox by comparing each word in the current line of text against the collection of words in System.Web.RegularExpressions.AspCodeRegex? I'd imagine that from this question it would be possible?
View 3 Replies
Aug 30, 2009
How would I use his code and get it to work with a RichTextBox when a button is clicked?
View 1 Replies
Oct 8, 2009
I have an issue with Visual Studio's support for coloring User Types in VB.NET, I'm an C# developer that have been forced to code in Vb.NET by political rules in my organization, and I really misses the support for coloring user types in Vb.NET, I had hoped that this would be solved in Visual Studio 2010 and well in the beta they have added Vb.NET User Type coloring, but the coloring is the same for all user types I cant't have one color for interfaces and one for classes and so on.
View 3 Replies
Dec 19, 2011
I have to provide an Excel file as an output. I have to color some of lines and make them bold.The input is based on a dynamic list (in memory) and it also could be based on CSV file that I'm already provide today (based on the same dynamic list).I'm wondering what would be the most efficient way (in terms of performance) in order to provide the colored Excel output?Should I export directly from dynamic list into Excel - or - Should I export from CSV into Excel ?
View 7 Replies
Jul 12, 2010
I am trying to color the text in a node in a treeview using Visual Basic 2008. I can easily do this by using the forecolor property (currentNode.ForeColor = Color.Red). The tricky part is that I want to color the text within the same node different colors. Here is an example of the string I want to color...
strStatus = "ReleasedGN, EditYW, StopperRD"
currentNode.Nodes.Add(strStatus)
I use the codes GN, YW, RD to indicate what color I want the text to be. I want the status Released to be colored Green, etc...
Is there a way to color the text within the same node different colors?
View 2 Replies
Dec 6, 2011
I have a form with nearly 20 Textbox and 5 Combobox and one control in dependent on the other,Now I want to write the code for the form in such a way that, Pressing Enter Key and Tab Key should have the same functionality.Like on pressing Tab Key the focus moves to next control should also be performed when I press the Enter Key.Similarly when I press the Enter Key, there is some process code written in key press event but this should also be performed when I press the Tab Key.
View 2 Replies
May 25, 2009
I'm a complete noob to VB.NET and have just made a tic-tac-to game and want to make it multiplayer over the the internet with direct conection via IP address (like CFS3 and the like).
The only thing is I have never used the this before and have searched loads on google and on this site, I just can't seem to find anything that I can understand so if anyone can help me out with where to start getting two machines talking, I have used the WINSOCK tool in VB6 before but didn't really understand it.
View 1 Replies
Feb 6, 2012
I have used sockets in VB6 before but cannot get the same functionality to work in VB.net. I have two machines running VB code and I want the applications to exchange information via a network connection. Using VB6 and socks it was easy but I just can't figure it out in VB.net.The data exchanged are string messages; there is no interaction between users it's just the applications exchanging info. The one machine will always be the server and is running a windows forms application which I'm writing in vb.net (it's actually a satellite antenna controller) the other machine is connected by an Ethernet connection (private network these are the only two devices) and is also running a windows forms application which I'm writing in VB.net (this is the remote controller for the satellite antenna controller) Can someone give me a pointer to some simple code that opens a connection and I can read and write between the two (both ways) using string messages. I' am assuming sockets are the right way to go? Everything I research keeps coming up with console applications
View 4 Replies
Jul 6, 2011
Currently I have the following VB.NET code to make a screenshot of my desktop, but it only takes a picture of the active screen:
Public Function SaveScreen(ByVal theFile As String) As Boolean
Try
SendKeys.Send("%{PRTSC}")[code].....
The following code is how I execute the above function, if it makes any difference, which I don't think it does:
SaveScreen("C:Lexer_tracescreen.png")
Now, I need to be able to take a picture of the entire screen, not just the focused window.
View 4 Replies
Feb 2, 2012
Now I'm creating at app in VB (Microsoft's, Visual Basic 2010) which will be in full screen but I want to know if I can put all my content in the centre of the screen. At the moment it's at the far top, left of the screen. When the screen size varies I want it will stay in the middle for all shapes and sizes. Like :
<div style="margin: 0 auto; width: 500px;"></div>
But this is for web pages using HTML and CSS.
View 1 Replies
Jul 21, 2010
In the following code, the items master is displayed the user can select as many as needed to add to the budget grid. Now the need is to remove a line that was added if so desired or if by mistake they added the wrong line.[code]..
View 1 Replies
Mar 3, 2010
I want to statically define a mapped array of strings like:
var dict = {cat:50, bat:10, rat:30}
and lookup values within it like:
MessageBox.Show( dict["cat"] )
View 2 Replies
Mar 16, 2012
adding certain functionality to an existing ASP.NET application running on IIS 6.0 programmed in VB.NET.To aid in future development the client wants the additional functionality to be as future proof as possible. Ideally i have said that I would like to push for a solution using ASP.NET MVC3, running off IIs 7.5 and .NET 4, written in C#. This solution would act as a seemless addition to the current web-portal appearing probably just as an extra tabbed page.
But they will be completely seperate web-apps. Which is crucial.The main problems i can forsee are firstly sharing session particulars between the asp.net web app and the new application. Particularly with regard to maintaining session state (and not having IIS timing out on one of the apps). Also, conjoining the two "apps" appears problematic in my head, although this may be far simpler than i fear.
1) Embed the new fuctionality into the existing codebase (not a great option). This would mean losing any potential future upgrade-ability and also means not following better OO conventions by utilising the MVC framework.
2) Using an iFrame to link to the razor pages of a seperate MVC3 app (the one im favouring currently). Allows uses of all new technologies, however downside is sharing session data. Either through iFrame "attributes" through persisting a session state to a db? (slow?) or even some kind of web service interaction between the applications to push/pull user/session data?
View 2 Replies
Jul 14, 2011
I need my asp.net web app to enable users to select a folder from the file system and also from network, to copy the content files to another folder.
I am not going to use javascript activeX.
View 2 Replies
Nov 24, 2009
I need to add in mail merge functionality to my application. I don't have MS Office, but I do have MS Works (which does have mail merge functionality, in the word processor application). Can the MS Works Mail merge functionality be accessed from VB.NET code.
View 1 Replies
Feb 29, 2012
I'm trying to get coordinates on my screen by holding down my mouse and placing it over different parts of the screen. I'm using the mouse_up and down events in a button to kinda simulate the mouse being held down. The problem I'm running into is that anytime I go past the button's bounds, the coordinates I want stop. This is what I have so far:
[Code]...
View 2 Replies