|
You cannot enumerate windows on a client machine from a web server.
|
|
|
|
|
I did note he was saying it was on an intranet, that's why I assumed he may not be totally insane. But, even then, I'm pretty sure he can't do it.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
We just installed the Cisco Unified communications system and we can have a web display that shows customer info based on thier phone number. I'd like the end user to have a dual monitor setup so that the customer info shows up on one screen (web display) and on the other would be a windows program for entering info about the customer. So it sounds like I'd have to have my program resident on the users computer, pass the program the customer info then populate the web display from the program while it also enumerates the correct program. Does that sound possible?
Thanks for all the help
NewbieDave
|
|
|
|
|
It sounds like you want to not use the web at all, and just write a program that runs over the internet.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
Hi all,
I have a datagridview on a form. I have a subroutine called LoadReloadProcs that has this line in it
Me.dgvProcs.Columns(0).Width = Me.dgvProcs.Width * 0.75
This is the line where the error's happening. I'm getting an objectdisposed error.
Funny thing is, it'll run through this routine twice without reporting an error. It only reports the error when I come back from running a report. Also, if I put a breakpoint right there and use the immediate window to check the value of the width (i.e., ? dgvProcs.Columns(0).Width) the system tells me that it is 100. But if I try to assign a value to the width (i.e., in the immediate window dgvProcs.Columns(0).Width = 435) the system throws the object disposed error.
Why would I be able to request information of an object that is disposed? I shouldn't be able to, right? Or if it is not disposed, which being able to query the value of something suggests, why can't I assign a value to that property?
This has me really confused.
I've put the code for the procedure below... I don't see anything in there that helps me understand, but I figured one of y'all might. Also, I've searched for "dgvProcs.dispose" and just for ".dispose" and didn't find any relevant to dgvProcs.
Private Sub LoadReloadProcList(ByVal strsql As String)
Try
'Me.Controls.Remove(dgvProcs)
Dim daMyList = New SqlCeDataAdapter(strsql, myDB.cn)
Dim dsMyList = New DataSet
daMyList.Fill(dsMyList)
Dim myBinding As New BindingSource
myBinding.DataSource = dsMyList
Me.dgvProcs.DataSource = myBinding
Me.dgvProcs.DataMember = "Table"
Me.dgvProcs.Columns(0).HeaderText = "Name"
Me.dgvProcs.Columns(0).Width = Me.dgvProcs.Width * 0.75
Me.dgvProcs.Columns(1).HeaderText = "Barcode"
Me.dgvProcs.Columns(1).Width = Me.dgvProcs.Width * 0.15
Me.Controls.Add(dgvProcs)
Catch ex As Exception
#If DEBUG Then
MsgBox(ex.Message)
#Else
MsgBox("There was a problem gathering information on your previous procedures. If this problem persists please contact your distributor.")
#End If
End Try
End Sub
Thanks in advance for any help you can give.
Denise "Hypermommy" Duggan
|
|
|
|
|
You have a DataGridView on your form that YOU called dgvProcs . So, obviously searching the Internet for a name that you made up is going to be pointless.
The error message says that you destroyed the dgvProcs object and now you're trying to use it. The line that you commented out in your code snippet would do that if it wasn't commented out before. Me.Controls.Remove(dgvProcs) would detroy the dgvProcs object.
|
|
|
|
|
I'm not so confused that I searched the internet for dgvProcs. I searched the code. Sorry I didn't make that clearer... I guess I just figured it was obvious.
And yes, if that line weren't commented out I can see that it would do it. But that line's been commented out the whole time and I'm still getting the error. It's really wierd.
Denise "Hypermommy" Duggan
|
|
|
|
|
No, there could be no more references holding on to it.
The other thing, that i didn't see earlier, is possibly the columns being wiped out and rebuilt after the data bind.
And, of course, the possibility of having to Clean the project, then rebuild.
|
|
|
|
|
Clean the project and rebuild? I'm afraid I don't understand. There's still a lot of tools in Visual Studio that I'm learning... is "clean" one of them?
I do appreciate the assistance, believe me!
I ended up finding a workaround... I noticed that if I clicked OK on the messagebox that informed me of the error, the system went on ahead and built everything and all looked and acted okay. So what I did was just put a separate catch block in there to catch just the object disposed exception and swallow it up and ignore it. That done, everything appears to work fine. Of course, the "solution" makes me a bit nervous as ignoring exceptions is probably not the safest thing to do.....
But maybe it gives a clue to one of you gurus that says what's going on... 'cause this is still too weird to me.
Denise "Hypermommy" Duggan
|
|
|
|
|
Hi Dave,
Dave Kreskowiak wrote: Me.Controls.Remove(dgvProcs) would detroy the dgvProcs object
I'm not with you here. Who would be doing the Dispose?
Are you saying ControlCollection.Remove(x) actively calls x.Dispose()?
(I can't see that in the doc)
or x being removed becomes collectible? from the code dgvProcs is a class member, so this reference is still alive.
Couldn't the problem be that by setting a new DataSource the Columns[] collection got lost?
Luc Pattyn [Forum Guidelines] [My Articles]
The quality and detail of your question reflects on the effectiveness of the help you are likely to get.
Show formatted code inside PRE tags, and give clear symptoms when describing a problem.
|
|
|
|
|
Hello everyone,
I have a UserControl, I inserted inside a MenuStrip and a Panel.
This UserControl must be a Panel, when do I upload controls, inserted controls, must be entered panel I inserted in the usercontrol.
Sorry for my poor English, I hope my problem is clear.
Thank you
|
|
|
|
|
eusta wrote: I hope my problem is clear.
Not in the slightest. I have no idea what you're trying to say.
|
|
|
|
|
|
No, it's not... I still have no idea what your on about.
|
|
|
|
|
Hi,
I am new to VB.Net and i am working on School Management project in VB.Net windows application. In that i need to insert the Images of the Students. So i am trying using BLOB Datatype in MySQL, but i am unable to store the image and also the saved image should be retrieved.
So, Please if any one knows the solution of my problem help me and do me the favour.
Thanks in advance,
Victoria
VB.Net
|
|
|
|
|
|
An alternative solution (one that we use in our internet store for product images) would be to save the images, with the student's ID as the name, to the (web?)server.
In your code you can then simply retrieve the necessary image based on the ID.
That way the database size doesn't become an issue, and no need for interpreting, converting or whatever.
Our experience is that searching the file is on average faster than searching from the database.
My advice is free, and you may get what you paid for.
|
|
|
|
|
Hi Johan,
Thanks for your Reply,
I am working on a Desktop application that means windows application, but you are telling in Web application it seems.
I am sorry if i was wrong with your answer because i am new to .Net, So i am in the beginning stage only.
If you dont mind, can u give me the detailed solution for this.
Thanks in advance,
Victoria
VB.Net
|
|
|
|
|
I thought you were working with a web application because of the MySQL database (which is usually used for web sites).
For the solution I suggested it doesn't matter though, the principle is pretty much the same.
I assume that you want the show the students' pictures when browsing through the student list.
So basically you follow these steps:
1. Each student has a unique ID: save each student's picture as [StudentID].jpg, in a folder that your application can access (for example a shared folder on the same server the database is on.)
2. On the form that shows the student's information, I assume you have a picture box, that should show the student's picture. Use Imports System.Drawing.Imaging and PictureBox1.Image = New Bitmap(Image.FromFile("ThePathToTheSharedFolderHere" & StudentID & ".jpg")) (or something similar, you may have to play around with it a little).
My advice is free, and you may get what you paid for.
|
|
|
|
|
I have Datecs electronic cash register model MP-55B who is connect to PC from COM port but I have not driver for this device, can You help me to write driver for this device
|
|
|
|
|
Hi,
I doubt you need drivers to interact with a simple peripheral such as this one, having a standard interface.
There are several things you should try:
1. find a users/programmers manual (google, contact vendor, ...)
2. hook up to PC, use terminal emulator (HyperTerminal), try some baud rates (start at 9600), watch if you receive anything, if so, is it intelligible text? If it is, either you need a lot of small experiments, or some documentation. Then use the SerialPort class and go ahead.
Luc Pattyn [Forum Guidelines] [My Articles]
The quality and detail of your question reflects on the effectiveness of the help you are likely to get.
Show formatted code inside PRE tags, and give clear symptoms when describing a problem.
|
|
|
|
|
for Datecs electronic cash register you need a driver deliver by manufacter.
The driver is cashfile.exe (old version) or Fprintwin
1. Your printer must be conected to a PC using a serial cable
2. You must run driver executable with command line parametrs:
ex. cashfile.exe 4800 COM1 cashfile.inp
cashfile.exe = driver
4800 = bits per second (COM)
Com1 = COM where cash register is connected
cashfile.inp = name of file contain item to list ( it is a sample txt contain item and parametrs)
ex. S,1,______,_,__;TestSell;0.05;1.000;1;1;2;0;0;
P,1,______,_,__;FiscalText;;;;;
T,1,______,_,__;
information for that you can find in manual (www.datecs.bg)
CLiv
|
|
|
|
|
Hi there
I almost have no hair left after tearing it all out to try get composite or s-video input playing on a VB6 form, using the MSVidCtl.dll. I am using the msvidctl quite happily with digital television, and am able to get a fine picture. However, it seems that composite or s-video should be even easier to play, but it is simply not working for me. I have scoured the web to try find out how to do it properly but can't get it to work.
I am starting with a simple VB6 application (has to stay in VB6 for compatibility reasons, preferably using the msvidctl.dll as it is already in use elsewhere in my program). Program also uses Quicktime and Windows Media Player activex controls, but neither of these 2 can play composite or s-video input.
You will require a TV tuner card with a composite or s-video input. You may not actually need the tuner part, so even just a USB capture device should work. I plug an external DVD player into this USB capture device, and I can view DVDs from either composite or s-video inputs using TV Tuner software (Blaze TV), so I know the connection is working.
Anyways, do this:
1. Ensure at least DirectX 9 is installed (run dxdiag from Run and check DirectX version).
2. Create a new VB6 application.
3. Add a Reference to MS Video Control 1.0 Type Library
4. Add MS Video Control 1.0 Type Library as a Component. You will see the blue TV screen with a red circle in the in components window.
5. Add a MSVidCtl object to your form, name it VidControl.
6. Add this code to the Form_Load event:
Dim objTSContainer
Dim objTuningSpace
Dim objTuneRequest
Set objTSContainer = CreateObject("BDATuner.SystemTuningSpaces")
Set objTuningSpace = objTSContainer("AuxIn1")
objTuningSpace.CountryCode = 61 'australia - not really required but may determine PAL/NTSC etc.
Set objTuneRequest = objTuningSpace.CreateTuneRequest
objTuneRequest.Channel = 0 ' 0 = s-video (4-pin connector), 1=composite video (yellow RCA connector)
VidControl.View objTuneRequest
VidControl.Run
7. Run the program.
8. I always get the error "Run time error -1073478249 (c0040597). Method Run of object IMSVidCtl failed" on the VidControl.Run line.
I have tried multiple combinations of tuning spaces like AuxInTuningSpace, trying to find different input devices (which shouldn't be necessary to manually select since I have selected "AuxIn1" tuning space.
Any advice or sample code would be welcomed.
Anthony Sacker
Software Developer, with less and less hair.
|
|
|
|
|
ant999888 wrote: has to stay in VB6 for compatibility reasons
Someone must really hate you, sorry not to be of any support in this, I'm just astounded at the amount of current development in VB6.
Compatibility with what, 486 pcs.
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
Hi Mycroft
I am extending the functionality of a large system developed in VB6 years ago. A rewrite in .Net, which I'd love to do, is out of the question because of the cost of the project, so I have to keep the VB6 project going...
|
|
|
|
|