I created a simple software program in C#, and would like to add a Calendar to it. Something that could have a monthly view (with a line or two written on particular days), and a daily view (or simply a popup that displays the events for that day, when clicked in monthly view). I'd like to be able to add events to specific dates, and then save the calendar to load up later.
I've searched high and low for any kind of tutorial, sample, or source code on how to do this, but haven't found much of anything that works. The closest was this component: http://www.accelerated-ideas.com/NET/aiFreeNETComponents_AICalendar.aspx, which would actually work perfect if it didn't freeze up.
I haven't done much in the saving area with c#, except writing/reading from an xml file, I'm assuming this probably won't work though with saving a calendar. Any ideas, tips, thoughts, links to resources, etc. on which direction to take is greatly appreciated! Thanks in advance.
hello everyone. I have created panels modeled as sheets of paper on which I draw text. My current implementation creates a lot of sheets (panels) sufficient to draw all the text. It happens that sometimes I create about 100 panels to draw all the text. I have realised this is not a good idea as much of memory is used.
I would like to know any idea I can implement viewing of the text by creating smaller count of sheets, something like streaming the text so that I draw only those once that become visible as the user scrolls the page. I'm finding it difficult to implement this.
Any sample code or idea on how I can implement this? I want it to work like that of Microsoft Word or Adobe Reader which is even capable of opening documents of 500 or 1000 pages. Thanks in advance.
You only need a small amount of painted panels, as many as you can possibly see at any one time.
So you need to figure which pages are visible and generate those, not the invisible ones.
And you can destroy the ones that become invisible (due to scrolling in the document); or you could keep a small cache of say 10 panels, so scrolling back and forth goes a bit faster.
I have a gridview and a panel. the data in the gridview are the links of the names. When i click any link of the row of that gridview, based on the program, it should show or hide the panel. But the problem is when i first click the link, panel is showing or hiding based on which link i clicked but when i click another link from the gridview, it is not executing its function. Any idea why is that?
Hi this is chandra.
I have one question. I have some predefined Chat controls. I want to create a chat control as a user control in c# by assigning some properties like chat name, chat width, chat height.How can i create this. can any one please suggest me on this.
If the DLL's running in process, its console output should go to your stdout/stderr already. That means that you shouldn't need to explicitly redirect it with SetStdHandle; try removing that and see where its console output goes. (It should still go to the file through the redirected Console.SetXxx in your app.)
Then you need to create a wrapper for TextWriter that will give you write events; inheriting from StringWriter and overriding Write(char) should do it, but you might need to override Write(string) as well.
Pass an instance of this subclass to Console.SetOut/SetErr and hook up the event to write into your control.
This night I try the asp.net mvc framework which is ASP.NET MVC 2 Empty Web Application. I create controller class, model class and view page. Its successfully run. But I can't find configuration file for classes and page mapping.
Actually I want to mapping classes and views by custom on xml based file like spring bean xml configuration on Java environment.
CF binding is a set of binding elements and each element specify, how the service and client will communicates with each other's. Each binding must have at least one transport element and one message encoding element. Different types of WCF bindings
WCF has a couple of built in bindings which are designed to fulfill some specific need. You can also define your own custom binding in WCF to fulfill your need. All built in bindings are defined in the System.ServiceModel Namespace. Here is the list of 10 built in bindings in WCF which we commonly used:
This binding is provided by the BasicHttpBinding class. It is designed to expose a WCF service as an ASMX web service, so that old clients (which are still using ASMX web service) can consume new service. By default, it uses Http protocol for transport and encodes the message in UTF - 8 text for-mat. You can also use Https with this binding.
This binding is provided by the WebHttpBinding class. It is designed to expose WCF services as Http requests by using HTTP-GET, HTTP-POST. It is used with REST based services which may give output as an XML or JSON format. This is very much used with social networks for implementing a syndication feed.
Web Service (WS) binding
This binding is provided by the WSHttpBinding class. It is like as Basic binding and uses Http or Https protocols for transport. But this is designed to offer various WS - * specifications such as WS – Reliable Messaging, WS - Transactions, WS - Security and so on which are not supported by Basic binding.
This binding is provided by the WsDualHttpBinding class. It is like as wsHttpBinding except it sup-ports bi-directional communication means both clients and services can send and receive messages.
This binding is provided by the NetTcpBinding class. It uses TCP protocol for communication be-tween two machines with in intranet (means same network). It encodes the message in binary format. This is faster and more reliable binding as compared to the Http protocol bindings. It is only used when communication is WCF - to – WCF means both client and service should have WCF.
This binding is provided by the NetNamedPipeBinding class. It uses named pipe for Communication between two services on the same machine. This is the most secure and fastest binding among all the bindings.
This binding is provided by the NetMsmqBinding class. It uses MSMQ for transport and offers sup-port to disconnected message queued. It provides solutions for disconnected scenarios in which service processes the message at a different time than the client send the messages.
Federated WS binding
This binding is provided by the WSFederationHttpBinding class. It is a specialized form of WS binding and provides support to federated security. Peer Network binding
This binding is provided by the NetPeerTcpBinding class. It uses TCP protocol but uses peer net-working as transport. In this networking each machine (node) acts as a client and a server to the other nodes. This is used in the file sharing systems like torrent.
MSMQ Integration binding
This binding is provided by the MsmqIntegrationBinding class. This binding offers support to communicate with existing systems that communicate via MSMQ.
<pre lang="c#"><pre lang="c#">
Choosing an Appropriate WCF binding
. Depending upon your requirements, you can choose a binding for your service as shown below in the diagram: