|
Looks like it'll be the only way. For some reasons i would have favoured an approach to trap the key event and handle it by myself. For now, it remains a mystery to me why i can't do so. Anyway, thanks!
|
|
|
|
|
You have to think of it in the Windows way. Under normal circumstances it is the active window that receives the keyboard input. So if you have a modeless dialog that does not have the focus then it will not receive the escape key. The only way to signal that dialog is by making it the active window.
|
|
|
|
|
If you are catching the Escape key in the Form's Keypress or KeyDown events, you must set the form's KeyPreview property to true.
|
|
|
|
|
Hello,
Platform: DotNet with C#.
I was wondering if there is an open source library that my application can link with, which would allow me to have my own encrypted file system and which would appear as a single file within the host file system? (Any license will do, including GPL.) My application needs to save a large number of files that should not be "peekable" by any of the IT admins.
I checked up on Fuse, however, I am looking specifically for a DotNet option.
Any help would be appreciated.
Thanks,
N
Najeeb Shaikh
|
|
|
|
|
Your program would contain the code to access the files, and they could just decompile it.
They're IT admins, not script kiddies, they will find the way to decrypt the files, you can only delay them
|
|
|
|
|
Yeah, sure, thanks for the information.
However there may be multiple deployment scenarios that I do not want to get into here, as also obfuscation.
Suffice it to say that I'm just looking for a basic file system that I can link to.
Any help here would be much appreciated.
Thanks in advance.
N
Najeeb Shaikh
modified on Friday, September 25, 2009 2:26 AM
|
|
|
|
|
You could always use an encrypted *.zip. There are plenty of 'zip' libraries for .NET, just google.
Henry Minute
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
|
|
|
|
|
You could always create a database filesystem.
...cmk
The idea that I can be presented with a problem, set out to logically solve it with the tools at hand, and wind up with a program that could not be legally used because someone else followed the same logical steps some years ago and filed for a patent on it is horrifying.
- John Carmack
|
|
|
|
|
Store them in a directory called "Things I need the SysAdmins to work on".
Or use a database.
|
|
|
|
|
Sorry about the delay in replying... a very long weekend here in India.
BTW, found something [here]. Seems to be worth looking into.
Najeeb Shaikh
|
|
|
|
|
Callback File System with source. Although not free, it's a feature-rich, maintained and updated SDK that lets you create virtual file systems in Windows. .NET API is available.
|
|
|
|
|
Thanks for this! Looking into it.
Najeeb Shaikh
|
|
|
|
|
I have following 2 procedures when media player will start
then same time second procedure call.
actually when my second procedure testconnection() starts its takes 15seconds thatswhy i want to first run FrmArrivalEng.ShowDialog() "movie" its duration 15seconds thatswhy i want to when start movi then same time backhand secondprocedure start in this way when movie will finish then second procedre ends.
FrmArrivalEng.ShowDialog()
testconnection()
thxxx
|
|
|
|
|
Keywords: Office Web Components 11, events, VB.NET.
I have seen that several persons on the internet requesting a solution for this, so here comes my solution that works with VS2005 and 2008:
The requirement is to be able to click a single bar in a OWC chart and then treat the information about this event in code. My simple example changes the color of the bar that is clicked; but this can easily be extended to more complex computation like e.g. database queries upon user selection, or editing etc. and serve for real user interactivity.
Do this:
Create a new project with a user form. Add the OWC11 charts to you toolbox and drag a chart onto the form. Open the code for the form.
Imports OWC11 = Microsoft.Office.Interop.Owc11
Create a local variable for the chart and add the form loader.
Public Class Form1
Private m_Chart As OWC11.ChChart
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
m_Chart = AxChartSpace1.Charts.Add
Dim oSer As OWC11.ChSeries = m_Chart.SeriesCollection.Add
Dim aCats As Object() = New Object() {"A", "B", "C"}
Dim aVals As Object() = New Object() {100, 120, 128}
oSer.SetData(OWC11.ChartDimensionsEnum.chDimSeriesNames, -1, "MySeries")
oSer.SetData(OWC11.ChartDimensionsEnum.chDimCategories, -1, aCats)
oSer.SetData(OWC11.ChartDimensionsEnum.chDimValues, -1, aVals)
End Sub
The next is the action upon a mouse click on the chart.
Private Sub AxChartSpace1_ClickEvent(ByVal sender As Object, ByVal _
e As System.EventArgs) _
Handles AxChartSpace1.ClickEvent
Debug.WriteLine(Now & " click")
Dim mousePoint As Point = AxChartSpace1.PointToClient(MousePosition)
Dim oSer As OWC11.ChSeries = m_Chart.SeriesCollection(0)
Dim i As Integer
For i = 0 To oSer.Points.Count - 1
Dim le = oSer.Points(i).Left
Dim ri = oSer.Points(i).Right
Dim hi = oSer.Points(i).Top
Dim lo = oSer.Points(i).Bottom
If mousePoint.X > le And mousePoint.X < ri Then
m_Chart.SeriesCollection(0).Points(i).Interior.Color = RGB(100, 100, 100)
Else
m_Chart.SeriesCollection(0).Points(i).Interior.Color = RGB(0, 0, 200)
End If
Next
End Sub
Once we know which column is selected we can do more (not shown here).
Be aware that there is a MS license agreement for treating events in OWC, which might be applicable here.
Hope this helps somebody.
R. CodeHamster
|
|
|
|
|
hi
any body can help me .
I want to make a small programme in vb.net
if i will insert an ip address of any computer of
that network then that application will tell me its
network lan card status.its enable or disable.for example
following code shows that particular pc network lan card status but
i want to any computer of network.
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
If My.Computer.Network.IsAvailable = True Then
MsgBox("Connection status Connected.")
Else
MsgBox("Connection status OK not connected.")
End If
End Sub
thxxxx
thxxx
|
|
|
|
|
look for Microsoft.VisualBasic.Devices.Network.Ping()
Luc Pattyn
Have a look at my entry for the lean-and-mean competition; please provide comments, feedback, discussion, and don’t forget to vote for it! Thank you.
Local announcement (Antwerp region): Lange Wapper? Neen!
|
|
|
|
|
Only way is to ping that computer, if it return 'time out' then youll know its disabled.
|
|
|
|
|
... or off-line or powered down or ...
Luc Pattyn
Local announcement (Antwerp region): Lange Wapper? Neen!
|
|
|
|
|
I am using an unbound DataGridView for some numerical data. I want to allow row selection for deletion as well as column selection for deletion. However, the relevant SelectionMode settings do not allow this, nor do they accept ANDing of the enumerated values. Has anyone addressed this situation?
Enumerated values of the SelectionMode
CellSelect One or more individual cells can be selected.
ColumnHeaderSelect The column will be selected by clicking in the column's header cell. An individual cell can be selected by clicking that cell.
FullColumnSelect The entire column will be selected by clicking the column's header or a cell contained in that column.
FullRowSelect The entire row will be selected by clicking its row's header or a cell contained in that row.
RowHeaderSelectThe row will be selected by clicking in the row's header cell. An individual cell can be selected by clicking that cell.
|
|
|
|
|
The DGV doesn't support multiple selection like you're describing. I've never seen an application, using the DGV, that does.
If it's unbound and just numeric data, I HAVE seen a library that does Excel emulation, which does support multiple row and column selections. I just can't remember what it's called...
|
|
|
|
|
Thanks. I was afraid of that, but I needed to check. I'll look for the library and make do in the meantime.
|
|
|
|
|
Can you set it to CellSelect and enable MultiSelect and then handle selecting all the cells you want programatically?
|
|
|
|
|
I need to let the user make the choice.
|
|
|
|
|
Hi,
I am using visual studio2005 and .NET framework2.0
when ever I am trying to run my ASP.NET application I'm getting "Unable to find a version of the runtime to run this Application" error message. After clicking OK button of this message , I'm getting another message stating "Unable to connect Visual Studio's Local Host Server".
If I repair / reinstall the VS2005 , the error disappears for sometime , but again it reappears.
Can any one help me out from this.
Thanks,
Amu
|
|
|
|
|
Remove .NET framework2.0 from your Add/Remove programs in control panel and reinstall it.
|
|
|
|