15,899,679 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 austinbox (Top 19 by date)
austinbox
9-Nov-14 15:47pm
View
Your URI is invalid if the remote server returns NotFound
austinbox
7-May-14 10:22am
View
Try changing your method so it invokes txtLog, I am assuming txtLog is a control.
public void UpdateLog(string strMessage)
{
if (txlog.InvokeRequired)
{
txlog.Invoke(new UpdateLogCallback(UpdateLog), strMessage);
return;
}
txlog.AppendText(strMessage);
}
And then you can get rid of the line "this.Invoke(new UpdateLogCallback(this.UpdateLog), new object[] { srReceiver.ReadLine() });"
And replace it with "UpdateLog(srReceiver.ReadLine());"
austinbox
29-Jan-14 11:29am
View
Well if you want the angle between the two pixels you can use Math.atan2.
For example:
double angleInDegrees = Math.Atan2(pix2.y - pix1.y, pix2.x - pix1.x) * (180 / Math.PI);
austinbox
11-Dec-13 22:35pm
View
How are you calling your program?
austinbox
7-Dec-13 0:06am
View
Well, the data type long does hold bits of a range from -9223372036854775808 to 9223372036854775807
And if you know the number is positive which would work in this case you could increase the range of positive numbers using ulong.
austinbox
3-Dec-13 22:52pm
View
You can't reference the class itself, you need to create a webBrowser control yourself, and then substitute WebBrowser to the Name of your webBrowser control.
austinbox
1-Dec-13 1:39am
View
Thank you so much, this helps a lot!
austinbox
2-Jun-13 16:48pm
View
Well, outside your network people can't connect to your server without a port forwarding, or unless you own a http server. So I would suggest if you can't get a web server, either experimenting with automatic port forward or either a really nice port forwarding guide. There are articles on Upnp and other port forwarding guides like this one: http://www.codeproject.com/Articles/13285/Using-UPnP-for-Programmatic-Port-Forwardings-and-N
austinbox
30-May-13 0:27am
View
Ah, thanks for the clarification, I thought you could by:
delegate ExampleInvoke(parameters);
void UIInvoke(parameters)
{
if(control.InvokeRequired)
{
control.Invoke(new ExampleInvoke(UIInvoke(parameters));
return;
}
dostuff()
}
Thanks adding for the second solution and exaplnation.
austinbox
23-Jan-13 1:00am
View
If the Properties LongName and ShortName are intended to be read-only just use
public string MyProperty { get; private set; }
That way the property can only be changed inside the class
And don't forget to change your constructor
austinbox
3-Jan-13 14:00pm
View
http://www.codeproject.com/Articles/5123/Opening-and-Navigating-Excel-with-C
Lots of articles on opening these things, just use the search up in the corner ;)
austinbox
27-Dec-12 14:04pm
View
You don't, if you wanted to use different sized lengths just pass them in as parameteres.
austinbox
25-Dec-12 20:01pm
View
After releasing the com object, you could try killing the process...
austinbox
25-Dec-12 0:51am
View
Well, it's not really used for finding strings, the function I run needs the strings to be ordered like above, I'll post the code...
austinbox
24-Dec-12 15:26pm
View
It's got to be your reading, I'm working on it...
EDIT: I wouldn't suggest storing data in a one-dimensional array.
Loading is alot easier swhen you use a multi-dimensional array.
I would suggest redoing all of your drawing/loading with this pseudocode.
Block[,] blocks = new Block[width, height];
for (int x = 0; x < blocks.GetLength(0); x++)
{
for (int y = 0; y < blocks.GetLength(1); y++)
{//Add filling code here ex. blocks[x, y] = BLOCKID
}
}
//And to get a blockid
int blockid = blocks[x, y];
austinbox
24-Dec-12 15:10pm
View
Deleted
It doesn't really matter,
"// -- Initialize.
for (int i = 0; i < World.ChunkSize; i++)
for (int j = 0; j < World.ChunkSize; j++)
_ReturnString += (char)BlockID.BLOCK_GRASS ;
// -- Write the world bytes.
for (int i = 0; i < ChunkSize; i++)
{
for (int j = 0; j < ChunkSize; j++)
{
// -- Block.
char Block;
if (ChunkY > 0 || (ChunkY == 0 && j > ChunkSize / 2))
{
Block = (char)BlockID.BLOCK_GRASS;
}
else
Block = (char)BlockID.BLOCK_AIR;
// -- Add Return.
_ReturnString = ReplaceAtIndex(i * j, Block, _ReturnString);
}
}"
would give me an error
austinbox
24-Dec-12 15:02pm
View
Seems a bit fishy that you have two loops with the same variable names, wouldn't that alone givew you an error?
austinbox
24-Dec-12 0:17am
View
Client client = new Client();
IPEndPoint ep = new IPEndPoint(IPAddress.Parse("myip"), port);
client.Send(ep, "mydata");
austinbox
23-Dec-12 17:18pm
View
Try checking in the string for unique characters from each language, then go from there.
Show More