15,891,375 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by CoderzF1 (Top 66 by date)
CoderzF1
19-Feb-24 4:11am
View
I have actually tried the marked solution from that post. Really all that is doing is adding multiple TextBlocks with a right-margin set. It may be the way I have to go, even though I don't like it. I can even use the Glyphs object, however, I would have to package a font with the application due to the only way to set the font for Glyphs is to supply the Font Uri. I don't know why Microsoft didn't supply an easier way to do this. UWP has an attribute for TextBlock to set Character Spacing but not Standard WPF.
CoderzF1
27-May-23 19:41pm
View
i could tell you exactly which one is null, but you wouldn't learn to use the logcat or debugger. it does tell you the line number of where the error is occurring. there is one of your views that hasnt been initiated in your onCreate function
CoderzF1
16-Sep-22 0:57am
View
sounds like you may need to scale down the bitmap dimensions
CoderzF1
16-Sep-22 0:56am
View
sounds like you could use a video or 2 from Philipp Lackner, Coding With Mitch, Coding In Flow, or Stevzda-san on youtube.
CoderzF1
16-Sep-22 0:55am
View
sounds like a server issue, not exactly an android app issue
CoderzF1
16-Sep-22 0:53am
View
is Website.class even an Activity?
CoderzF1
16-Sep-22 0:52am
View
In otherwords, what David is saying, is to set a breakpoint and use the debugging tool to view what the actual value is of myfolder
CoderzF1
16-Sep-22 0:49am
View
you will need to write an API to access your database. An Android app cannot access an online database without that api
CoderzF1
15-Aug-22 18:25pm
View
Deleted
System.Text.Json can help you out here
CoderzF1
15-Aug-22 18:23pm
View
Also, I do hope you are not storing User's passwords in plain text like this.
CoderzF1
15-Aug-22 18:21pm
View
Are you wanting to load the contents of the files into a listbox or are you wanting to just show a list of the files in the listbox?
CoderzF1
14-Feb-22 19:36pm
View
Thanks for your help though. It is appreciated. I will post a solution for my question.
CoderzF1
14-Feb-22 19:24pm
View
webClient.Headers.Add("user-agent", "Mozilla/4.0 (compatible; MSIE 6.0; " +
"Windows NT 5.2; .NET CLR 1.0.3705;)");
CoderzF1
14-Feb-22 19:23pm
View
Oh My F...n God......... I had to add a user agent
CoderzF1
14-Feb-22 19:13pm
View
What is driving me crazy is that 2 months ago, the file downloaded just fine, with the same code, and with the same application
CoderzF1
14-Feb-22 19:12pm
View
I have a log file that I have added to my project. This is the error message and stacktrace
[CRITICAL]Feb 14, 2022 - 19:10:29 PM <error> - The remote server returned an error: (500) Internal Server Error.
[CRITICAL]Feb 14, 2022 - 19:10:29 PM <error> - at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult)
at System.Net.WebClient.GetWebResponse(WebRequest request, IAsyncResult result)
at System.Net.WebClient.GetWebResponseTaskAsync(WebRequest request)
at System.Net.WebClient.DownloadBitsAsync(WebRequest request, Stream writeStream, AsyncOperation asyncOp, Action`3 completionDelegate)
CoderzF1
14-Feb-22 19:00pm
View
This is the file i am testing with
https://emoji.gg/assets/emoji/4782_Brimstone_Like.png
CoderzF1
14-Feb-22 18:59pm
View
The site doesnt require authentication at all. I have actually opened a new empty project to test with and it downloaded just fine, even without that security protocol. I even used the same url.
CoderzF1
14-Feb-22 18:40pm
View
I have tried this security protocol. I have also checked the error message. All it gives is [The remote server returned an error: (500) Internal Server Error.]
When i try to download the file, it adds a file to the directory and it has a time stamp, but it also shows 0 bytes for the file size.
CoderzF1
13-Feb-22 20:21pm
View
seems weird that there is an empty file actually placed in the destination directory. there shouldnt even be a file present at all if the destination is incorrect
CoderzF1
12-Feb-22 11:02am
View
Thanks for your input, but there wasnt much else to say, with that being said, see my reply to original Griff
CoderzF1
12-Feb-22 11:01am
View
I believe I may have figured out the issue after thinking on it while taking a break. I actually feel quite dumb for even doing it really. I had to add a logger to the application and for some reason i thought it would be a good idea to write files to the program directory. I know better than this. I am going to change the code to write the logfile in the AppData directory. I do know I havent added the above in the Manifest File, I knew I had no reason to add it. Most likely I was just too tired to realize what i was doing.
CoderzF1
30-Apr-21 11:02am
View
thats a problem there, we gain new users every day. if we create a whitelist of allowed users, then new users qouldnt be able to join. This is a service that anybody can use, not just a select geoup of people. I guess you can say that it is similar to codeproject or discord, etc
CoderzF1
30-Apr-21 9:35am
View
It is a service that can be signed up for via account registration.
CoderzF1
29-Apr-21 17:11pm
View
the problem here is that the user is using a VPN and virtual machines along with multiple email accounts. the user in question is being very negative in response to a temporary ban that they thought was unfair. IP has been banned, device id is banned l, yet they keep coming back. The owner has since added a cooldown to 3 messages per hour for free users, but this only helps so much.
CoderzF1
13-Feb-21 9:40am
View
A lot of source code that I have looked at recently uses the .equals for string comparison, So apparently this is the widely accepted approach.
CoderzF1
4-Dec-20 17:11pm
View
check my solution below. Its not exactly a correction of your code, but is an example of adding controls to a form dynamically and being able to grab the needed properties. The main key there is to make use of the control's tag property.
CoderzF1
3-Dec-20 23:58pm
View
What exactly is the code supposed to do? We need way more information than what you are providing.
CoderzF1
3-Dec-20 23:25pm
View
when adding the combobox, set the selectionchanged handler programmatically and just use the sender parameter to get the selected index
CoderzF1
3-Dec-20 23:24pm
View
are you adding the comboboxes programmatically?
CoderzF1
10-Apr-20 19:48pm
View
Are you not using the webview control that is shipped with the SDK? The only webviewcompatible control that I can find on google is for android only. Where does this webviewcompatible come from.
CoderzF1
6-Apr-20 17:49pm
View
Find the name of the containing form element and perform a submit
https://www.w3schools.com/jsref/met_form_submit.asp
CoderzF1
14-Mar-19 22:33pm
View
Looks like you are going to have to process one line at a time with this one. First you are going to want to create an Excel Object and create a new Workbook and Worksheet. For the workbook and worksheet, you can use Excel to create a sort of template to fill in data. I don't know what the first 6 lines are for, but you can just strip these lines out seeing as you don't want to have them in the Excel Sheet anyway. On the line with the date/time/terminal id, split this string using a " " as the delimiter to split into an array and add them accordingly to the worksheet. After this, each line can then be split into an array using the ":" as the delimiter. Using "Select Case arr(0).tolower()", you can process which column in Excel that the arr(1) value gets placed into.
CoderzF1
2-Dec-18 3:01am
View
the best way to share a screen shot is to upload the screen shot image to a image hosting website (ex: imgur or google drive) and share the link to it.
CoderzF1
17-Aug-18 15:25pm
View
Just so you know, the people of codeproject do not typically help with a person's assignments. Don't expect an exact answer here. Someone may point you in the correct direction, so that you may research how to properly close a serial port connection. In this situation, it depends on how you are continuously reading from the serial port. Are you using multiple threads? Are you using timers?, etc... you probably should update you question with a few more details, so that someone may point you in the right direction.
CoderzF1
15-Dec-17 18:00pm
View
try converting the image to a base64 string and store it in the text file. or you could store the text file in a file folder with all images in the same folder except with each image file renamed to the corresponding id.
CoderzF1
20-Sep-16 18:37pm
View
try here. https://support.microsoft.com/en-us/kb/161299
CoderzF1
7-Aug-16 13:31pm
View
sthat is due to the form being unloaded when you close the form. if you want to have it display the text every time it is opened, you will need to have a global variable to store the string in and in turn resetting the textbox to it each time the form is reopened
CoderzF1
5-Aug-16 17:16pm
View
search for execCommand.... webbrowser.document.execCommand(....
CoderzF1
5-Aug-16 17:09pm
View
in your class file, you are basically creating a whole new object when you declare form2obj that is never being shown. in the class file, above the line that says form2obj, add a line that reads form2obj = form 2
CoderzF1
18-Jul-16 22:11pm
View
out of curiosity, did this solution help you to do what you are trying to do? i havent heard back in a couple of weeks, so i wasnt sure if you have seen the solution.
CoderzF1
6-Jul-16 15:42pm
View
what exactly are you trying to do here? are you trying to make something like a color picker? if so, have you tried using a color dialog instead of another form with colored pictureboxes? your question is not entirely clear.
CoderzF1
2-May-16 16:49pm
View
ok. i removed my previous solutions. sorry about that, for some reason the improve solution or remove solution buttos werent showing up on my end. i did know about those buttons. it had me confused myself when it wasnt showing up
CoderzF1
1-May-16 20:21pm
View
i did figure out what the problem is. it has to do with the line where you get the attribute of an element. for some reason its not finding the class attribute. it is returning a null string. that is why the code does not appear to be entering the conditions
CoderzF1
1-May-16 19:16pm
View
Deleted
quick questions....where exactly does the function printline come from. what does this procedure do.
CoderzF1
1-May-16 16:02pm
View
dont just replace the word content...it needs to read elem.innertext
CoderzF1
1-May-16 14:20pm
View
have you tried the htmlelement's innertext property? this property will return the plain text of the html element without any of the markup. in the case of formatted text, such as bold or italicized, use the innerhtml property.
CoderzF1
5-Apr-16 15:20pm
View
check here....
https://www.daniweb.com/programming/software-development/threads/333841/visual-basicpress-button-in-another-program
CoderzF1
9-Mar-16 10:51am
View
Deleted
i do see one problem with your code...after the else keyword where you set tag = 1, it probably needs to be tag = 0...otherwise there would mever be a state change at all
CoderzF1
2-Mar-16 12:27pm
View
like stated above, place the buttons in a panel control, position the panel where you want it with the anchor set to bottom, right. if this doesnt work, then use the form's resize event to position the panel control.
CoderzF1
2-Mar-16 12:22pm
View
it would help if you show the code used to show the clock
CoderzF1
26-Feb-16 12:19pm
View
you can use the mouse events to check coordinates to display the correct cursor, then ise the mousedown event along side a sendmessage api call for resizing. i cant quite remember the message or parameters to send via SendMessage for this to work. google "using sendmessage api to resize and move form"
CoderzF1
25-Feb-16 18:42pm
View
Deleted
you can usethe mouse events to check coordinates to display the correct cursor, then ise the mousedown event along side a sendmessage api call for resizing. i cant quite remember the message or parameters to send via SendMessage for this to work. google "using sendmessage api to resize and move form"
CoderzF1
23-Feb-16 21:03pm
View
use the keyup event. be sure to convert from a string to an integer or double. then use the if statement to check wether above zero or below zero. dont forget to take into account for a null string.
CoderzF1
22-Dec-15 19:56pm
View
glad i could help. please mark as accepted solution. have a merry christmas. if there is anything else that you need help with, please feel free to post a separate question. be sure to include example of what you are trying to do(if possible), also any code that will help us to better help you, along with any errors you are getting.
CoderzF1
21-Dec-15 19:56pm
View
oops, just realized a mistake in my function code. in the function, on the line where i give the if statement, change the > 1 to = 0. this should do what you are wanting. i will update the solution to show what i am talking about
CoderzF1
19-Dec-15 20:31pm
View
how and where exactly are you placing the selected context item to the richtextbox? we will need a bit more information on how you are doing this. the function will return only the word with out the text inside of the brackets.
CoderzF1
12-Oct-15 18:35pm
View
give the following a try.
replace the line sendkeys.send("{tab}") with
clipboard.settext (vbTab)
richtextbox.paste()
CoderzF1
10-Oct-15 1:24am
View
you will have to subclass the global keyboard events if you want to have hot keys to work when the window does not have focus. for more info, search for keyboard hooking.
CoderzF1
12-Sep-15 9:56am
View
are you meaning like a previous...next button? Please clarify what you are looking for.
CoderzF1
26-Aug-15 16:45pm
View
it would be possible to do this with html and the webbrowser control, but not with the richtextbox control. the only problem would be if you were to want to edit the text which is why i am guessing you are using it in the first place. of course there are html editing controls out there also.
CoderzF1
26-Aug-15 16:41pm
View
look here...https://support.microsoft.com/en-us/kb/173773
CoderzF1
1-Jun-15 21:50pm
View
Give this code a try(of course, if you intend on making a type of drawing program, you will need to use off screen graphics. this code just lets you draw a line on a form without creating an actual image, because each line that gets drawn is automatically erased when you start drawing a new line):
Public Class Form1
Dim x1 As Integer = 0
Dim y1 As Integer = 0
Dim x2 As Integer = 0
Dim y2 As Integer = 0
Dim g As Graphics
Private Sub Form1_HandleCreated(sender As Object, e As System.EventArgs) Handles Me.HandleCreated
g = Graphics.FromHwnd(Me.Handle)
End Sub
Private Sub Form1_HandleDestroyed(sender As Object, e As System.EventArgs) Handles Me.HandleDestroyed
g.Dispose()
End Sub
Private Sub Form1_MouseDown(sender As Object, e As System.Windows.Forms.MouseEventArgs) Handles Me.MouseDown
If e.Button = Windows.Forms.MouseButtons.Left Then
x1 = e.X
y1 = e.Y
End If
End Sub
Private Sub Form1_MouseMove(sender As Object, e As System.Windows.Forms.MouseEventArgs) Handles Me.MouseMove
If e.Button = Windows.Forms.MouseButtons.Left Then
x2 = e.X
y2 = e.Y
g.Clear(Me.BackColor)
Using p As New Pen(Brushes.Black)
g.DrawLine(p, x1, y1, x2, y2)
End Using
End If
End Sub
End Class
CoderzF1
8-Feb-15 15:27pm
View
are the images stored in the same directory ad the running app? also, what is the point in declaring a variable with the file name if you arent going to use it.
CoderzF1
14-Nov-14 9:13am
View
I don't quite know how you are going about creating the printable content, but the code below works for me. It will show a printer selection dialog, so i can choose which printer I want to use. Then it will show the preview dialog so I know what the document will look like before printing. Then if i click the printer icon up top, the document will print to my desired printer. I have doPDF installed on my pc and it printed just fine. Is this what you are trying to acheive?
[code]
Private Sub Document_PrintPage(sender As System.Object, e As System.Drawing.Printing.PrintPageEventArgs) Handles Document.PrintPage
e.Graphics.DrawString("Hello", Me.Font, Brushes.Black, 100, 100)
End Sub
Private Sub Button1_Click(sender As System.Object, e As System.EventArgs) Handles Button1.Click
prntDlg.Document = Document
If prntDlg.ShowDialog = Windows.Forms.DialogResult.OK Then
Dialog.Document = Document
Dialog.ShowDialog()
End If
End Sub
[/code]
CoderzF1
8-Nov-14 19:50pm
View
it also states that the print content basically has to be recreated to actually print.
if printpreviewdialog.showdialog = dialogresult.ok then
'insert code here to recreate the printable content
end if
Show More