|
Hi,
I have help files written in HTML, which I display in my Win Form application using Web Browser component.
But now I need to make sure that these files should be accessed only by my application, user should not be able to access these files from the location where these files are installed.
Thanks,
Karmendra
|
|
|
|
|
Keep the help files encrypted and decrypt them before displaying them from your application.
«_Superman_»
|
|
|
|
|
Hi,
I thought of the same thing, but I was wondering how to do it, can you tell me how can I encrypt ant keep the html files and then how can I decrypt it in the application.
Thanks,
Karmendra
|
|
|
|
|
If you protect the files so that they are not accessible by the user, then they wouldn't be accessible by your application which the user runs.
Possibly one way could be that you embed the help files to your application. In that case you don't have a separate help file at all. However, then you should extract the help and store it somewhere when you want to show it.
|
|
|
|
|
Hi,
I meant users should not access the files directly in the installation folder and open and view it using there internet browser. The only way for them to access those files is via my application.
As you suggest embedding it, can you tell me how that can be done, sorry This might be silly to ask but I am very new to .NET and C#
Thanks for you help and time
Regards,
Karmendra
|
|
|
|
|
I think that the problem is that your web browser shows the document based on URL. So in my understanding you must point the url to a valid location where the html is located. Now where ever you store the html, I think it needs to be in a file, in clear format the moment the browser accesses it.
If you embed it, you could write a temporary file and get the contents using GetFile method in Assembly class. After the help is closed, you would remove the remporarty file. The file itself is included in the project using Add Existing item in Project Explorer.
|
|
|
|
|
Encrypting the files individually would probably be less intrusive if you needed to update a single help file whereas there is no change to the application. You could embedd them but that would mean any change to the help file requires a new binary. From a support perspective, keep them seperate.
Schott
|
|
|
|
|
A combination of the suggestions above - why not create a seperate assembly that creates the html in memory or has them embedded - and use that to serve the html source to your main app. An update to the help would just require that dll to be redistributed.
DaveBTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)Visual Basic is not used by normal people so we're not covering it here. (Uncyclopedia)
|
|
|
|
|
Hi,
Thanks for all you r efforts, but i am very new .Net C#, I am not sure what you mean "embed the html", Do you mean write code that will generate the Html? Please Explain.
Thanks,
Karmendra
|
|
|
|
|
Unreadable help files? great idea.
Luc Pattyn [Forum Guidelines] [My Articles]
I use ListBoxes for line-oriented text output (not TextBoxes), and PictureBoxes for pictures (not drawings).
modified on Friday, June 10, 2011 12:18 PM
|
|
|
|
|
These help files are not related to using the software it is having information related to any experiment, and in Examination mode I do not want users to see them.
|
|
|
|
|
Hi,
you could add an "enter password" dialog to the HTML code, have most of the page content encrypted and include some JavaScript that checks the password and decrypts the text. Don't ask me for details though, I'm not inclined to do such things myself. I'd rather create my own file type and non-HTML browser.
Luc Pattyn [Forum Guidelines] [My Articles]
I use ListBoxes for line-oriented text output (not TextBoxes), and PictureBoxes for pictures (not drawings).
modified on Friday, June 10, 2011 12:19 PM
|
|
|
|
|
hi
i am developing an application that is using sql server 2005 and its database, i am wondering that how can install my application on the customer side that works perfectly with sql server?
i don't think that i should install Microsoft SQL Server on the customer side, shall I? so what should i do ? is it enough to install microsoft sql native client on customer side?
|
|
|
|
|
The only configuration when you don't need to install SQL Server is when you use compact edition, which is intended for local single-user systems as a small database. If you use Express edition or higher, SQL Server installation is needed.
|
|
|
|
|
i have used enterprise edition,
you mean that i have to seperately install sqlserver and then install my app?
|
|
|
|
|
Well, if you use Enterprise Edition, the first thing is that it's licensed pruduct and the customer must purchase the license in order to use that edition.
When the licensing part is managed, then you would install the SQL Server (or the customer installs it beforehand) and after that in a separate installation you would install your application.
I'm not sure if there's a way to link these installations, but the most important point is that you cannot distribute Enterprise Edition with your application without the customer having a valid license.
|
|
|
|
|
No you shouldn't include the SQL Server install as part of your install. Usually when SQL Server comes into play it is installed and configured as a seperate task. As mentioned before, a license would need to be purchased to use the product on the up and up. The sequence in which you install your application doesnt not matter, you will just need to know the specifics of the SQL Server and your application would then be able to connect. In the past I've just had a SQL Svr property page in which you define the svr name, logon parameters, database name and port.
Schott
|
|
|
|
|
I'm writing an editor Form that operates on any instance of a 'Control' class. I'd like to show an image of the active control context in the upper left of my Form - just so the user gets a visual of what control they are working on. Is there a way to get a Control to draw onto a Form that is not its parent?
I've been play around with Control.DrawToBitmap, but I can't seem to make it work
Thanks,
Aaron
|
|
|
|
|
DrawToBitmap seems to work fine
Bitmap b = new Bitmap(pictureBox1.ClientRectangle.Width, pictureBox1.ClientRectangle.Height);
button1.DrawToBitmap(b, button1.ClientRectangle);
pictureBox1.Image = b;
The above code shows an image of the button in a picture box.
|
|
|
|
|
Hi i am using sql server 2005 and visual studio 2005 and have come up aganist
a break wall for inputing a insert statement from sql server 2005. below is
my stored procedure and my c# visual studio code. i am new to this so any
help would be very helpful.
THis is My SP
USE [PostBook] GO /* Object: StoredProcedure [dbo].[CreateNewPost] Script
Date: 01/17/2009 15:36:15 */ SET ANSINULLS ON GO SET QUOTEDIDENTIFIER ON GO
-- ============================================= -- Author: Mark Stewart --
Create date: 09/10/2008 -- Description: New Post Item --
============================================= ALTER PROCEDURE
[dbo].[CreateNewPost] -- Add the parameters for the stored procedure here
--@DateReceived smalldatetime , @PostFrom varchar(200), @PostTo
varchar(200), @CorrespondenceDate smalldatetime, @DateForwarded
smalldatetime, @ResponseDate smalldatetime, @Summary varchar(max), @Disposal
varchar(max), @DisposalDate smalldatetime, @ReferredTo varchar (200),
@AckDate smalldatetime, @AckBy varchar (200), @InterimReply varchar (200),
@InterimDate smalldatetime, @ReplyDate smalldatetime, @BusinessArea varchar
(200), @UserID int, @ClassID int
AS
DECLARE @i AS INT BEGIN TRANSACTION SELECT @i = COALESCE(MAX(ReferenceID),
0) FROM dbo.PostBookItems WITH (TABLOCKX, HOLDLOCK) WHERE PostBookID = 1
INSERT INTO dbo.PostBookItems(PostBookID, ReferenceID, DateReceived,
PostFrom, PostTo, CorrespondenceDate, DateForwarded, ResponseDate, Summary,
Disposal, DisposalDate, ReferredTo, AckDate, AckBy, InterimReply,
InterimDate, ReplyDate, BusinessArea,ClassID,UserID,DateUpdated) VALUES(1, @i
+ 1, GETDATE(), @PostFrom, @PostTo, @CorrespondenceDate, @DateForwarded,
@ResponseDate, @Summary,
@Disposal, @DisposalDate, @ReferredTo, @AckDate, @AckBy, @InterimReply,
@InterimDate, @ReplyDate, @BusinessArea,@ClassID,@UserID,GETDATE()) COMMIT
And this is my windows form code:-
private void saveNewPostItemMenuStrip_Click(object sender, EventArgs e) {
dtPostBookItemsBindingSource.EndEdit();
taPostBookItems.CreateNewPost(dsMain.dtPostBookItems,,
Program.PostbookID,(Convert.ToInt32(postFromTextBox.Text.ToString)
(Convert.ToString(postToTextBox.Text.ToString)
correspondenceDateDateTimePicker.Value.ToShortTimeString)
dateForwardedDateTimePicker.Value.ToShortTimeString),
responseDateDateTimePicker.Value, summaryTextBox.ToString,
disposedTextBox.ToString, disposalNotesTextBox.ToString, ValueType =
Convert.ToDateTime(disposalDateDateTimePicker.Value))
referredToTextBox.ToString, ackDateDateTimePicker.Value,
ackByTextBox.ToString, interimReplyTextBox.ToString,
interimDateDateTimePicker.Value, replyDateDateTimePicker.Value,
businessAreaTextBox.ToString, classIDTextBox)));
Help please.
|
|
|
|
|
This looks like a disaster. Where is your issue ? What is your error ? It seems to me that you're trying to alter when you should be creating. Beyond that, lines like
Montypythons wrote: Convert.ToString(postToTextBox.Text.ToString)
Tell me that you are totally clueless and should read a very basic C# book before worrying about ASP.NET or SQL.
Also, unless you're using some sort of entity framework which generates invisible wrappers, the code you posted is useless. It calls the code that calls the proc, rather than calls the proc.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Hi Guys,
I am new to C Sharp.I wanna make a software just for a comptetion.Although a/c to my knowledge it is very hard to make just for beginners.But I will try my level best.
The software is call NAPS(Network Automated Play and Editing Sytem).The main function in to play avi video files at specific time intervals.The user just adds the video files and automatically the files are run at the specifies time.
Moreover there are other navigation options too.Like to view a video file(There is a video play option also).I am attaching the link that how the software looks.
Link: http://img111.imageshack.us/my.php?image=66023203nc0.jpg
My Questions is that:
1) Which language should I use for making this software?
2) What things should I know for making this software?
3) Can I make this software using VS05?
Waiting for you replies guys?
Regards,
|
|
|
|
|
1 - C# is fine, and easy enough
2 - just some basic syntax, buy a basic C# book
3 - yes, even the Express Edition
You just need a windows media control and then you can use a timer to play videos on it.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Can you guys guide and help me how to make this software.
1) What component in VS08 should I use to make this software(like Windows forms,Class Libraries etc????)
2) I am learning C Sharp from Video Tutorials,Would that be enough?
3) Which language would you prefer for making this software?
|
|
|
|
|
a2usmani wrote: What component in VS08 should I use to make this software(like Windows forms,Class Libraries etc????)
That's a very open-ended question that can't be answered in a single post. As CG has suggested, you need to spend time to familiarize yourself with the language and the development tool.
a2usmani wrote: I am learning C Sharp from Video Tutorials,Would that be enough?
That's entirely dependent on you an your prior knowledge of programming. I often use training videos as a starting point for new technologies, but almost always read a good book on the subject in order to understand the finer points.
a2usmani wrote: Which language would you prefer for making this software?
As CG already said, C# should be fine.
/ravi
|
|
|
|
|