A while ago i did a small VoIP chat for LAN-network where i used TCP protocol.But due to the overhead on TCP (causes major loopback in the sound) i'm trying to change to UDP, but got some problem.I used BeginAccept to add new clients to a list, but i can't use BeginAccept unless i use "Listen" first.But UDP dose not have the "Listen"-function, so i'm kind of stuck.(This is on the server-application)Here is most the code i use for the TCP version
I'm searching for a way to change the font size of selected text in a RichTextBox (rtf) having different font families (e.g. Arial and MS SansSerif) and font styles (underline, bold...) using the FontDialog, but without changing the families and styles. The following code resets all the font attributes, which is not what I want:
Partial Class _Default Inherits System.Web.UI.Page Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load If IsPostBack = True Then
[code]....
Three buttons-ABC,CBA and Show. if you click on ABC and then Click on Show button The textbox shows "ABC" but when I Clicking on CBA button And then Click on Show button The textbox shows again "ABC". IsPostback property will true on each time the page is posted to the server. So the session reset the value.
my school project were making a points sytem for students to get points for being good etc and claiming rewards.I have a problem where in the csv file i need to save a students new point total into the csv which looks like this Student1,username,name,points Student2,username,name,points and so on, however i cant figure out a way to change just 1 persons points, at the moment i have this code.
Try Dim newtotAL As Integer Dim pointstoadd As Integer Dim pointsalready As Integer
[code].....
This works however it changes the entire row of the file.
i just want to know about programming in vb.net. it is based on traffic light first i have 3 text boxes. now when i hit the tab key it is supposed to change in green, yellow and then red. i got the change of color but i do not know how to assign the tab key in it.
I am trying to change the cursor type to a crosshair but am having no luck. The program I am writing initially starts up as taskbar notfiy icon. Once one of the menu items is clicked the mouse cursor should change from an arrow to crosshair. This should remain like this when the mouse button is pressed again, held and then released and then it should go back to being an arrow cursor once again.To start off, I wrote the following code:
Private Sub changeMouseCursor(ByVal sender As System.Object, ByVal e As EventArgs) Handles DisectMyScreenToolStripMenuItem.MouseLeave Cursor = Cursors.Cross End Sub
This does not work but do not understand as to why this is. Visual basic 10 on Windows 7 SP1. dot net framework 4.5 Beta?
if its possible could i temporarily change the inner code of a program instead of using a timer or multiple buttons ex: i have a BUTTON1 set to open a webpage like [URL]how be able to do something like this
Private Sub BUTTON2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click if textbox1.text=1 then button1.code=me.close
I have an image that is using an indexed pixel format. I can't load such an image into a graphics object using loadimage. Ultimately, all I am trying to do is to overlay one bitmap onto a different one, neither of which will be visible for some time, if ever. That looks like it can be done fairly easily by loading the BMP into a graphics object, then drawing the other image onto it. However, that would require transforming the incoming image from an indexed pixel format to a non-indexed format.
first of all i want you to know guys that im not good in English, sorry if my English is bad hope you can understand me:) Im working an application that has a function to change the TCP/IP,, and my plan is change the tcp/ip in the registry i found how to change it in: HKEY_LOCALMACHINE\SYSTEM\CurrentControlSet\services\Tcpip\Parameters\Interfaces\
have created a text editor, but I want to upgrade it with some serious functionality and userbility.
I have done most of the things that I had planned, but I have also come up with an idea that I am not too sure on how to code.
I have created a dialog box which opens when you click the options menu item in the menu stip control, I have customised this dialog box so the user can change display modes and so on but now I want to be able to change the language of the entire application as in from the default English (american) to French, German and so on.
When the user changes the language selection I want the text in the menu bar, the title of the app and the text of whatever is in the text box of the app.
I have created check boxes for the language selections, and invoked the check box click handle events but not sure how to proceed with the rest of the code.
how I could change the value of "GetTickCount" of another process. I understand that I have to write to the process and I have tried multiply ways of doing it but they have all either given me errors or did nothing at all.
I have a toolbar and the color is black I have a split button that I added via the toolstrips button but the text color is blue even if I ajust the fore color it wont change.
I am making a desktop wallpaper manager but i can't get it to work on Windows XP.[code]It works on Vista and 7, but when i try on XP it just removes the current background and replaces it with a blue color?
I have a simple Dictionary(of String, Object) that I need to iterate through and change items depending on some conditions.As I can't modify a collection that I'm iterating through, how do I achieve this?For example, the following obviously causes an Invalid Operation Exception:
Dim mOptions As New Dictionary(of String, Object) mOptions.Add("optA", "A") mOptions.Add("optB", "B") mOptions.Add("optC", "C")
I need to add an option of Changing Password in a simple one file and one form based Win Form Application. Any advice/guidance in this regard other than using a single CONST PW in the code being unable to be changed later on?
I am having in VB.NET 2010. I am writing an app to change the background wallpaper kinda a little project I am making for my wife's grandma. It is a multiple wallpaper changer to change the wallpaper based on a list of images she adds. Anyways! I have everything setup except the fact that it doesn't change the wallpaper...
This code here:
Public Declare Auto Function SystemParametersInfo Lib "user32.dll" (ByVal uAction As Integer, _ ByVal uParam As Integer, _ ByVal lpvParam As String, _
[CODE]...
Will NOT change the wallpaper but the same code works in VB6 I tried it because I have made something like it before in VB6 but it was a game that changed the wallpaper. Anyways, using the above code in VB6 works(well with a change to the SystemParametersInfo declare to work within VB6. But it doesn't work in VB.NET. I have NO IDEA why everything gets set in the registry just fine from VB.NET but I just cannot seem to get it to update the wallpaper...
In my windows application, the first form is login form. When the user double clicks my application, the applications icon flashes in the taskbar though the cursor is in the username textbox. The user then again should use the mouse to turn the focus to the login form. But however while i am working with the source code its working just fine
I've used this method in the past and it's worked but I can't figure out what's different about the environment now that's stopping this from working.I have a string that I want to assign array values to. I dim it then I go to assign and I get "Object reference not set". [code] If I change it to the following it works but my UBound is too high for proceeding calculations and loops or too low to accept the total input I need it to take
I am designing a multlingual system. At one time, a person might want to use Arabic as his language of communication. In the form i have combobox and a richtexbox. I want If someone has selcted Arabic from the combobox, the richtextbox down to be formatted such that whichever letter a person types in it is in Arabi. The code I am using is stilling giving me english characters. When I change manuall by changing the regional settings, i can use the Arabic characters. I want this to be done automatically upon selecting Arabic in the combobox.
I would like to ask about how to code datetime in CONSOLE vb.net. I already got the format but my problem is after I inputted another data today to the database. In this image,my data retrieval was error. The ID (1,2,3,4,5,6)should be jan 2. Unfortunately, the output was today after Ive put new data to the database. I was confused on how to code to avoid changing the date.
Assume that I have a normal picture box with a picture loaded, how can I change the picture within when the user clicks on it? Example: Clipart of a book changing to clipart of an ocean.
I have created several small applications that use my own DLL. The problem is, this DLL is constantly changing. My current solution to this problem is that I have a Setup project in the class library solution that creates and registers the DLL. In all my applications I then have to open the solution and re-reference the newly created/registered DLL. Then I have to re-compile their setup projects, uninstall the old applications, and then re-install the new application.
There has to be a better way and I'm just not sure because I'm fairly new to all this. I have looked into ClickOnce but I don't think that will solve my issue as I cannot publish a class library. I have looked into checking version numbers but I must be doing something wrong because it doesn't work either.I understand that once a DLL is created and being used in an application it should essentially not be touched. I do not have that option in this situation. It is constantly updated. Done.
Edit: The DLL is not constantly changing during runtime but it is constantly evolving to allow more functionality and detail within the other applications. Also, one big thing I guess I should have mentioned is the Public interface is constantly chaning - usually adding new methods.
Is there a way to edit a certain item in an arraylist? For example, I have a arraylist consisting of 2 strings "ball" at index 0 and "dog" at index 1. I want to change "ball" at index 0 to be "cat".
changing a character case for exaple i have a textbox i want that when i write a word it should change case by character to character like : if i write " case " then text box should display " cAsE "