I'm using Socket class for my web client. I can't use HttpWebRequest since it doesn't support socks proxies. So I have to parse headers and handle chunked encoding by myself. The most difficult thing for me is to determine length of content so I have to read it byte-by-byte. First I have to use ReadByte() to find last header ("\r\n\r\n" ...
I'm trying to use System.Drawing.RotateFlipType in my settings file. This screenshot summarizes my problem:
Each of RotateFlipType values is doubled, and some are missing. If I try to use some of missing values (like Rotate180FlipX, through app.config) - it is simply ignored.
Using VS2008 with SP1, vb.net with framework 3.5 on windo...
Every time I update my data model, it makes this value 2008, breaking the 2005 server deployment. Is their anything besides a build action I can use to stop this?
...
I want to present up to 300 strings (just a few words) in a Viewport3D - fast! I want to render them on different Z positions and zoom in and out fluently.
The ways I have found so far to render text in a Viewport3D:
Put a TextBlock in a Viewport2DVisual3D.
This guy's PlanarText class.
The same guy's SolidText class.
Create my own 2D ...
We'd like to create a simple 'friendly url' on a site that Response.Redirects to the actual ugly url. Will this impact Google analytics at all?
example: /somepage redirects to /index.aspx?someuglyquerystring
Thanks.
Edit
And further to that, I'm assuming that Server.Transfer would be ok here? I did run into a gotcha in trying this - ...
These 3 types of lock are apparently bad.
What other type of locking is bad?
Are there Stylecop / FxCop rules that would catch this?
If not, then would you please help me with a custom rule implementation? They code for all of them must be similar, right?
Thank you.
...
In a winforms tabcontrol, is there a way to make a certain tab visible but not selectable?
I can make it Visible = false, but I would like the tab to show up but simply not be clickable/selectable.
...
I have my project in .NET that uses a database in SQL Server. I'm using Linq-to-SQL, sometimes when the project throws me an exception (Constraint) in a part of the project this same error keeps showing in other part of the project when I do another thing with the database. Like when I do an insertion and I had before an exception on del...
I need a way to take several jpgs and convert them into a single multi page Tiff. I have that working using GDI+ however it only works with the compression LZW which is lossless. This means that my 3 50KB Jpgs turn into 3MB multipage Tiff file. This is not something I can accept for the software that I am working on.
I know that Tiff...
I have never spent much time debugging multithreaded .NET apps (or others), and have quite a simple one to solve very quickly. Ideally I would imagined and would lurve to be able to intercept thread creation and use by worker objects, so that nothing unexpected happens while I'm on a breakpoint in my thread. Is that realistic?
What el...
I would like to implement a way to trace every line of code in an application that is written for .net v4.0.
An example would be. If I had the following function.
private bool hasValue(string value)
{
if(string.isnullorempty(value)
{
return false;
}
else
{
return true;
}}
Then when the function is called I want detailed trace log...
I want to bind a user control (View) to a ListBoxItem. The ListBox is bound to a collection of ViewModels. I have set the ListBox's ItemTemplate as so:
<ListBox.ItemTemplate>
<DataTemplate>
<View:ContactView/>
</DataTemplate>
</ListBox.ItemTemplate>
But all I get are blank ListBoxItems. I can click on the...
Well I am currently trying to get the word/text in between these 2 things
: and !
I tried this
Dim nick As String = String.Empty
Dim p = ":(?<ircnick>.*?)!"
Dim Matches = Regex.Matches(mail, p, RegexOptions.IgnoreCase Or RegexOptions.Singleline)
If Matches IsNot Nothing AndAlso Matches.Count > 0 Then
...
I have two objects (Foo and Bar) that have a one-to-zero-or-one relationship between them. So, Foo has a nullable foreign key reference to Bar.ID and a (nullbusted) unique index to enforce the "1" side. Bar.ID is an int, and so Foo.BarID is a nullable int.
The problem occurs in the LINQ-to-SQL DBML mapping of .NET types to SQL datatypes...
I have a windows application that calls into a WCF web service. On the server side I am using S#arp Architecture as a base framework.
When making calls to the server the application isn't as responsive as it should be with calls to the server taking in the region of a couple of seconds.
I profiled the application with Ants Profiler ...
Correct me if I am wrong, but it appears that the SyndicationItem.Content is null some times based on the feed address. When it's null, SyndicationItem.Summary seems to have the text of the blog post.
Is this dependent on whether the feed is RSS or Atom? I am trying to get the blog post's text irrespective of what RSS URL the user input...
I am trying to share a common namespace between two projects in a single solution. The projects are "Blueprint" and "Repositories". Blueprint contains Interfaces for the entire application and serves as a reference for the application structure.
In the Blueprint project, I have an interface with the following declaration:
namespace...
Hello everyone,
I'm building a website (a community web site like digg) but we will soon release a new feature that people will need to pay for.
Right now, our website is in pure C# in .NET, very simple pages with some AJAX. When the member log in, there is no HTTPS. Everything is check with session and the internal validation that I d...
In VB.net is there anyway to make a certain part of the string to have a different color to make it stand out?
This doesn't work but if I could something like this
string = ("How".ForeColor(red) & "are".FontColor(green))
Would it be possible to make anything similar to this in a ListBox?
If this is not possible is there a way to hav...
Hi,
So, I've got a C# project for Windows Mobile phones and I'm trying to work with the InputPanel. Specifically, I've got one form with a stack of Labels and TextBoxes that collect user input. I have an InputPanel that alerts me when the user opens the SIP. Everything works fine so far. When I get messages that the SIP status has ch...