|
|
"Design Patterns in C#" by Christopher Lasater.
|
|
|
|
|
|
Try here
C# Design Patterns[^]
There is a commercial electronic book to go with this (I've not got it) but there are also free code snippets on this page.
A good more general book is Design Patterns Explained[^].
Code fragments are in Java, but it's very simple Java, and it does a very good job of explaining the concepts.
Kevin
|
|
|
|
|
|
Hi,
I am working on asp.net 3.5 in local environment, IIS 2.0 are installed on live server with win 2000 server as OS. so may i need to change server configuration, if yes, so what configuration we need to change for live server which will run asp.net 3.5 build sites?
Thanks in advance,
Abbas
|
|
|
|
|
As far as I know, the .NET 3.5 framework is not supported on
Windows 2000 Server.
.NET Framework System Requirements[^]
If you can't install the 3.5 framework on the server, then you may
need to target the .NET framework 2.0 (you can set this on the
Visual Studio project's property pages).
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Thanks Mark,
I also checked out that .NET 3.5 framework is not supported in win 2000 server, I already installed .NET 2.0 on it, so either we need to change our server configuration or we start our development work in .Net 2.0 framework.
Thanks,
Abbas
|
|
|
|
|
USING COMMAND BUTTON I AM OPENING A NEW FORM USING JAVASCRIPT AS FOLLOWS
"window.showModalDialog(urll, self , WinSettings)"
ONCE I CLOSED THAT FORM, AND AGAIN IF I CLICK THE COMMAND BUTTON THAT FORM IS NOT OPENING.
MEANS THE PAGE LOAD CODE IS EXECUTING ONLY FOR THE FIRST TIME.
HOW CAN I SOLVE THIS PROBLEM?
|
|
|
|
|
Please do not post multiple times. Your message has already been responded to here[^].
|
|
|
|
|
|
How can I retrieve data to a Label box using SQL Server
|
|
|
|
|
|
Very minor point: Note that the connection string might not be identical in terms of the # of \'s. At least using VB6 and C++ .NET the connection string might contain two \\ characters while VB6 using a single \.
|
|
|
|
|
Has anybody seen a full implementation for a date(time) class/struct in C#?
I don't need this for a project or anything (the built in one seems adequate for dealing with date and time constructs for business apps). However, I have a friend who is trying to pick up some of the more arcane OO concepts in C# and I thought such an example might give good coverage of operator overloading, serialization, etc. I had to do one way back in the day with C++, so I thought something similar might be a handy way of explaining the same concepts to him.
|
|
|
|
|
There is a very good example in Charles Petzold's publication .NET Book Zero[^].
|
|
|
|
|
I used reflector to browse through the DateTime code a while back. You could always use that.
"WPF has many lovers. It's a veritable porn star!" - Josh Smith As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.
My blog | My articles | MoXAML PowerToys | Onyx
|
|
|
|
|
Hi all,
I dont know in which forum i have to post this issue. If i am wrong please guide me to post in which form
I am developing a vb.net desktop application that reads mails from the mailserver using pop and imap .
The application is almost fnished .The problem is the some time when a command is send to retrieve a mail using GetMessage() functions the applications is going to a halt
So I tried to run the the code in debug mode and ran line by line .
What I noticed is in the while loop in GetMessage() function is
While Not tmpString.StartsWith(sPrefix)
tmpString = reader.ReadLine
msg = msg & tmpString & vbCrLf
End While
The reader reads line by line at certain point of time it got hangs
Some times it ill catch an exception and give an error . I am pasting the exception below
"Received an unexpected EOF or 0 bytes from the transport stream"
But some times the applications will hang and go for a halt .This applications has to run 24/7 .So if it hangs in the night or it will be problem .
What I want is if the reader is not able to read from the stream after certain time period . the control has to be removed from the reader and the function has to return a message . I am new to this the network level applications and I am running shot of time
So I am in big trouble . If anybody knows this problem please help me
I have pasted the code briefly so that you can get an idea about the program
Dim objTCP As New TcpClient
Dim sslstream As Net.Security.SslStream
Dim reader As StreamReader = Nothing
objTCP.Connect(IMAPserver, Port)
sslstream = New Net.Security.SslStream(objTCP.GetStream())
sslstream.AuthenticateAsClient(IMAPserver) ' authenticate as client GMAIL
AuthStatus = sslstream.IsAuthenticated
reader = New IO.StreamReader(sslstream)
Function GetMessage(ByVal sCommand As String, ByVal sslstream As SslStream, ByVal reader As StreamReader) As String
Dim tmpString As String = ""
Dim msg As String = ""
Try
sendcmd(sCommand, sslstream)
tmpString = reader.ReadLine()
If tmpString <> "" Then
msg = msg & tmpString & vbCrLf
End If
While Not tmpString.StartsWith(sPrefix)
tmpString = reader.ReadLine
msg = msg & tmpString & vbCrLf
End While
If InStr(msg, "BAD Could not parse command") > 0 Then
'MsgBox("BAD GETMESSAGE")
End If
Catch ex As Exception
appendFile(strErrPath, "Error in GetMessage, BAD command : command : " & sCommand & Space(3) * "User: " & UserName & ex.Message & Date.Now)
End Try
Return msg
End Function
|
|
|
|
|
You should paste the exception you are getting (message and type).
At first glance it seems like the while loop has a bad condition, the reader reaches the end of the stream and you are trying to read a line.
Add a condition to your while using reader.EndOfStream.
if(not reader.EndOfStream)
{
tmpString = reader.ReadLine()
If tmpString <> "" Then
msg = msg & tmpString & vbCrLf
End If
While not reader.EndOfStream && Not tmpString.StartsWith(sPrefix)
}
|
|
|
|
|
Hi
I have to create a windows application which can connect to a remote host through SSH and can perform some operations on the remote host.
remote host is a cisco router 3745
Problem I am facing is which ssh client to use and how to use in the application.
If anybody knw please update me @ himanshu_agarwal@live.com / himanshu.agarwal@gmail.com
|
|
|
|
|
|
Hi.,
How to print a crystal report in a dotmatrix printer using vb.net code and printing should be fast?
Any ideas...
Thanks & Regards
Raj
|
|
|
|
|
hi Raj
You can use 12dpi fonts, all your crytal report contents to be printed should be in 12 dpi font.
These fonts are added to windows fonts once you install Dot matrix printer drivers.
if these fonts are used printing will be faster compared to windows fonts
cheers
saleem
cc
|
|
|
|
|
I would like to know if is there any parameter which let me ask for confirmation of the Mail arrival using System.Net.Mail and the sender SMTPClient.
modified on Thursday, November 19, 2009 7:47 AM
|
|
|
|
|
This is a programming question and doesn't belong in the Lounge. Try this forum instead. Either that, or Quick Answers.
Visual Studio is an excellent GUIIDE.
|
|
|
|