Topics
-
-
- Administrators
- 2 replies
- 2.2k views
[PLAIN]"OnPaint" flickering on text lines. can it be avoided somehow? [source code included][/PLAIN] Hi There Anyone got a idea how to get rid of the flickering? Yes, complete source code is pasted also. copy and paste the code and RUN it. now move the mouse up and down... Option Explicit On Public Class Form1 Dim iLine As Integer Dim iTab As Integer Protected Overrides Sub OnPaint(ByVal e As System.Windows.Forms.PaintEventArgs) Dim myGraphics As Graphics = MyBase.CreateGraphics() Dim myPen As New Pen(Color.FromArgb(45, 45, 45)) Dim myBrush As New SolidBrush(Color.FromArgb(230, 230, 230)) Dim myBrush2 As New SolidBrus…
Last reply by jari_stockholm, -
-
-
- Administrators
- 1 reply
- 2.7k views
Hi all Ok, i've been trying to work this out for hours but without any luck. The code below saves the contents of listbox2 to a folder, removes unwanted characters and then shortens the file name length down to 8 characters. Now, what im trying to do is to put the filenames from listbox2 into a string 'JPGFILENAMES' which will hold the filenames before being modified (ie. Vista Areo.jpg) Next, i need to have the modified filenames put into another string 'JPG' (ie VistaAre.jpg) Now, when all the filenames have been put into each string they would look like this: JPGFILENAMES(1)="Vista Areo.jpg" JPG(1)="VistaAre.jpg" ect.. Or it might be…
Last reply by PlausiblyDamp, -
-
-
- Administrators
- 1 reply
- 682 views
basically here is my issue. I run a football team and i pay o2 for online texts each month so i can send weekly texts to are team to let them know this weeks game details. Right i do this by sendkeys, which is not a issue. But the issue is i want it to be able to only send a sertain number of times. at the moment it goes on indef. which is never good. I'l just point out im a complete beginer with vb.net, and only code for fun. It only takes me ten minutes to send the messages manually but i wanted to do it just for fun. 2 of the text boxes, txtN.text = number of times to send & txtH.text is the hidden text box that stores the varible. i dont know how else i c…
Last reply by PlausiblyDamp, -
-
-
- Administrators
- 8 replies
- 1.4k views
Hi! I have a picture in WPF. The picture has words on it. I want that when the user hovers over certain words that I choose, a tooltip will appear with something. How should I do this? Should I draw a rectangle over the words that I want and then access there points through code? Any other ideas? Please help. Thanks a lot!
Last reply by PlausiblyDamp, -
-
- 0 replies
- 1k views
Hi I am using a dll to extract information from an epos terminal. This brings me back information about the buttons on the terminal. It brings me back an integer for the button color as a 256 color pallet number. How do I use this for the background color of my button on my form. Thanks in advance
Last reply by tommyf, -
- 0 replies
- 621 views
Hi, My first post in this forum. My question is simple. I have an asp.net website running on server A and exchange server running on server B. I want to execute Powershell commands like "Get-mailbox" on server B remotely from server A. I know how to use Runspace and Pipeline locally but I am not able to find an appropriate solution to execute these commands on remote server (Server B in my case). Can anyone please point me to the right directory with some sample code or so ? (I believe impersonation may be the solution but being novice I'm not able to proceed further). Regards, John
Last reply by turburator, -
- 0 replies
- 930 views
Hi, I have an old amplifier which connects to a tuner and a tapeplayer, which are connected though three chinch cables (2xaudio 1xcommunication). Now instead of connecting the com-cable to the tapeplayer, I connected it to a loudspeaker and it was as I have hoped: As soon as I pressed a button on the amp remote, I could hear a signal coming from the loudspeaker. Now the next step of the plan is to connect it to my soundcards line-in port, and then interpret the signal. The problem: I have next to no knowledge about audio processing. I guess I'd have to extract the frequency and the volume level, so I can differenciate between the different buttons presse…
Last reply by Arokh, -
-
- Administrators
- 6 replies
- 5.7k views
I would like to display a file in a textbox or RichTextbox. I how load the file but the file is encoded in UTF8 format. and some characters do not show. Like chr(0) chr(1) chr(3). Things that are not really displayed. Is there away to display these characters? I know it would be more of a "place holder" but that is what I would like. Thanks ZeroEffect
Last reply by PlausiblyDamp, -
-
-
- Administrators
- 1 reply
- 1.4k views
Hello. I have the following code: Dim mail As New MailMessage(email_from, email_address, Subject, body) If EmailBCC <> "" Then mail.Bcc.Add(EmailBCC) Dim client As New SmtpClient(email_smtp) client.UseDefaultCredentials = False client.Credentials = New Net.NetworkCredential(email_user, email_pass) client.DeliveryMethod = SmtpDeliveryMethod.Network mail.IsBodyHtml = True If CuAtasament = True Then mail.Attachments.Add(New Attachment(pdf_stream, "Factura " & NrFactura & " - " & Utilizator & ".pdf")) End If Dim dac As New DataAccess Try client.Send(ma…
Last reply by PlausiblyDamp, -
-
- 3 replies
- 5.3k views
Hi everyone! Have successfully set up a PrintPreviewDialog that shows the document to print very nicely. The dialog's Print button, however, just prints a blank sheet of paper. The document prints very nicely from other code in my app using PrintDocument's Print method but not from the PrintPreviewDialog. Any advice would be appreciated. Woodster :cool:
Last reply by bkwdesign, -
-
- Administrators
- 5 replies
- 1.8k views
Part 2 of an earlier post. Going in a different direction. A vendor gave me some code to generate a checksum. I got the vendor code working and it does not even come close to returning the right value, so I suspect they did not understand what I was asking. It does generate a correct CRC 16 value but that is not what their program produces. If i can figure this out then I can automate one labor intensive process and eliminate a test further down the factory line. I found this tutorial for generating checksums at http://www.netfor2.com/checksum.html I used this to base my new algorithm on because I downloaded �010 Editor� by Sweetscape. It calculates various …
Last reply by MTSkull, -
-
-
- Administrators
- 1 reply
- 847 views
This is my first post here. I just want to ask if anyone here is familiar upon getting the error if I send a mail to the person whom i wanted to send. I just want to get this following errors: 550 5.1.1 unknown or illegal alias. 451 4.2.1 mailbox temporarily disabled. 451 connection not allowed this time. 553 5.1.3 multiple address not found. 452 4.2.2 user over quota. Could anybody help me how to get that errors? Thanks in advance. I a using SMTP upon sending my mail message. All I want is to get the logs of it once it bounces back. I want to get those errors above. Regards, Shyguy
Last reply by PlausiblyDamp, -
-
-
- Administrators
- 6 replies
- 1.4k views
Hey Guys, I am wanting to search a database for a specific word, well user name. At the moment if the username is 'eb123' and i type in 'eb' it finds the username. i want it to be able to only find the username if the full text is typed can this be done? If you know of a more effective way of storing use settings password usernames etc please let me know. Thanks
Last reply by bluejaguar456, -
-
-
- Leaders
- 2 replies
- 1.7k views
I was given a set of functions in c or c++ that I need to convert to C# if possible. Background: I am automating a process that will take two hex formatted data files and merge them to create an aggregate memory map for a microprocessor. We have 30 to 40 active products and each has different firmware and initial data files, these files change on a regular basis and I don�t want to have to maintain the system. So I want to be able to create these files on the fly, so I can feed the updated file to the microprocessor programmer every time a batch of products is constructed. The manufacturer has several utilities to create the files but it is not easy to do with so m…
Last reply by MTSkull, -
-
-
- Leaders
- 12 replies
- 2.8k views
Hi, I'm developing a class derived from Panel Control. It's Transparent, moveable and resizeable. When moving or resizing (onMouseMove event) it draws a Temperory rectangle over the parent control. I Adding a single control to a form from this class isn't a problem. But when I add multiple controls on a form I have a problem. If I move a control the others that are added later are not painted. Let's say I have 3 controls If I move the third one everything is normal. If I move the second one the third doesn't paint during movement. If I move the first one the second and third don't paint.. After the movement everything comes back. I think the problem is my later added …
Last reply by aliassce, -
-
- 0 replies
- 1.6k views
Hi All Can someone tell me what is the difference between encryptbycert and EncryptByKey? I know with the one you uses the key and with the other one you just uses the certificate? But is that all? And which one would you prefer? Thanks
Last reply by JohanPrinsloo, -
-
- Administrators
- Leaders
- 6 replies
- 8.9k views
I get the following error: A first chance exception of type 'System.OutOfMemoryException' occurred in system.drawing.dll Additional information: Out of memory. On this line of code in the debuger: Dim imgImage As Bitmap = Bitmap.FromFile(strPath) Try Dim imgImage As Bitmap = Bitmap.FromFile(strPath) ImageList1.Images.Add(imgImage) Dim pic As New PictureBox() imgImage = imgImage.GetThumbnailImage(50, _ 50, Nothing, Nothing) pic.Image = imgImage pic.Dock = DockStyle.Top Panel2.Controls.Add(pic) GC.Collect() strPath = Nothing Catch …
Last reply by snarfblam, -
-
- 2 replies
- 1.5k views
Heyey I have a WinForm application built in VB.NET, all works fine. Now I want to have a nice icon to finish it all up. I already have a form Icon (So it shows up while doing Alt+Tab, and the taskbar is also fine). I also set the icon at the properties page for the application. And even in TaskManager and Explorer (rightclick application exe file -> properties), the icon shows as expected. Although the .exe file still shows the default icon which VS2005 set at projection creation. How can I change this icon as well? The icon file consists of a 16x16 and 32x32 picture, both 256 colors as 16 colors. ~DP After switching the View in Explorer I determined…
Last reply by DPrometheus, -
- 1 reply
- 9.3k views
I know the I can use asc("A") to get the ascii value of "A" but what I need to do is get the ascii value of a hex value. a HEX value of "33" = ascii = "51" = character "3" when I try to use asc(hex value) I always get a return value of 51 so that is not it. I am I headed in the right direction? Thanks for any help. still hunting, ZeroEffect
Last reply by ZeroEffect, -
- 1 reply
- 1.7k views
Hi does anyone know how to add a new column and data at run time to an existing gridview? Thanks
Last reply by Nate Bross,
-
Who's Online 0 Members, 0 Anonymous, 15 Guests (See full list)
- There are no registered users currently online