Shape Of Really Large Characters Such As Numbers And Alphabetic Characters
May 9, 2011
With the shape of really large characters such as numbers and alphabetic characters + others, is there a way to get that shape as a REGION please?Imagine a really fat snake forming the letter S or two rectangles placed together to form a large letter L or a T like the shapes in TETRIS.
1) Does anyone know of anything in VB.Net that can translate such shapes into a System. Drawing.Region or know of a project elsewhere that achieves this please?
2) While I'm on the subject, how would you SCALE UP / DOWN a System.Drawing.Region please? How would you work out the Transform Matrix required please?
View 1 Replies
ADVERTISEMENT
Mar 16, 2009
i m trying to generate a large random block of characters(lets say 100 characters).This below is the code i used to generate a letter but to generate lots of characters(letters) i couldn't.I then wish to display them in a RichTextBox:::
Public Class Form1
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim rand As New Random
Dim letter As String
letter = ChrW(rand.Next(Asc("A"), Asc("Z") + 1))
TextBox1.Text = letter
End Sub
End Class
View 3 Replies
Feb 17, 2012
I am attempting to make an application that can load in a large file that has some unique characters in it. A majority of the file is plain text, and ultimately I need to replace specified values with other values.The file is an InstallShield .ILG file - I am trying to have a small executable modify the "Feature" GUID entered in the file so that future installations/upgrades identify the new type of features it has. It's a fix for some software issues that would really expedite the solve without having someone un-install and re-install the package each time.
The problem is regardless of the methods I've tried to load the file, it doesn't bring over the data. It's a unique file that I do not want to modify/parse any data in other then those specific fields. Anytime I attempt to convert it to string I just get a few characters that are blocks. I've attempted all types of loading methods within VB but it continues to fail.
I've gotten this utility to modify everything from the config files to the proper DLLs it needs to load and the registry it needs to change. But it's this one piece that regardless of my attempts I can't find a way to load and modify the ILG file.
View 19 Replies
Dec 21, 2011
Essentially I am trying to replicate the Windows 7 (In-Windows) activation key TextBox form. The Form where it will auto capitalize letters, remove or deny all non alphanumeric characters except dashes every 5 characters that will be auto-input.I assume this can be done with a fairly complicated replacement Regular Expression but I cannot seem to create one to fit the needs.
This is an Example of what I have right now, but it creates an infinite loop as it removes all characters including dashes, than adds a dash, which changes the text and removes the dash again.
[Code]...
View 4 Replies
Sep 13, 2010
i have been trying to remove special characters. i am not able to remove many crlf in middile of the string.
View 3 Replies
Aug 3, 2009
I need to create a console program that allows you to enter a string, of which is then outputted in reverse.
Sample:
Input: Diewas
Output: saweiD
Apparently I need to find out about strings and will also need to use a loop.
View 9 Replies
Feb 23, 2011
Not sure if too many people know this, but the following line will cause an error:
GroupName.Substring(0, 3) = "jt_"
....if the length of GroupName is less than 3 characters. I always thought it would simply return whatever characters in GroupName, but no, it errors. I must be thinking of the old VB6 days.So, I now have to change the code to:
If (GroupName.Length > 2) Then
If (GroupName.Substring(0, 3) = "jt_") Then
Note that the two comparisons need to be on separate lines. If they are on the same line, such as:
If (GroupName.Length > 2) and (GroupName.Substring(0, 3) = "jt_") Then then the code will still fail as the length command is executed at the same time as the substring command- which will cause the error when the GroupName length is less than 3.Just thought that those of us not aware of this should be!
dp.SyntaxHighlighter.ClipboardSwf = '/dp.SyntaxHighlighter/Scripts/clipboard.swf'
dp.SyntaxHighlighter.HighlightAll('9844f9bfb55449e6a786fa62aaadfa20')
dp.SyntaxHighlighter.HighlightAll('f6d554fd98464bdba9159b319e51b381')
dp.SyntaxHighlighter.HighlightAll('93bf4ca63ad8447abdf084d8a9991e15')
View 8 Replies
Aug 5, 2011
I have two textboxes. I type in one of them and the text gets copied in real time into another textbox. There is one catch. I need to replace specific character with something else.
If I enter a quote " in textbox1, it has to be replaced with " in textbox2.
I started with something like the below code, but obviously this does not work (tried different stuff - this is for demonstration only). In the example below 'a' represents " , and 'b' represents "
Private Sub TextBox1_KeyUp(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TextBox1.KeyUp
TextBox2.Text = TextBox1.Text
[Code]....
View 2 Replies
Aug 27, 2011
I'm making an application that will change position of two characters in Word.
[Code]...
Program works good, it is mixing characters good, but it doesn't write text to the file. It will write text in console, but not in file. Note: Program is working only with words that are divisible by 2, but it's not a problem. Also, it does not return any error message.
View 1 Replies
Feb 20, 2011
I'm making a custom control suited for handling passwords. I have created a control that inherits from a text box and I have implemented a lot of things so far. But what i want to do now is create a system so that when a user types It will display his last character typed for a X amount of time. Is there a way to turn only selected characters into password characters and still be able to get the password text from the Text property ?
View 4 Replies
Jun 21, 2009
can anyone help me in restricting characters or numbers in a textbox?
View 5 Replies
Dec 15, 2011
I use Visual Basic 2008 with Mysql I have a table article with the following data :
Articlenb - Productcode - amount
1 - XXL - 1
2 - 12 - 1
[Code]......
View 1 Replies
Apr 1, 2010
How do i validate a field which contain both characters and numbers? For example, I have a field call Item ID and it must be in the form of ABC123 where ABC is the fix characters that will appear in all the Item ID and 123 is the one that will change accordingly.
View 2 Replies
Jul 12, 2009
Does anyone know how to do the following:Get a string with with random characters and numbers in it?I want the string to be 6 characters long.
Basically, when a button is clicked, i want to fetch random letters and numbers and assign them to a string.
View 1 Replies
Mar 17, 2011
I figured there would be some simple way to set up some textboxes to allow ONLY numbers or ONLY characters, however I haven't found an easy way yet.
Is there a simple trick to setting something like this up? And if so, how would I do it?
View 3 Replies
Jun 2, 2011
how to validate a text box to accept only alphabets and numbers. no special characters. in vb.net i have tried the following code but it doesn't allow numbers but it allows alphabets only
Private Sub TextBox2_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles TextBox2.KeyPress
If (Microsoft.VisualBasic.Asc(e.KeyChar) < 65) _
Or (Microsoft.VisualBasic.Asc(e.KeyChar) > 90) _
And (Microsoft.VisualBasic.Asc(e.KeyChar) < 97) _
[code]....
View 1 Replies
May 8, 2009
how to make a program that makes all the possible characters and numbers (A-Z & a-z & 0-9) from 5-20 characters, and put them in a list or something?
Someone may think this is bruteforce hacking, but I don't see why I should do that? If I want to find a password on 13 characters, it would be: 62^13 = 200028539268669788905472 possibilities... in other words... it would take forever!
View 3 Replies
Nov 22, 2009
i want to prevent users from entering numbers and other characters such as (_,"*&^$#).... into my textbox-u know what i mean! I want my textbox to accept only alphabets. I have written a function that is able to check the numbers but i don't know how to check whether the text contains those special characters. Here is my code for the numbers. i'm sure, just as i'm able to check the numbers. i'll be able to check for those characters.
Public Function ValidateText(ByVal GetString As String) As Boolean
Dim Count As Integer = GetString.Length
Dim i As Integer
[Code].....
View 2 Replies
Dec 11, 2011
How Can I make TextBox accept only Latin characters and numbers.?
View 9 Replies
Jul 9, 2010
In order for me to increment a Number, It's just too easy.Here's How to Increment a Number.[code]
View 5 Replies
Aug 1, 2011
I need the code to filter the data entered in a textbox. Although it accepts all the characters during runtime, the code should remove all the strings and alpha numeric characters except the numbers (which would be my output). I tried the following code but guess it won't do:
a = Textbox1.text
Dim value As Decimal = CDec(Regex.Replace(a, "[D]", ""))
View 3 Replies
Mar 8, 2009
I know how to declare a variable, a function, to write a string of characters or numbers (I still looking in tutorials and depict from there what i need to know) but...WHAT I DONT KNOW is how to USE them? At "what" or "how" are you thinking when you make a program? I try for SOME LOooNG TIME to understand but I think im too stupid to understand from pages on the net (or i dont find THAT tutorial who can explain right for me).I try a lot of programing languages starting with pascal,c,c++,darkbasic,alice, Visual-c,c#,c++,basic,php,even assembler, some programing zones in Excel and Word but from all of this i cant manage to understand the life behind the words.
View 1 Replies
Aug 24, 2009
I'm about to make verification code to my app it would be built out of random characters and numbers,i have no problem making a custom one,but before i go and do it i just wanted to ask if there is built in method of such thing .NET environment
View 3 Replies
Aug 4, 2009
I know that the topic is kind of weird, but I will explain that here. I am reading text from a text box and inserting that into a listbox. I am wanting to read what the user inputs into the text box and add a character between each character they type. Here is what im wanting to do written out[code]...
View 4 Replies
Aug 4, 2010
example. i have 2 textboxes and if there empty it says "Incorrect Information", but how do i make it that like when a person enters something into the textbox1 it can be 3 values minimum.. like it could be eather 2 letters 1 number or what ever just more than 3 values (no special characters), and on the password.. 6 values minimum (no special characters).
[Code]...
View 14 Replies
Nov 19, 2011
I have encrypted a string to something like this:
1. Asak2$)kla1015QAXKFskfa332aSJ2(Ska@Skljcmcel3p.lq,aowpqaskla2@)Skx.:Pdm^),dfs;
what i want to is convert this string to something like this
2. JXK2LB AP2WXB S1P0XE ZXPA3H X1LAKW DOXPS3
both 1 & 2 the above strings are fictitious (i made them up to make my point clear)
I am trying to make a licensing system for my VB 2010 express application. (2) above will act as a serial key which can be derived from (1) which is an encrypted form of something unique of the client computer.
I will then confirm the (2) from the client.
View 9 Replies
Aug 7, 2009
So I have an ASP.Net (vb.net) application. It has a textbox and the user is pasting text from Microsoft Word into it. So things like the long dash (charcode 150) are coming through as input. Other examples would be the smart quotes or accented characters. In my app I'm encoding them in xml and passing that to the database as an xml parameter to a sql stored procedure. It gets inserted in the database just as the user entered it.
The problem is the app that reads this data doesn't like these characters. So I need to translate them into the lower ascii (7bit I think) character set. How do I do that? How do I determine what encoding they are in so I can do something like the following. And would just requesting the ASCII equivalent translate them intelligently or do I have to write some code for that?
Also maybe it might be easier to solve this problem in the web page to begin with. When you copy the selection of characters from Word it puts several formats in the clipboard. The straight text one is the one I want. Is there a way to have the html textbox get that text when the user pastes into it? Do I have to set the encoding of the web page somehow?
[Code]...
View 4 Replies
May 3, 2012
I have a string of characters, but I would like to have a string of hexdecimal characters where the hexadecimal characters are converted by turning the original characters into integers and then those integers into hexadecimal characters. How do I do that?
View 3 Replies
Nov 23, 2011
When I swipe a card into Word Pad, I can see the information on the card. his information is a 39 character string of letters, numbers and other characters.I would like to be able to 4 consecutive characters of the 39 as a userid.Sample string of characters:;12345678GAM123456789GAM123456789GAM12?
View 6 Replies
Apr 13, 2011
I'm making a custom control suited for handling passwords. I have created a control that inherits from a text box and I have implemented a lot of things so far. But what i want to do now is create a system so that when a user types It will display his last character typed for a X amount of time.Is there a way to turn only selected characters into password characters and still be able to get the password text from the Text property ?
View 3 Replies