15,904,153 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 MarqW (Top 63 by date)
MarqW
24-Sep-18 1:47am
View
Did you check the file permissions as well?
MarqW
30-Aug-18 1:51am
View
Are you sure? Because disabled controls can't have focus.
But you can just do "b3.Focus();"
MarqW
15-Dec-14 4:24am
View
Reason for my vote of 1 \n As mentioned by Klaus, not the way, at least use Invoke and delgates to do your cross-thread calls.
MarqW
18-Sep-14 10:51am
View
When I did maps, I just used a webpage with Google maps... works pretty well
MarqW
20-Mar-14 6:28am
View
Check your datatype. You might have it as a String, in which case, sorting would be correct; make sure it's numeric (integer etc.)
MarqW
10-Sep-12 3:21am
View
You don't search for the content you are after. look at the HTML *around* your values.
If your data is in a textbox, and the html looks like "<input id='indicator' style='text' value='some value'>", search for "<input id='indicator'", then crawl through looking for "value=" then parse the value from the quotes
MarqW
6-Sep-12 2:38am
View
Well, I already suggested you try loading it into an Xml.XmlDocument, you can then use the .SelectNodes, .SelectSingleNodes, and .Children to navigate around.
Failing that, use functions such as InStr, Mid, and Split to find key identifying phrases and manually compute the data
Alternatively:
http://www.google.co.uk/search?q=parsing+html+vb.net&oq=parsing+html+vb.net
MarqW
15-Aug-12 2:41am
View
http://www.codeproject.com/Articles/165844/WCF-Client-Server-Application-with-Custom-Authenti has some code showing you how to use System.Security.Cryptography.AesCryptoServiceProvider
MarqW
14-Aug-12 2:35am
View
Most systems never let you actually view the old/current password, they actually just let you set a new one. Usually you'll see an option like "Reset Password", you'll see these never ask for the old password, only a new one, and is usually done by an administrator (to prevent any user resetting any other user's password and thus gaining access).
Hope that helps, if so, please accept and rate; Thanks
MarqW
29-Jul-12 13:23pm
View
http://www.javacodegeeks.com/2010/12/android-full-app-part-8-appwidget-for.html
"UPDATE: For this very reason of avoiding battery exhaustion, Google has changed its API after version 1.6 so that the refresh rate can not be less than 30 minutes."
http://android10.org/index.php/articlesgeneralprogramming/315-app-widgets-tutorial
"The XML configuration will wake up the device and can the smallest possible update interval is 30 minutes"
http://www.parallelrealities.co.uk/2011/09/using-alarmmanager-for-updating-android.html
"There are two disadvantages to this. The first, as pointed out, is the minimum of 30 minutes (you'll see no warning about this if you lower it, by the way)"
Interestingly, this link does provide one method of doing it. So I'll probably take a look at this
MarqW
2-Jul-12 8:10am
View
Mono is basically an "open" version of .NET; which means applications should run the same on both .NET and Mono platforms (There are some discrepancies, check out their site for more information - http://www.mono-project.com/Main_Page)
However, you are correct, Mono for Android does cost money. I'm not aware of any free builds (if somebody else does, please let me know too).
MarqW
28-Jun-12 8:07am
View
You don't even use XmlDocument in that function, how can you use XPathNavigator?
Sounds like you're working in a different area to what you're posting your question on.
MarqW
28-Jun-12 6:12am
View
As indicated in Solution 2 - You need an a single root element (say called <messages>)
Then you can do XmlDoc.FirstChild.InnerXml &= strDetails (be sure to delete the line where you set "
MarqW
28-Jun-12 5:52am
View
My bad, I didn't read. I assumed it was an Xml.XmlDocument object (with the reference to Xml.XmlNode). Why not just use Xml.XmlDocument? It also has a save function for writing out to a text file. It actually lets you manipulate the Xml based on nodes too
MarqW
28-Jun-12 2:39am
View
I'm afraid I don't understand your question then. You asked how to get contents of a textbox into a report. You add a report parameter to be used in the rdlc file, then use SetParameters to set the parameter with the textbox's content. If that's not what you were after, please could you elaborate a bit more? Thanks
MarqW
14-Jun-12 10:16am
View
I've added an edit. Basically it was the location of your final field, that you had put after the "FROM" section of the query
MarqW
14-Jun-12 9:53am
View
Can also use "Nz(a,b)" :)
MarqW
13-Jun-12 5:58am
View
Your subject, and "question" are two different things. You'll want to look into GDI+ as a starting point if you want to do image manipulation
MarqW
13-Jun-12 5:56am
View
That threw me, because the image shows up if you just force it in the <asp:Image>, but you're correct. If you want to add it in the solutions section, I'll vote you.
Cheers
MarqW
12-Jun-12 10:01am
View
I can read pretty well, thank you. The OP has a programming language that takes console text input. What they have asked for is a way to write an application with a textbox that sends text from that textbox to the console as input to the programming language. There is *no* reference to wanting to "compile" the text.
MarqW
12-Jun-12 3:45am
View
It's a useful post, but not really relevant to the question asked. The OP was not asking preferences on languages, compiled or not. They were asking how to write text to a console mode application
MarqW
11-Jun-12 6:35am
View
Could you not change your lanuage to read code from files instead of the console? Then you'd be able to use any existing text editor (in addition to writing your own, if you still wanted)
MarqW
31-May-12 10:21am
View
I'm not going to write the code for you. Have a look at making a project with 2 forms, where one mimics the size of the other. Once you get that working, make the "mimic" form follow the position of the other form. Then you can look at making the mimic form borderless and transparent, and adding shadow graphics.
MarqW
31-May-12 9:43am
View
There's a couple of ways of doing this.
1. You use GDI+ to access the DeviceContext of the screen, and draw all the shadows yourself
2. You create a new translucent form with a graphic for the the "shadows" on, and position it underneath your main form. When your main form is resized or moved, you'd need to update this form too
Hope that helps
MarqW
30-May-12 3:43am
View
"If this is VB.NET for real (as in a web based app)"
What an odd statement. Why would a web-based app make "VB.NET for real"? If anything, VB.NET should be "real" for desktop applications, since that is where the roots of VB lie. By the by though
MarqW
30-May-12 2:44am
View
Yes, I just told you why you can't just do what you're doing. Files need headers to tell the video players details such as codecs used, how many streams there are etc. You are just copying a chunk of data into a file, players will not know how to process that data.
Also, how are you knowing where each "minute" (I'm assuming that's what you mean by "mint") occurs? Are you just dividing the file size by the length of time?
You really need to read up on file structures, or just use download an application - there are plenty of free ones
MarqW
29-May-12 11:07am
View
I can't help you on how to do it, but you can't just "chop" an AVI file in half. An AVI is what's known as a container and contains information about the streams contained within it. Such as video dimensions, codecs, audio bitrate, and length (time). To split the stream you need to create a new AVI with a new header with the new information
MarqW
8-May-12 9:01am
View
Interesting. You're right, no it doesn't fix his problem, but it fixes his "setCounter" method.
The problem is that, Landstar, you're setting your variable *after* you've displayed the dialogue, so it'll always be zero, regardless of if the button was pushed or not.
I'll update my solution
MarqW
8-May-12 8:32am
View
Can you show us your code to loading the report in the first place? Can you process any reports that don't consume sub-reports?
MarqW
8-May-12 8:31am
View
Reason for my vote of 1
Title says it all - they can't be bothered, why should we?
MarqW
8-May-12 8:29am
View
Reason for my vote of 1
Title says it all - they can't be bothered, why should we?
MarqW
8-May-12 8:28am
View
Why did you submit this as a "solution" if you can't actually help?
MarqW
25-Apr-12 10:40am
View
DBNull.Value is not the same as nothing, which is what this line is trying to check. As I've just said in my edit, it's apparently nothing to do with this line, and is the line above (looks like the debugger was stopping on the wrong line for me). So I think I can get this sorted now.
Thanks anyway
MarqW
25-Apr-12 10:03am
View
I made the change you suggested. I'm afraid the exception raises on the "If IsDBNull(record.Rows(0).Item("fcurr")) Then" bit and the ToString makes no difference.
I can't ToString() the first bit, because that would make the IsDBNull() fail everytime. Also, it's happening on fields that are integers etc. as well :(
MarqW
12-Apr-12 10:27am
View
No problems
MarqW
12-Apr-12 10:19am
View
I answered your additional question in my first post - You need to handle the Paint event of the PictureBox, then using e.Graphics draw rectangles (or circles etc.) at your stored 20 points
MarqW
12-Apr-12 5:39am
View
Copy/pasting the original query doesn't clarify things. If you're looking for an FTP library, I'd recommend jptros's
http://www.codeproject.com/Articles/10968/C-FTP-Client-Library
MarqW
11-Apr-12 11:21am
View
I tried that - but again, didn't put the runat=server. Thanks
MarqW
2-Apr-12 9:01am
View
Have a look at the Clipboard object, you can retrieve clipboard data using that, and use RichText.Selected* properties to overwrite the selected text with the data from the clipboard
MarqW
26-Mar-12 8:55am
View
Is this a WinForms application or a website?
MarqW
26-Mar-12 8:51am
View
You've already asked this "question" here : http://www.codeproject.com/Questions/354324/dynamic-video-uploading-from-youtube You don't need to post twice.
MarqW
26-Mar-12 5:14am
View
What method are you using to extract the frame? Also, what type of videos are you working with?
Also, one thing to be aware of, some video codecs do not store the whole frame "bitmap", but rather changes from the previous frame (except for "key frames", which do. These are what allow you to seek videos)
An option you can try - depending on what container you're using is add a secondary video (or audio) stream into the container. Most players won't play them without being "selected". So it'd be relatively unknown, and easy to parse back out
MarqW
16-Mar-12 6:01am
View
Sure you can. I can't remember the exact syntax, VB6 was a while ago, but something like this
[code]
If Instr(varName, " ") <> -1 Then ContainsDoubleSpace = True
[/code]
MarqW
16-Mar-12 6:00am
View
That's not VB6 code
MarqW
10-Mar-12 4:05am
View
Well, yeah, urm, look at any company? I don't think I've ever known a company to retain every single employee ever (unless it folds pretty quickly).
I'm struggling to see what you are trying to get at here? Are you trying to tell me "the right way" is to not show people records that are no longer link to active data?
Say you have 2 sales people in your department, one of them puts an order on the system, it's linked to their sales code because they get commision off it. But then say they get fired or get another job and leave - the order will still need to be viewed so the other sales person can chase up any queries, however, it'll want to retain the original sales code, because it was their sale.
How else could you do this scenario?
MarqW
9-Mar-12 2:29am
View
It does bind to the header table, and it has Status as the datasource (for options). If I don't update the combobox to contain the item from the header table, the combobox shows blank when viewing the record, I don't want it to show blank, I want to show the actual value.
"Seems like this shouldn't happen"
Well, yes, happens quite frequently, not with statuses, but users, for example, leave the company, we still want to be able to see what they did without invalidating or changing the record, but don't want their user being listed for selection.
MarqW
8-Mar-12 10:45am
View
What confuses you?
MarqW
8-Mar-12 10:45am
View
Deleted
What confuses you?
MarqW
20-Feb-12 10:22am
View
Rather than use LoadLibrary, could you not use the DllImport attribute to import your DLL's functions?
MarqW
4-Apr-11 8:32am
View
If I add the DoEvents before the Me.Activate(), it keeps the application active. Otherwise it dives off regardless of the Me in ShowDialog is there or not. It's not ideal, but it works.
Friend Function AttachDialogWindow(ByVal newWindow As Form, ByVal disposeAtInvisible As Boolean) As Form
newWindow.ShowDialog()
If disposeAtInvisible Then
newWindow.Close()
newWindow.Dispose()
End If
Application.DoEvents()
Me.Activate()
Return newWindow
End Function
MarqW
4-Apr-11 8:13am
View
The MessageBox.Show() seems to work in the RollOut. However, as I said, for some reason when using rolling our own dialogs in the main application, it will still occasionally fall to the back of the screen. Maybe it's just a bug we've got to live with.
MarqW
4-Apr-11 5:16am
View
I've not tried that, because it won't help with the dialog windows
MarqW
4-Apr-11 3:03am
View
That doesn't actually answer my question. Especially when I said that it happens when I also use forms using ShowDialog
MarqW
28-Mar-11 3:01am
View
Could you please clarify the question, what must show in the particular strings?
MarqW
27-Mar-11 8:38am
View
Facepalm! Thank you! Can't believe I missed that
MarqW
26-Mar-11 11:09am
View
The code you've provided isn't very helpful. You'd need to post the code to bl.InsertUser() instead.
Your code listed does not even check for existing users before calling bl.InsertUser
MarqW
14-Mar-11 3:31am
View
The only reason it was a universal .Thumb style because I was constantly fiddling with the values, and didn't want to have to make them twice.
This site was for a gallery, so there's not much reading, but I take your point.
display:inline-block; works great in Firefox, Opera, and Chrome. Pity about IE though. Maybe when processing the request on the server, my PHP code can feed back an IE version or a standard version
Thanks
MarqW
13-Mar-11 8:04am
View
Technically, you could in the same fashion, you can alter the value of the image boxes to point to a black and white version of the image (say you had a duplicate set of images suffixed _bw, you could just add that to the filename)
If images are dynamic, you could always use GDI+ code to convert images at runtime to black and white, then save them and point the report definition to them
MarqW
12-Mar-11 10:39am
View
Sounds like he's got the default SQL Service Management Studio default colour scheme to me (that's what I get)
Are you sure you've not just changed the "Colours" option in Tools->Options?
There's a good case against reliance on syntax highlighting here
http://www.linusakesson.net/programming/syntaxhighlighting/index.php
Regardless of colour, does it say why his fails?
MarqW
28-Feb-11 9:47am
View
The only way to avoid the "Save to disk" command is by creating a plugin per browser. Even then the user may request a prompt from the browser anyway (security against malware)
Another way is writing an ActiveX control and embed that on the webpage. You can pass parameters via the page HTML.
MarqW
24-Feb-11 3:34am
View
Your output confuses me - D1//D4//D5//D6//D7, D7 is not a child of D6. Did you type your example out wrong?
MarqW
19-Nov-10 10:10am
View
Deleted
Reason for my vote of 1
Your dimensions are completely inaccurate, you don't use square brackets for arrays in VB.NET
MarqW
12-Nov-10 11:24am
View
Hmm, try changing it to this:
ds.Tables[0].Select("","[column3] / [column4]") )
and maybe need brackets
ds.Tables[0].Select("","([column3] / [column4])") )
I'll be honest, I've not actually tried these :-)
Show More