|
ShayanTanwir wrote: unique as well as original
Surely that is tautology?
Henry Minute
If you open a can of worms, any viable solution *MUST* involve a larger can.
|
|
|
|
|
I was wondering how this is done.
The cursor shows in normal mode. here is the code I used.
video.Owner = pnlVideo
video.ShowCursor
This works fine in normal mode. I can get the context menu to show in Fullscreen and normal modes. The context menu is connected to the pnlVideo panel.
Could this be the problem??? Should I connect the ctx menu to the Form?
Or, if I do connect the ctx menu to the form, will it even show up in fullscreen mode?
THNX in advance for any help in this mental error.
rspercy
1 + 1 = 186,440....Depending on the species.
|
|
|
|
|
I'm suddenly getting this error on all of the machines at one of our sites:
System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
The line of code which causes the exception calls a method from a 3rd party COM dll.
The code worked 100% before, but started giving this error this morning. I've attempted to reproduce the error on several machines here in our office, but here it works without any problems.
I can't seem to find any working solution for this on the net. Does anybody have an idea of what might be causing this?
Thanks in advance!
BTW: We're using VS2008 (Framework 3.5)
|
|
|
|
|
Where there any updates (windows) installed on the computers where you get this error?
Since the error happens on a call to a 3rd party dll you best bed will be to contact them.
|
|
|
|
|
Hello All,
I am going to Print some File from my application. But I am facing some Problems.
some times an error message is comming :
---------------------------
SOTHER~1
---------------------------
Object is not connected to server
---------------------------
OK
---------------------------
but there is no problem in Printing, its working fine, but the message box is coming again when going to print next file.
My Code is below :
----------------------
For i = 0 To files.Count - 1
Try
POSEx = New PosExplorer
PrintFileName = files.Item(i)
fileData = My.Computer.FileSystem.GetFileInfo(PrintFileName)
fileContents = My.Computer.FileSystem.ReadAllText(PrintFileName)
If InStr(fileData.Name, ".") > 0 Then
PrinterName = (fileData.Name).Split(".")(0)
If PrinterName <> DupPrinterName Then
SetDeviceVariable(PrinterName)
End If
DupPrinterName = PrinterName
End If
device = POSEx.GetDevice(DeviceType.PosPrinter, PrinterName)
If Not device Is Nothing Then
Printer = POSEx.CreateInstance(device)
Printer.Open()
Printer.Claim(1000)
Printer.DeviceEnabled = True
Printer.PrintNormal(2, fileContents)
If bCutPaper = True Then
Printer.CutPaper(0)
End If
Printer.DeviceEnabled = False
Printer.Release()
Printer.Close()
System.IO.File.Delete(PrintFileName)
End If
Catch ex As PosControlException
End Try
Next
Note: My Printing Function written in a separate Thread and it always searches is there any files in my application folder or not.
So, How can I fixed this Prolem.
Arindam Banerjee
Sr. Software Developer
Rance Computer Pvt Ltd.
Kolkata (India)
|
|
|
|
|
Which line does the error occur on??
Since you're using a third party library (I've never heard of it), you're best source of information would be the manufacturer of that library.
|
|
|
|
|
Printer.Release()
Printer.Close()
Any of this line I am getting That error.
Arindam Banerjee
Sr. Software Developer
Rance Computer Pvt Ltd.
Kolkata (India)
|
|
|
|
|
Guy, the best source of information you have on this is going to be the people who wrote that printer library you're using. I have no idea what it is, nor how it works, so there's very little I can tell you.
|
|
|
|
|
hi all,
i want to get longitude and latitude of all point from any location like point P1(x1,y1) which is in the range of 1000 yards .
can anyone suggest me that how can i do this in vb.net?
|
|
|
|
|
Rupesh Kumar Swami wrote: i want to get longitude and latitude of all point from any location like point P1(x1,y1) which is in the range of 1000 yards .
can anyone suggest me that how can i do this in vb.net?
That would be an infinite set. Are you sure you have enough memory to hold all that?
Seriously, SQL Server 2008 has some spatial tools and it comes with some redistributable .NET assemblies (which are also downloadable separately from the Microsoft website) which contain methods that you can use to get the information you want.
|
|
|
|
|
sir,
thanks for your quick respose.
first of all, sorry for my incomplete information. I have a table in database(MySQL) which contains the longitude and latitude of different point. so i want to search in database for all point which is within 1000 yard from given location(mean longitude and latitude).
i can not prepare my mind that how can i add value(like 1000 yard) in any point location.
sir, can you suggest me that how can i add some value like 1000 yard in longitude(say -117.02413764) and latitude(33.03579077).
|
|
|
|
|
For the latitude it's simple to convert between degrees and distance. One degree is 110.9 kilometers.
The the longitude the distance or a degree varies with the latitude. You can read about it here: Wikipedia: Expressing latitude and longitude as linear units[^]
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
Colin Angus Mackay wrote: That would be an infinite set
Surely there is a finite number of GPS positions? After all there is a finite amount of surface area on the Earth.
Steve Jowett
-------------------------
Real programmers don't comment their code. If it was hard to write, it should be hard to read.
|
|
|
|
|
Steven J Jowett wrote: there is a finite amount of surface area on the Earth
Which can be continually subdivided in to smaller and smaller parcels.
Steven J Jowett wrote: Surely there is a finite number of GPS positions?
You could create a finite set if you were to place a limit on the precision. For example, if you set the precision to one degree your set would have 64,800 elements. Setting the precision to a tenth of a degree would mean 6,480,000 elements.
|
|
|
|
|
Just when you think you've out-smarted the smug git in the corner, he turns round a kicks you squarely in the balls, just to prove you wrong.
Steve Jowett
-------------------------
Real programmers don't comment their code. If it was hard to write, it should be hard to read.
|
|
|
|
|
Steven J Jowett wrote: kicks you squarely in the balls, just to prove you wrong
Well, if that's what you think there isn't much I can do about it. I was merely correcting a misconception. While the surface of the earth is a finite area, that does not translate into there being a finite number of coordinate positions.
|
|
|
|
|
Hi,
I just wanted to know that can VB.Net make make a 32 bit console-based command line executable for Windows. Thanks in advance.
|
|
|
|
|
arslanjatt wrote: I just wanted to know that can VB.Net make make a 32 bit console-based command line executable for Windows. Thanks in advance
Yes.
|
|
|
|
|
|
No.
I are troll
|
|
|
|
|
Hello Friends,
I have a requirement of my application to know whenever a user select a value on crystal report & getting the selected value from crystal report view to my .net application and using that value set datasource to sub report.
Kindly help me how can I get the selected value from crystal report view to my application.
Thanks in advance
Regards
|
|
|
|
|
Do NOT cross post please.
Doing so will not lead to faster answers or better ones, it will only lead to the people here refusing to answer because of it.
As to your question, I don't think you can get the selected text out of crystal reports.
You might try (don't know how you can do it or if its even possible) to write some code in your report that save's the selected text to a parameter, and then get that parameter out of the report.
|
|
|
|
|
You might be able to invoke a webservice using a Hyperlink in your Crystal report that would pass the appropriate value to the webservice. Sounds a bit complicated, but it might work.
Rather than use your original approach, why does your application need to set the datasource for the sub-report ? I've created Crystal reports that have drill down capabilities where links would initiate a sub-report.
You may want to reconsider how your are proposing to implement your solution; there may be an easier way.
|
|
|
|
|
Hi David,
Thanks for your reply. Your second suggestion sounds better and I worked on it i.e On-demand subreport. The problems which I am facing in using on-demand sub report are following :
1) On which event should I set datasource for on-demands sub report.
2) How can I get the value from main report against which I filter datasource for on-demand subreport.
As you said that you've worked on such report might be you give me a solution for my problems.
Regards
Ali Raza
|
|
|
|
|
My reports were easier to create because I made a direct ODBC connection to the database with Crystal. I'm not sure how you would do it with datasets.
|
|
|
|