I want to display some bold and some simple content in the form so I am using richtextbox.And I have made one file with extension of .rtf.Now I load that file in the richtextbox with use of the Loadfile() function.This works. But I want to display particular content of the file in the richtextbox,like may be first five lines or it may be...
What are possible ways to save string arrays to a stream without using serialization?
I'm particularly interested in strings since their lengths may vary. I also should be able to restore the array from stream.
And, more importantly, I would like to be able to read only slices of an array without reading full array into memory, because...
//Introduction
Hey, Welcome.....
This is the tutorial
//EndIntro
//Help1
Select a Stock
To use this software you first need to select the stock. To do that, simply enter the stock symbol in the stock text-box (such as "MSFT").
To continue enter "MSFT" in the stock symbol box.
//EndHelp1
//Help2
Download Stock Data
Next step is to to...
I'm about to develop databse server app; I have decided not to use typed dataset/dataset, except in the DAL, (so I'm not asking the question whether to use dataset or custom objects).
Populating my custom objects with data requiers an interaction with DataSet in the DAL.
I have seen a reasonable way of using typed dataset for this purp...
I need to play PowerPoint slides but first I want to check whether PowerPoint or viewer is installed on the machine or not. How can I do that using .NET?
...
In debug, everything builds normally.
When I try to compile in release mode, I get:
"The type or namespace name 'Castle'
could not be found (are you missing a
using directive or an assembly
reference?)"
I obviously have the reference, or the project would not compile in debug either. So, what am I doing wrong?
...
Is there a way to inspect/spy elements in a web browser like firebug does when we move the mouse over the webpage? How to to it in c#??
EDIT:
Actually I just want to get the HTML source code from the tagged element.
Best regards.
...
Hi
How can I add menu items to the Context menu for folders? I don't want to do this via registry. I want to integrate this with my application's installer and when the application is installed, the context menu items should be added. On clicking the items, my application's method should be called (similar to what WinRAR does)
Thanks.
...
I am providing registered members of a website a weekly mailing which contains URLs to private pages on the website.
For usability purposes, I don't want the user to have to provide their credentials after they click on the URL.
I am using the ASP.NET Membership provider model.
Question
How can I implement this so that the user ca...
We want the code for logging into facebook through a desktop application. specifically looking for code in C#.net.
...
I auto-generated a controller, and it includes calls such as:
//
// GET: /User/
public ActionResult Index()
{
return View();
}
//
// GET: /User/Create
public ActionResult Create()
{
return View();
}
What determines the actual view (.aspx file) that these parameterless View() calls invoke?
...
What is header in richtextbox format?? And how can we manipulate the rtf file.
...
Say I have Object A which has a member of type Object B.. and Object B has a member of type Object C.
Object A VERY RARELY changes but is read very frequently, whereas Object C frequently does. It makes sense to cache Object A, but when it's serialized to go in the cache obviously is serialized the whole graph.
Scenario:
Object A is re...
I have a byte array containing bytes from a file(see my last question)
now I want to get the second lot of 4 bytes from the array and convert them to an integer
something like bytearray.get(4[start],4[length])
...
there is a sample code for creating a custom textbox control with built in validation posted here Building ASP.NET TextBox with Integrated Validation And Switchable Input Modes. Inside the code there is a call to Controls.Add(validator) which adds the asp.net validator control to the textbox. when the textbox is used on the page, the va...
I created a windows application developed in .NET 3.5 in a 32 bit Windows 2008 server. When deployed the application in a 64 bit server it shows the error "Microsoft.Jet.OLEDB.4.0' provider is not registered on the local machine ".
So as a solution to this issue, i have changed the build property of the project to X86, so that it will b...
I have a byte array and I need to get 4 bytes from it at a certain location(16) but I don't want to convert it to a integer or anything just keep it as 4 bytes to store in a variable.
(I am sorry if this is too similar to my last question)
...
I created a .NET windows service that installs without any issues on the dev machine. On the server that has only the .NET framework (and no VS installed), since I don't have the VS 2008 prompt, I did the following.
I opened the command prompt
I did cd C:\WINDOWS\Microsoft.NET\Framework64\v2.0.50727
I attempted to install the service u...
How can you programmatically set the parameters for a subreport?
...
I have a simple form in ASP.NET MVC. I am trying to post these results to a controller action and I am getting strange behavior.
The view is a simple HTML table:
Here is part of the HTML form View:
<form action="/Applications/UpdateSurvey" method="post"><table id=questionsTable class=questionsTable border=1>
<thead><tr><td>Name</...