15,889,315 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 UJimbo (Top 54 by date)
UJimbo
11-Nov-11 5:34am
View
For winforms, wpf, Asp?
UJimbo
11-Nov-11 4:38am
View
http://www.dbasupport.com/forums/showthread.php?t=11441
It also explains how to setup two tables for a cascade delete, which means deleting the row in one table will also delete the row in the second table automatically.
UJimbo
10-Nov-11 10:36am
View
Why repost the question? Also, what's wrong with you posting on a respectable site with that nickname, be it a phallus or a rooster I don't care. This is unacceptable
UJimbo
3-Nov-11 7:15am
View
Show him how to get the substring containing the last 4 numbers and you get my 5 marks Bob :)
UJimbo
3-Nov-11 6:34am
View
Deleted
In:
List<rectangle> rectList = new List<rectangle>();
,
remove the :
,
I gave up trying to make the editor show it corfrectly...
UJimbo
3-Nov-11 4:22am
View
Take a look at your question above, you have not mentioned this was about System.Web.UI.WebControls. It is only flagged as C# and my mind reading skills are a bit rusty
UJimbo
2-Nov-11 3:45am
View
Can you please elaborate? Do you want your picture to become transparent while you move it around with the cursor, so that you can see the objects underneath?
UJimbo
1-Nov-11 9:56am
View
Try gooling for
c# sharepoint document library upload file
UJimbo
1-Nov-11 8:48am
View
Thank you, glad we could help
UJimbo
1-Nov-11 8:38am
View
You are welcome
UJimbo
1-Nov-11 8:13am
View
Pretty much. There are various applications or web sites that check your own web site for vulnerabilities and even make suggestions on how to improve them. Unfortunatelly, I cannot comment on their usefulness as I have never really tried one. I'm hoping people might know more about it. But it all depends on how far you are willing to go
UJimbo
5-Aug-11 11:46am
View
I'll try later on without the startswith part and see how it behaves
UJimbo
5-Aug-11 11:43am
View
Thanks bob, I've got to rtfm at some point
UJimbo
5-Aug-11 10:37am
View
Try the above as well if you don't want to query without creating a View
UJimbo
5-Aug-11 8:40am
View
person should be Person while defining the ObservableCollection, for some reason the page code marks it as an html tag and then tries closing it at the end. Probaly a bug in the web page
UJimbo
5-Aug-11 8:37am
View
Using your Person class, try using the above function, n will be 2 at the end
UJimbo
5-Aug-11 7:48am
View
I'm using this case only, like the OP requested :)
UJimbo
5-Aug-11 7:01am
View
Updated solution
UJimbo
5-Aug-11 6:19am
View
Changed answer to suit WPF
UJimbo
5-Aug-11 5:22am
View
He should include a link that re-directs the user to one of the valid online scanners that already exist out there.
Googling for: online virus scan
returns a number of big-player companies that specialise in treating viruses. Should be more than enough
UJimbo
5-Aug-11 4:19am
View
Very informative post. Even if someone manages to implement such a procedure, he's in trouble for using an anti-virus engine like that. Pankaj, I think you'd better start making your own anti-virus engine first :)
UJimbo
5-Aug-11 3:46am
View
Modify your Ellipse with x:Name="a_ellipse", and you should be able to find it
UJimbo
5-Aug-11 3:36am
View
Deleted
I won't bother posting, since mr. Graus has it covered, but I will ask you to change your ellipse code like so:
<ellipse x:name="a_ellipse" height="280" width="280" xmlns:x="#unknown" opacitymask="Blue" opacity="22" strokethickness="3" horizontalalignment="Center" verticalalignment="Center">
Compile it and you'll be able to access the ellipse using a_ellipse. Your version has so many errors in it, it doesn't even compile
UJimbo
5-Aug-11 3:29am
View
Nice timing :)
UJimbo
4-Aug-11 7:57am
View
As in guess the proper extension for the URL last part? That will be a bit ambiguous though, won't it?
UJimbo
4-Aug-11 7:49am
View
I see what you mean
UJimbo
4-Aug-11 7:45am
View
I think what he's trying to say is that Regex finds http://www.facebook as a valid url, but it's not since it's missing the final .com part
UJimbo
4-Aug-11 6:06am
View
pretty much
UJimbo
4-Aug-11 5:21am
View
My pleasure kami, take care :)
UJimbo
4-Aug-11 5:05am
View
Updated solution. Make sure you are entering the menustripitem's Name and not Text
UJimbo
4-Aug-11 4:51am
View
What's the name of your menu bar? I just noticed it's a menu bar and not a control on a winform. Try setting:
yourmenubar.Items["display_form_str "].Visible = true;
UJimbo
4-Aug-11 4:32am
View
If ctrl.Length is 0, it means it didn't find a control with that name on the form
UJimbo
4-Aug-11 4:23am
View
You don't need to use an array list in this function by the looks of it, since you are only supplying a string parameter called display_form_str. If this is correct, just use:
private void formm_display_function(string display_form_str)
{
Control[] ctrl = this.Controls.Find(display_form_str, false);
if (ctrl.Length == 1)
{
ctrl[0].Visible = true;
}
}
UJimbo
4-Aug-11 4:13am
View
When Contols.Find "finds" at least 1 control having the same name as the item parameter. For example, in my case, I have a listview control on my form named "listview1". Controls.Find will return only 1 control in the ctrl array.
UJimbo
4-Aug-11 2:46am
View
You are welcome. Take care :)
UJimbo
3-Aug-11 9:13am
View
Your T-SQL is only showing the duplicates, ignoring the records appearing one time.
UJimbo
3-Aug-11 8:41am
View
You are only looking for wayne roo. That is only an example, he has more than one duplicate in his table
UJimbo
3-Aug-11 4:41am
View
Had a small text mismatch. Added Fore color change on both cases
UJimbo
2-Aug-11 9:46am
View
I apologize for the late reply. Dynamic control might not be the correct way to describe a programmatically added control; I blame the fact English is not my native language.
As for calling RegisterName, my method to approach this question uses FindName to locate an object. During some fast testing, I could not discover such a created control without doing the above.
UJimbo
1-Aug-11 8:19am
View
Thank you gentlemen
UJimbo
1-Aug-11 7:52am
View
1 star? Really?
UJimbo
29-Jul-11 5:10am
View
The new CodeBlock is giving me trouble..
UJimbo
25-Jul-11 9:07am
View
Check your Usage Profiles.txt file. Try creating a new file instead, like "C:\Users\Lifebook\Desktop\example.xml" and try reading from that instead.
UJimbo
25-Jul-11 7:47am
View
Excuse me for asking, but is that supposed to be GUID?
UJimbo
15-Jul-11 5:25am
View
Fix your link, it opens a blank page :)
UJimbo
6-Jul-11 7:37am
View
I just tested your code and it reads and appends the contents of a text file to a textbox perfectly. Make sure dlgFileOpen.FileName returns the proper path to the text file you're trying to read is my only suggestion
UJimbo
6-Jul-11 4:12am
View
That's a question capable of causing a riot among a developer team. c# developers will claim that vb is a childish language to program with, while vb developers will claim that c# tries to gain the easability of vb programming, yet it's still 10 years behind in features XD
UJimbo
30-Jun-11 8:41am
View
Wicked coding non the less. Nice work there mate
UJimbo
30-Jun-11 5:45am
View
Looking at your code, you still don't define d_iv. I can see d_dvK and d_lv, but d_iv is still not initialised.
UJimbo
29-Jun-11 10:22am
View
Thank you very much Wayne
UJimbo
29-Jun-11 6:14am
View
http://social.msdn.microsoft.com/Forums/is/vblanguage/thread/92a489b0-667a-4f26-aa94-24e0feb79624
UJimbo
28-Jun-11 10:16am
View
The above will return an empty string if there is no date value, else it will return e.g. 06/28/2011. You can try:
return inObj == DBNull.Value ? "" : "(" + (Convert.ToDateTime(inObj)).ToString("MM/dd/yyyy").ToString() + ")";
to add the parenthesis
UJimbo
28-Jun-11 10:02am
View
Just to get this straight, your question is about changing how the date value is represented inside the database?
UJimbo
17-Jun-11 10:55am
View
Might I suggest then that you create an event for your A_TB1 textbox On TextChanged where you give the value of your textbox to to the public property like:
private void A_TB1_TextChanged(object sender, EventArgs e)
{
Admin_id = A_TB1.Text;
}
On your Administration class, create the variable like so:
string d_id = string.Empty;
Finally, create a method on your Administration class that does what you tried to do above:
public string UpdateValue()
{
return f1.Admin_id;
}
Call the above method whenever you want to get the latest value from your textbox, like d_id = UpdateValue();
Hope I was helpfull
Show More