15,895,557 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 7774tlas (Top 27 by date)
7774tlas
16-Feb-14 1:25am
View
Hi, thanks for the quick response! The code in that first link works, but how do I trigger an overwrite / compare prompt if the file(s) already exists? In other words, I need it to combine all the prompts into one as windows explorer does when moving / copying multiple files with a progress bar and status (chk : do this for all files).
7774tlas
22-Apr-13 20:40pm
View
I've never used XAML, that's WPF isn't it? (sorry, I'm still learning) I'm using WinForm. The problem that I'm having w/ the label background is that it shows it's parent control's backcolor instead of the progressbar (blocks out the marquee). I came across an article on the DrawString method, could that be used to display the text?
7774tlas
22-Apr-13 20:30pm
View
Sorry, I always forget that. - WinForms
7774tlas
22-Apr-13 19:35pm
View
If I inherit from label will I be able to display the text w/o the displaying the label's background? I want the text to display over the progressbar (z-order). Thanks
7774tlas
14-Apr-13 0:57am
View
I was just checking out some of the custom comboboxes here on the site. I'll try to modify one to my needs. Thanks again!
7774tlas
13-Apr-13 23:56pm
View
Thanks for the info. So the TLP is basically a grid for controls. I would need 168 controls, one for each color. Would that affect performance? If so, I believe I'm gonna use a button for the swatch and a combobox to list the colors - ( button.backcolor = combobox.text ). If not, I'd like to use a TLP for quick-select purposes. Using For Each I could just add a button to each cell, set it's dock property to fill, then add the color info to the button (backcolor & text), right? I hate to keep bothering you, but if you would be so gracious as to answer that question about the performance, I'd greatly appreciate it. Thanks again for your time and help!
7774tlas
13-Apr-13 22:25pm
View
Do the TableLayoutPanel's cells have a backcolor property? Would you give a short example of how to access a cell's properties/values? Also, can they be clicked, or do I have to write a click event?
7774tlas
9-Apr-13 4:08am
View
I had not used functions or arrays before this, so not only have you solved my problem, but you also taught me a couple new tricks. Thank you very much for your time and knowledge.
7774tlas
8-Apr-13 15:08pm
View
Have patience w/ me, I'm horrible at math. This is what I've got so far, but what should I use in place of "max"? I keep getting an error.
Sub RGBtoCMYK()
Dim R As Double
Dim G As Double
Dim B As Double
Dim C As Double
Dim M As Double
Dim Y As Double
Dim K As Double
R = R / 255
G = G / 255
B = B / 255
K = 1 - max(R, G, B)
C = (1 - R - K) / (1 - K)
M = (1 - G - K) / (1 - K)
Y = (1 - B - K) / (1 - K)
End Sub
7774tlas
6-Apr-13 21:01pm
View
All of those seem to be the default system colors, I need to get the color values of the Metro/Modern Start Screen. This is the code that I used to get the primary color:
Dim aarrggbb = My.Computer.Registry.GetValue_("HKEY_CURRENT_USER\Software\Microsoft\Windows\DWM", "ColorizationColor", "00000000")
Dim argb = Convert.ToInt32(CLng(aarrggbb.ToString), 10)
Dim argbcol = System.Drawing.Color.FromArgb(argb)
Dim USERCOLOR1 As Color
USERCOLOR1 = Color.FromArgb(argb)
This ^ changes the form's border to the same color as the taskbar.
I don't know which registry value is the secondary color though, and I've never worked with the registry so I'm nervous that I might mess something up. Any ideas?
7774tlas
6-Apr-13 16:51pm
View
I want to use them to color the form and controls, so that the app matches the user's theme (I'm using a borderless form). I've managed to set the form's backcolor to the "primary" color, but I need to know the "secondary" color so that I can set my buttons, etc., to it's shade.
7774tlas
25-Mar-13 14:05pm
View
What control are you using to display your shortcuts in? (listview, toolstrip, etc.)
7774tlas
18-Mar-13 15:44pm
View
Sorry du[DE], you're right. I've never worked w/ web controls(only windows forms), so I was unaware of these controls.
7774tlas
18-Mar-13 2:53am
View
Are you talking about a CheckedListbox? I've never seen a "radiobuttonlist". If so, are you wanting to check all the items in the checkedlistbox when you press the selectall button?
7774tlas
18-Mar-13 1:40am
View
Do you want to extract the icon from the shortcut(.lnk)?
7774tlas
18-Mar-13 1:21am
View
I apologize, - Windows Form, VisualStudio2012
7774tlas
12-Mar-13 22:10pm
View
Thanks for the quick response, I tried that earlier, but got an exception that the file didn't exist when I tried to rename it back to the original. I must've done something wrong. At least now I know that it will work, just have to find where I screwed up (The directory and filename are coming from separate sources - cbo and txt, then I'm joining them to create the full path, so I probably typed a wrong name in a wrong place). Thanks for the help!
7774tlas
16-May-12 15:50pm
View
Sorry, I'm a novice and I'm still learning. I thought that the ListView would display the thumbnail image of a file if I added it to the ImageList, but apparently this is not the way to do that. (and you don't have to be condescending, I wouldn't be here asking questions if I were an expert)
7774tlas
16-May-12 7:02am
View
It doesn't display the thumbnail of the .wmv file in the ListView, only the file name, etc. I need it to show the thumbnail/image of the file as it does in explorer, can you help?
7774tlas
15-May-12 21:11pm
View
OK, I changed the value Type to numeric, but I'm still getting the same results. I changed the DataValueType in the DataGridView Properties, is this the correct method, or do I need to do it in code?
7774tlas
18-Apr-12 22:41pm
View
Sorry for the confusion, but I'm the one who posted that original question. I was having some login problems, and was unable to comment, So I created a new account and asked again. The webmaster got it fixed though, and I posted a reply on that post.
7774tlas
18-Apr-12 22:21pm
View
Sorry for the late reply. Please forgive my ignorance, but most of this is still greek to me. I'm not sure how to implement this. My app plays an audio file, and when the "set" button is clicked, it adds the current position of the file in milliseconds along with other misc. info to the DataGridView programatically. I need the Sort list to update each time the "set" button is clicked and a new row of data is entered. I don't understand how or when I'm supposed to activate the Private Sub SortCompare. I understand that it compares the data in the cells, then sorts them, but what causes the SortCompare event?
7774tlas
18-Apr-12 21:46pm
View
Sorry for the late reply. Yes, the DataGridView is unbound, and I am adding the data programatically, so I believe your solution will work. Problem is, I'm a novice and have no idea how to set a data type to the cells in the first column.
7774tlas
29-Feb-12 14:55pm
View
Thank you for you help and knowledge, I used the System.IO.Directory.Copy and the user profile folder, and changed shell locations. Works fine now. Thanks again!
7774tlas
29-Feb-12 11:09am
View
Thanks for the info. The reason that I wanted to copy to C: is because I have .exe subprogram that uses "cmd" like a batch file. As I'm not very good at navigating in the command window, I wanted to put it there for convenience. If I copied it the "documents" folder instead, would I have any UAC issues there?
7774tlas
13-Feb-12 18:18pm
View
The "DataGridView1.Rows.Add()" w/ the "(DataGridView1.NewRowIndex)" solved the issue of adding a new row in order. I was trying "DataGridView1.Rows.Insert()" (which wasn't working properly). Thanks to you and Raimis9 for keeping it simple and clean for novices like me. Your help and knowledge are greatly appreciated!
7774tlas
13-Feb-12 18:02pm
View
Thank You! This is the final step in a program that I've been working on for a while, and now I can finally use it. Your code really helps me understand the process as well, very nice. I figured the save file process would have been alot more complicated. Thanks again for sharing the knowledge!
Show More