|
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.
|
|
|
|
|
Hi Ravi,
Thanks for reply , but from last 4 days I am uninstalling and installing my .NET frame work this error is appearing after some time, I am really frustrated coz of this , any other suggestion ,
Thanks,
Amu OMG
|
|
|
|
|
Hi,
I have a few questions about caching and how to immediately reflect database changes in the asp.menu control. Currently I'm using a custom sitemapprovider and binding my menu to the sitemapdatasource. When I make a change to one of the menu items whether it be to the menu items title or sortorder it doesn't get reflected in the menu control immediately. Moreover, I have no idea when it will be reflected as I have lost patience in waiting!
So my questions are:
1) How long does it take to get reflected in the menu control?
2) How do I make the menu control refresh immediately?
thanks,
Tim
|
|
|
|
|
You can use update panel from ajax control toolkit and poot your menu in that update panel and set refresh time whatever you want........
thanks
|
|
|
|
|
Hi All,
I want to copy attachments from outlook 2007 to a list view in VB.net 2.0
I want to right click on the File In outlook and choose Copy or Cut and then paste the selected file or Files into a vb.net List view.
Can anyone provide me some help please.
Best Regards
Tom
|
|
|
|
|
|
Thanks but I need a fast solution if possible, it will take some time to investigate everything on the mentioned website.
Regards
|
|
|
|
|
Life is hard
|
|
|
|
|
Sadly but true , I'm started with learning
|
|
|
|
|
Sorry I didn't realize it was urgent. In that case go here[^]
Otherwise, suck it up and realize nothing in life comes without effort.
only two letters away from being an asset
|
|
|
|
|
Thanks but I'd rather learn something then and do my own coding even when urgent.
|
|
|
|