|
you're good, i learned it in only 1 hour.
i created a server and client program.
the server keep listening and any single text send from client, i write it in textbox.
and the client mark the server IP and can only send text.
nah i got question, chatroom is something that everyone sees every word.
so if server receive text from 1 client, server should loop and send it one by one to client?
btw, thank you very much.
|
|
|
|
|
vkstarry wrote: i learned it in only 1 hour.
Whehe, that means that you are good at it - not me.
vkstarry wrote: nah i got question, chatroom is something that everyone sees every word. so
if server receive text from 1 client, server should loop and send it one by one
to client?
Yup, or store it all in a central location (but than you'd have a server again).
You could "promote" one of your peers to "act" as a server for the duration of the chat. All the clients would have to agree on who gets promoted, but it should generate less traffic than having each client update each client.
Bastard Programmer from Hell
|
|
|
|
|
anybody can help me..how to control motor use visual basic at avr?
|
|
|
|
|
You can start by NOT hyjacking someone elses thread.
I think you may have missed the "Ask a question" button above the forum posts.
|
|
|
|
|
I am facing a certain problem. I am trying to delete a certain file programmatically that resides in the system32 folder (malicious file). When i try to delete it using the kill statement an error message shows that says Access Denied as the file is being used by another process. When i searched i found out the that winlogon.exe uses this executable. How can i remove this handle programmatically. Any ideas and suggestions would be very helpful.
|
|
|
|
|
WinLogon cannot be unloaded, and you cannot unload anything that's being referenced by it. You could have Windows remove the file "after" a reboot (it does this before it starts the shell, meaning that WinLogon will not yet be in use)
That's not recommendable though; the infected file will have replaced the original, and deleting it will corrupt your system. Unless you can put back a file that's not infected, best idea is to not touch it.
Bastard Programmer from Hell
|
|
|
|
|
No, just a new malicious file has been created in the windows/system32 folder.When i try to delete that file it shows file in use . and this file is being used by the winlogon.exe process. how can i delete this file programmatically.
|
|
|
|
|
How did you determine that it's a "new" file?
Files can only be deleted when they're not in use, and you can only remove it after a reboot and before logon, as described before. (Simple explanation, I cannot throw away your mug if you're still drinking from it, since it's in use)
WinLogon does not load random files. If the file is in use, it counts as a dependency. If WinLogon is started without the dependency, it will simply fail.
"Old" file's would be "corrected" by putting back a copy from a previous restore-point, or by copying back the original file from the setup.
Bastard Programmer from Hell
|
|
|
|
|
how to create a menu items on a form you had?... hmmm...
hermaine...",)
|
|
|
|
|
Do you wish to create a menu on your form?
In the toolbox, in the menus & Toolbars section, drag and drop a MenuStrip onto your form then start filling in your various menu options.
Double clicking the finished menu will create a a Private Sub menu item click event where you place the code to call the various menu item request calls.
Hope this helps
|
|
|
|
|
hlep me
-how can write (dictionary as string code)in information retrieval code via vb.net?
and
-how can write (fixed width code) in information retrieval via vb.net?
and
-how can write (blocking code) in information retrieval via vb.net?
and
so much thank you
|
|
|
|
|
haneeno wrote: how can write (dictionary as string code)in information retrieval code via
vb.net?
Depends on the way that the dictionary is written to file/the structure of that file. Without any additional info, I'd say "deserialize".
haneeno wrote: how can write (fixed width code) in information retrieval via vb.net?
By reading the file as text, and copying the content of that subpart of the string. See the System.IO namespace and the examples on MSDN.
haneeno wrote: how can write (blocking code) in information retrieval via vb.net?
All code is blocking, if you want async code you'll need to define a thread.
Bastard Programmer from Hell
|
|
|
|
|
Can sombody help me make a startup window that fades in and out?
|
|
|
|
|
I suppose there may be another way to achieve this, but ....
If the information to be displayed on the Startup Form is to remain static (ie not changing) may I suggest using an image transition effect to achieve your "Start Up Fade".
First create a graphic of your "startup page information" which will be displayed in a picturebox control.
Then I would add a new winform or splash to your project, set FormBorderStyle to None, add a PictureBox the size of the form that will load the page graphic (Startup Image) you created, then when the new form loads on application start, call the image transition effect, cycle through the fade in, small delay then fade out then close the window.
I believe the CodeProject has a project that demonstrates how to implement a simple trasition on images in vb.net which could be used to create the fade in fade out process.
http://www.codeproject.com/Articles/43605/Image-Transition-in-VB-NET-Windows-Forms
Hope this helps
|
|
|
|
|
Look for "splash screen".
By the way, you should check whether your application is running in some kind of remote session (RDP, Citrix): in such a case, do not use fade-in fade-out effects as that will cause large network traffic.
|
|
|
|
|
There's a reason why you don't see apps do this any more. Does it add value to your app??
Every time I see one of these gimicks I think, "Couldn't they have spent the time to make this on making their app work better??"
|
|
|
|
|
Hi guys
I'm not able to display image from tablegridview to picturebox visual basic 2010 studio.
I know how to reference text value from a cell on tablegridview to textbox I had been created .
this the Code how to do this :
TextBox2.Text = Table1DataGridView.Rows(0).Cells(3).Value.ToString
my question is how to do it with image if you have this image on Table1DataGridView
I tried this code for image but it doesn't work I got error
PictureBox1.image=Table1DataGridView.Rows(0).Cells(2).Value.Toimage
or
PictureBox1.image=Table1DataGridView.Rows(0).Cells(2).Value
both of these cod not work and I get error
please Help
I hope that some one can solve this complex problem and i will be great full for you .
mju10ht@gmail.com
|
|
|
|
|
Try something like this;
PictureBox1.image = CType(Table1DataGridView.Rows(0).Cells(2).Value, Bitmap)
Bastard Programmer from Hell
|
|
|
|
|
thank you for help, but I still get error
show me this :
Unable to cast object of type 'System.Byte[]' to type 'System.Drawing.Bitmap'.
I wonder if that code work to you, so that means the code will be correct and I did something wrong
please I need help
|
|
|
|
|
Dim bytes as Byte() =
Using ms as new MemoryStream(bytes)
Dim img As Bitmap = CType(Image.FromStream(ms), Bitmap)
PictureBox1.Image = img
End Using
Bastard Programmer from Hell
|
|
|
|
|
I don't why he put blue line under MemoryStream(bytes)
Dim bytes As Byte() = Table5DataGridView.Rows(0).Cells(3).Value
Using ms As New MemoryStream(bytes)
Dim img As Bitmap = CType(Image.FromStream(ms), Bitmap)
PictureBox1.Image = img
End Using
on error list show me MemoryStream(bytes)is not
defined
|
|
|
|
|
Prefix it with the correct namespace, like this;
Using ms As New System.IO.MemoryStream(bytes)
..or Import the namespace
Bastard Programmer from Hell
|
|
|
|
|
finally yes it's work how can I say thank you for your help .. but you know what you are my super hero who save my time after two days of stupid attempts went fail. oh my God why I didn't ask you from the first day i got this problem, I have a project and this project depends on this code otherwise I will stop work on this project after I faced this problem but now I'm very excited to back work on my project
|
|
|
|
|
You're welcome
|
|
|
|
|
Nicely done
Why is common sense not common?
Never argue with an idiot. They will drag you down to their level where they are an expert.
Sometimes it takes a lot of work to be lazy
Please stand in front of my pistol, smile and wait for the flash - JSOP 2012
|
|
|
|