15,669,905 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 Python questions
View Javascript questions
View C++ questions
View Java 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 Matej Hlatky (Top 81 by date)
Matej Hlatky
11-Aug-15 1:48am
View
So what is the question?
Matej Hlatky
1-May-15 5:41am
View
Hi, I'm not sure, what you want to achieve, but have you tried to print smiley face like this?
MessageBox.Show("Smiley face 😄")
EDIT: just copy symbol from http://emojipedia.org/people/
Matej Hlatky
20-Apr-15 17:19pm
View
Hi,
for debugging purposes, you can check, if there are any pending changes to be saved before calling SubmitChanges() by calling GetChangeSet() method on your dataContext instance.
Additionally you can set the DataContext.Log property to Console.Out to observe executed SQL in the VS Output window.
Matej Hlatky
4-Mar-15 3:52am
View
Hi,
check this article http://www.codeproject.com/Articles/646239/NET-Asynchronous-Patterns
But I still don't understand, why you need to wait for completition. Just do your "after" work in the completed event handler.
Matej Hlatky
2-Mar-15 14:19pm
View
Hi, have you tried to use different Graphics.DrawString method - the one with the rectangle parameter?
Matej Hlatky
2-Mar-15 14:11pm
View
http://lmgtfy.com/?q=connect+to+sql+server+android
Matej Hlatky
28-Feb-15 7:17am
View
Sorry, I meant "habit" with one B. It is better to write code in English, especially when you are going to share it on the internet.
Matej Hlatky
28-Feb-15 5:25am
View
Hi Nino,
HTML is NOT the programming language (like C# or Java); it is markup language for describing, how the webpage (on client side) should look like.
By making server side in ASP.NET (+ SignalR for instance) and client in HTML with some JS framework (AngularJS for instance) is completely natural approach.
Matej Hlatky
27-Feb-15 3:31am
View
Have you checked what the HeadersVisibility property means?
Matej Hlatky
27-Feb-15 2:57am
View
Is is necessary to have async bindings on every column?
Matej Hlatky
13-May-14 5:21am
View
The issue you are facing occurs when you are performing the Ajax request or when parsing the given XML document.
Check the developer console for errors.
Also, it seems you are using jQuery, so why not to use jQuery.get ?
Matej Hlatky
21-Jul-13 6:08am
View
Hi, unfortunately I have no experience with this kind of scenario... this was only basic idea.
Just check the Directory.CreateDirectory Method (String, DirectorySecurity).
Matej Hlatky
21-Jul-13 4:05am
View
Instead of TEMP folder you can use your own working folder, such as C:\top-secret with properly set security permissions.
After you process your file, rewrite its content with randomly generated bytes and delete it.
Matej Hlatky
21-Jul-13 3:16am
View
Oooh my..
Matej Hlatky
11-Jul-13 2:43am
View
Have you ever heard of CSS3 Media Queries?
Matej Hlatky
19-Jun-13 2:51am
View
First, you are dumping $_SESSION["people"] in the "Before Array" and "After Array" blocks, but you are working with $people variable.
Try to unset right from $_SESSION["people"], not from the $people variable.
Update the question with observed behavior.
You should break the foreach cycle after you found the right item.
You can also use alternative usage of PHP foreach: foreach ($people as $i => $item), so you don't need to handle that variable manually.
Matej Hlatky
30-Apr-13 4:18am
View
What HTTP Headers are you sending in Preview.aspx file? Check the "Content-Disposition" HTTP Header.
Matej Hlatky
30-Apr-13 2:47am
View
Hi, you are welcome.
Check my 1st point in updated answer.
Matej Hlatky
29-Apr-13 6:36am
View
Please update your QUESTION and do not add the answer to your own question.
Matej Hlatky
24-Apr-13 4:54am
View
No, it was just my idea as a workaround.
You need to code this by yourself - iterate over all Canvas children, get their absolute position, size and other visual properties and print appropriate SVG element (text, rect, circle, ...) into output stream.
Good luck!
Matej Hlatky
23-Apr-13 13:56pm
View
What about to saving Canvas content as SVG?
Matej Hlatky
22-Apr-13 4:01am
View
Check my sample code in updated answer.
Matej Hlatky
11-Apr-13 11:27am
View
Just use green Improve question link, instead of posting answer to your own question.
Matej Hlatky
11-Apr-13 6:04am
View
What is the exact problem?
Does the element with id txtRemarks exist in output HTML?
When generating elements in ASP.NET, you need to pass ClientID property to your client JS code.
Matej Hlatky
11-Apr-13 5:58am
View
Where exactly is line 51 in your code sample?
Remember that you can suppress this kind of notices with @, like you used in @include('classes/Lib/dll.php');
Matej Hlatky
11-Apr-13 5:36am
View
homework? :)
Matej Hlatky
11-Apr-13 5:06am
View
Array Object has the length property, not size.
Matej Hlatky
25-Mar-13 8:36am
View
In that case, you need to override ComboBox ControlTemplate by yourself - http://msdn.microsoft.com/en-us/library/ms752094.aspx
Matej Hlatky
25-Mar-13 8:21am
View
Do you want icon on each list item, or only on the selected one?
Matej Hlatky
23-Mar-13 9:09am
View
Have you read .NET SDK doc from http://www.digitalpersona.com/uploadedFiles/Support/Reference_Material/Guides/SDK_Guides/Pro-SDK-.NET-Developer-Guide.pdf
Matej Hlatky
20-Mar-13 8:51am
View
yep. sorry
Matej Hlatky
20-Mar-13 8:45am
View
After reading your questions few times, I still don't understand your question.
Anyway, just look at the hexadecimal numeral system (base 16) or Base 36.
If you will be forced to use char(2), just use Country ISO codes (ISO 3166-1) rather than pseudo sequence numbers.
Matej Hlatky
19-Mar-13 12:43pm
View
Thank you again for your time. Your answer is basically the solution which I used and it works like a charm. :)
Matej Hlatky
19-Mar-13 12:12pm
View
Sample escaped iso string is on the last line of my code example in comment ("This%20is%20a%20test%20%a3."). Anyway, I implemented iso encode method by myself.
Thank you for your time.
Matej Hlatky
19-Mar-13 11:29am
View
The 3rd party gateway is used for sending SMS.
When I send escaped utf8 string, while the gateway is expecting escaped string in iso encoding, the incoming SMS contains additional chars.
Gateway additionaly supports sending of utf8 encoded texts (which is the solution in fact), but this can be problem if destination mobile network does not supports
it.
Matej Hlatky
19-Mar-13 10:21am
View
Hi. This encoding is required by some gateway we are using. It's not my choice.
Matej Hlatky
18-Mar-13 10:27am
View
Yes because .NET knows only DateTime structure and not Date. Have you tried to use StringFormat = d?
Matej Hlatky
17-Mar-13 16:11pm
View
Are you stupid or something?
Matej Hlatky
14-Mar-13 7:06am
View
Use $('#'+tablename+' tr:last').attr('id') , since tablename is variable, and you want to create jQuery selector "#sometableid tr:last".
Matej Hlatky
14-Mar-13 6:35am
View
Have you tried to combine children("td") / find("td > something") with text() jQuery methods?
Please use Improve question link to add more information: what is your current state and what do you want to do.
Matej Hlatky
13-Mar-13 10:59am
View
Please improve your question and explain what exactly are you doing and where is the problem.
Matej Hlatky
13-Mar-13 5:12am
View
And the problem is?
Have you tried to store your dynamically created controls into variable(s) or collection?
Matej Hlatky
11-Mar-13 17:03pm
View
The option should be inside select element, which should be inside form element. Is it so?
You can access form values from $_GET or $_POST php predefined variables.
Matej Hlatky
7-Mar-13 7:25am
View
Just Google "Internet SMS Gateway" and choose one provider, which has .NET based API.
Matej Hlatky
7-Mar-13 5:29am
View
You can create your own type and return IQueryable(Of ThatType).
Matej Hlatky
7-Mar-13 4:05am
View
Same as two or three, or even four?
Matej Hlatky
7-Mar-13 2:43am
View
That would be unfortunately auto generated Anonymous Type.
Matej Hlatky
6-Mar-13 5:06am
View
Have you considered to use User settings for storing date of first launch and test this setting?
Matej Hlatky
6-Mar-13 4:44am
View
Your app is for desktop, tablet or phone?
Matej Hlatky
5-Mar-13 2:15am
View
What query?
What types are totalDep and totalExp?
Matej Hlatky
5-Mar-13 2:13am
View
What kind of Exceptions?
Are you referencing managed .NET .dll or C/C++ .dll?
Have you tried to change Target Platform to x86?
Matej Hlatky
5-Mar-13 2:08am
View
There is no faidin() nor faidout() function in jQuery.
Matej Hlatky
3-Mar-13 10:05am
View
I don't know your model. Check if all your DateTime properties of all entities you are inserting into db have value.
Matej Hlatky
2-Mar-13 11:20am
View
Have you considered to create socket and try to bind to port 8080 and check return code?
Matej Hlatky
28-Feb-13 5:05am
View
What have you tried so far?
Are you using jQuery or some else JS framework?
Matej Hlatky
28-Feb-13 4:58am
View
What is “Caption” property at the Label.Background binding – why no “Content”, or better VM’s “prdFrstState”? Why are you binding to Self?
Did you tried to place break point into your ColorConvert. Convert method and check provided value?
Also UpdateSourceTrigger=PropertyChanged is useless in Label, because it only displays data.
Matej Hlatky
27-Feb-13 7:39am
View
Plain WPF4 w/o DevExpress can handle Ribbons. Have you tried to look at the http://msdn.microsoft.com/en-us/library/ff799534(v=vs.100).aspx ?
Matej Hlatky
27-Feb-13 7:09am
View
Just add Distinct() at the end of your linq methods: ddlStoreId.DataSource = list.List.OrderBy(x => x.Text).Distinct();
Matej Hlatky
27-Feb-13 7:03am
View
Have you tried to use DISTINCT statement / Distinct() Linq extension method?
Matej Hlatky
26-Feb-13 8:13am
View
Print a form into paper? You can't be serious.
Matej Hlatky
26-Feb-13 7:39am
View
What is the SP_Category_Get method originally returning? I think it would be primitive IEnumerable(Of tbl_admin_category) rather than List(Of tbl_admin_category).
Matej Hlatky
26-Feb-13 4:05am
View
There is no ABC value. My example shows, that you actually get collection of objects with tag and att properties.
Try to call FirstOrDefault extension method on the query to get only first record.
Matej Hlatky
26-Feb-13 3:24am
View
WPF or WinForms?
On boths cases you are localizing apps via resource files.
Matej Hlatky
24-Feb-13 14:41pm
View
Repost of http://www.codeproject.com/Questions/551840/differenceplusbetweenplusDataClassesDataContextplu ?
Matej Hlatky
18-Feb-13 17:27pm
View
Yes, the wordprocessingml vs. drawingml.
Good point, Valery!
Matej Hlatky
16-Feb-13 16:06pm
View
So basically, you want to change (increase / decrease) the font size dynamically based on the listbox actual width?
Isn't setting the TextBlock FontSize to larger size, e.g. 20 enough?
I tried to experiment with Viewbox, but I had a problem when resizing back to smaller Width.
There would be third option - to try to use ValueConverter.
Matej Hlatky
13-Feb-13 6:25am
View
I think this code won't compile in any version of C#.
Matej Hlatky
13-Feb-13 4:51am
View
You can generate your Regex pattern dynamically before the main loop. Just remember to use Regex.Escape(string) on the input (IP, method or whatever) filter.
Matej Hlatky
12-Feb-13 15:17pm
View
Thank you!
Matej Hlatky
12-Feb-13 8:28am
View
What is inline query? Are you using Excel Interop? Is Excel window displayed? Why do you need to select one column?
Matej Hlatky
12-Feb-13 8:25am
View
I am using combination what have you described and never had problem with that.
As a workaround you can use sqlmetal to generate dbml file. Good luck
Matej Hlatky
12-Feb-13 8:22am
View
You cannot combine two different data contexts, even two different instances of same context.
Why do you need that?
Matej Hlatky
11-Feb-13 16:15pm
View
Just copy first two lines from Volodymyr's code :)
Matej Hlatky
11-Feb-13 16:14pm
View
For sites with id = 1 and 604 it returns 0, for other else 1. Since 0 is before 1, these sites are on top of sorted list.
Matej Hlatky
7-Feb-13 5:00am
View
wp-ecommerce, woocommerce are only two from dozens of e-Commerce / e-shop WordPress plugins.
Matej Hlatky
7-Feb-13 4:55am
View
GZip is not the same as ZIP!
GZip is for compressing single byte streams, ZIP is for files (with file names and folder structure).
Matej Hlatky
6-Feb-13 9:30am
View
And where is the problem?
You are using good approach with nested Iif. If you have problem with SUMming values, try to use "0D" instead of "0", when working with decimals ("money" data type).
Matej Hlatky
6-Feb-13 9:12am
View
Did you try to set Canvas Height to absolute value?
Matej Hlatky
31-Jan-13 16:27pm
View
Hover over your user name.
Or go to https://www.codeproject.com/script/Membership/Modify.aspx
And what is with the original question?
Matej Hlatky
29-Jan-13 10:18am
View
Why do you set lv's DataContext to AvosEntries?
It should be “this” - instance of MySampleView (container control), like you did it in case of first sample code.
Matej Hlatky
24-Jan-13 8:07am
View
Did you submitted your sitemap.xml to Google?
Check here http://support.google.com/sites/bin/answer.py?hl=en&answer=100283
Show More