|
hi,
I use VB6 and I want to freeze the rows on FlexGrid control. What could be the coding to achieve this.
|
|
|
|
|
Hi! Guys,
I am working with VB.NET 2002 on Windows XP.
I have a problem while working with parallel port. I have downloaded the dlls needed to communicate with parallel port on Windows XP.
But, the program doesn't seems to be working.
Isn't there any way to communicate with Parallel Port in Visual Studio.NET 2002 itself?
I am really feeling help-less while hardware interfacing comes in my way while working with VS.NET. If you guys know anything please let me know.
I am open for comments and suggestions.
Thanking you,
Ritesh.
|
|
|
|
|
There is nothing native to .NET. This is because all hardware, including the par/ser ports, is abstracted by the operating system and the processor running in protected mode. You absolutely must have those helper .DLL's to give you the ability to control the port directly.
You might want to look at these:
http://www.codeproject.com/csharp/csppleds.asp[^]
http://www.logix4u.net/[^]
RageInTheMachine9532
|
|
|
|
|
u hv the full admin right to ur NT system? if u dont hv the full admin right although u get all the DLL in sys directory, it's still helpless.
u must hv the full admin right to ur NT system, otherwise u need to find a crack program to crack it. But it's quite hard to find such one
|
|
|
|
|
Actually, the User's rights have nothing to do with the problem. You can be a normal (member of) User and have no issues with it at all.
The problem is the the INP and OUT instructions can only run in processor Ring0 (Kernel mode). Users programs are restricted to running in Ring3 (User mode). This means that if you try and execute and INP or OUT I/O port instruction, you'll get the infamous Application Exception Error saying something about executing a Priviledged Instruction. The user's rights to the system have nothing to do with this.
To get around the problem, you need a kernel mode (Ring0) device driver that can talk to the parallel port, and read and write data to it, and exposes some form of API that a user mode (Ring3) application can talk to. The kernel mode driver contains the INP and OUT instructions that are allowed to run in Ring0, but not Ring3.
Now, for a good example of how this is accomplished, see this site: http://www.logix4u.net/[^]
RageInTheMachine9532
|
|
|
|
|
Hi! Folks,
Below are the few queries that have arised in my mind after looking at the code in file "inpout32drv.cpp".
These are few of the hardcoded paths, that I have found,
1. C:\kernel_mode_driver_source\i386\hwinterface.pdb
2. nsf.\i386\hwinterface.sys
3. In CreateService function call you are using the hardcoded path "System32\\Drivers\\hwinterface.sys", but I have the "hwinterface.sys" file in the application directory only. Also, I have no such file in my "system32\drivers" directory.
First of all I don't know these paths stands for what?
Second thing is, Any of the above specified paths are not valid on my system.
Can these be a reason, that program is not working on my system?
I am sending the same at your e-mail box.
Thanking You,
Regards,
Ritesh.
|
|
|
|
|
Is it possible to have Scrollable tab. This property is not available in tab control, but is it any additional codding needs to be done.
Thanks
|
|
|
|
|
Yes, additional coding is required, and a lot of it.
|
|
|
|
|
In fact, it might be easier to use a custom ActiveX control.
Steve S
|
|
|
|
|
Is it somewhere (sites) I can take a look and see where should I start in order to accomplish my task. Or maybe some examples are exists?
Thanks
|
|
|
|
|
Hi,
I want to automate the internet explorer, but not like the example in the Visual Basic Resource Kit. I want to get the URL that the user typed in the address bar. I tryed using mshtml and ShDocVw but it does not work, maybe I am using the wrong class.
If someone knows how to interact with the Internet Explorer, please anwser me back, it should be very helpfull...
Thanks in advance
|
|
|
|
|
Hi everyone
I have followed Scotts Bonds instructions on how to embedd an icon into the exe or DLL but always get the same exception the instruction are:
To embed your icons in your application, drag them into your .NET project. Edit the properties for each one. See the "Build Action" property that's set to "Content"? Change it to "Embedded Resource." That will make it compile into your exe or DLL. That's it! You've just embedded an icon or two into your application. So...how do you get it back out?
Function GetEmbeddedIcon(ByVal strName As String) As Icon
Return New _Icon(System.Reflection.Assembly.GetExecutingAssembly.GetManifestResourceStream(_ strName))
End Function
The strName parameter is of the format <appnamespace>.<filenamewithoutextension>.<filenameextension> so, something like MyApplication.MyLogo.ico.
I have chnaged the icons to be embedd resources when built but get the error message that MyLogo is not a memebr of MyApplication. Does anybody know what I am doing wrong and a solution to solve this.
Thanks
Vu
|
|
|
|
|
Hi .Net'ers,
I have a datagrid with two columns being represented as comboboxes. The problem is that the list of valid values in the second combobox depends on what value is selected in the first combobox. Ex:
LEt us assume there is a datagrid with two columns - Animal and Property
Animal contains the following values: CAT, DOG. Property contains: meows, barks, fur, nofur, indoor, outdoor
When I load the datagrid the Animal and property columns are appropriately filled with above. Now if the user selects 'CAT', the second combobox in the grid should only display {meows, fur, indoor} and for DOG it should only display {barks, nofur, outdoor}. How can I acocmplish this?
Thanks in advance for your help!
|
|
|
|
|
Simple. The second combobox has to be filled with the appropriate data when the first combobox selection is made, not before hand.
RageInTheMachine9532
|
|
|
|
|
Sorry! that may not be possible, because ther are already rows that have been populated. Let me take the actual example:-
Wear your manufacturing hat..
The columns in the datagrid are WOrkorder, Itemtobemade (COmbobox), qty, Operation (COmbobox), startdate
On Form_Load all the currently scheduled workorders are displayed. So I bind the "Select" statement to the dataset and then to the datagrid. My issue is that based on the item selected only the allowed operations to make that item must be allowed. So when the user adds a new workorder and selects an item, the appropriate operations alone must be shown in the operations combobox.
Can somebody suggest the code to control the combobox values at a cell level?
TIA,
|
|
|
|
|
Well, you'r going to have to make it work that way because you can't tell a combobox which items in its list to display and which to not display. It's all or nothing...
RageInTheMachine9532
|
|
|
|
|
Can anyone tell me if there is a control available to edit VB.NET source code? I would like to use a control like the one found in VS.NET to allow a user to type in their own source code in my application without having VS.NET. Intellisense and help bubbles of parameters would be great!
Thanks for the help!
|
|
|
|
|
|
Hi,
Does anyone know how I could change the size description of a file without affecting the physical size. For example we could change a file's access date/time with "File.SetLastAccessTime(Path, AccessedDateTime)".
I tried the following but it used/reserved the disk space I specified with sizeInBytes.
fs = New System.IO.FileStream(Path, IO.FileMode.Open)
fs.SetLength(sizeInBytes)
Really i would like to make a 0 byte file look like 10mb for example.
Thanks
Wes...
|
|
|
|
|
Then your going to have to fill it or reserve the 10MB worth of nothing and yes, it will actually take up the disk space. The size is not a kind of description attribute of the file, but rather the actual size of the file returned by the file system.
RageInTheMachine9532
|
|
|
|
|
That's too bad. However, I have seen this done before. The software that does it is DiskXtender by EMC/Legato. They are able to display a fake value in the size field. DiskXtender is a HSM product that basically migrates the original file's data to tape storage and leaves a stub file behind that looks identical to the original except for the actual size.
Thanks,
Wes...
|
|
|
|
|
This is possible because DiskXtender installs an extension to the file system called a a file system filter and uses blocks of data call Reparse Points.
The reparse point is essentially a block of data attached to a file that describes additional attributes, or whatever else you want. When the file is opened or you get properties on it, the attached reparse point data is sent to the file system filter that understands it, then the filter gets to do whatever it needs to, like get the actual file from an offline storage device. Look here[^] for more information on Reparse Points.
For more information on Installable File Systems, the documentation and SDKs are here[^].
RageInTheMachine9532
|
|
|
|
|
Thank Rage...This is exatly what I am looking for.
One other question:
Do you know how to access the DeviceIOControl in VB? All the examples I've seen so far are in C++.
Thanks,
Wes...
|
|
|
|
|
Hi,
I gave the following a try but got nowhere. Could someone assist pls.
==================================================================
Imports System.Runtime.InteropServices
Private Declare Auto Function CreateFile Lib "kernel32" _
Alias "CreateFileA" ( _
ByVal lpFileName As FileInfo, _
ByVal hTemplate As Long, _
ByVal dwDesiredAccess As Long, _
ByVal dwShareMode As Long, _
ByVal lpSecurityAttributes As Long, _
ByVal dwCreationDisposition As Long _
) As Long
Public Declare Ansi Function DeviceIoControl Lib "kernel32" ( _
ByVal hFile As String, _
ByVal dwIoControlCode As Integer, _
ByVal lpInBuffer As Integer, _
ByVal nInBufferSize As Integer, _
ByVal lpOutBuffer As Integer, _
ByVal nOutBufferSize As Integer, _
ByRef lpBytesReturned As Integer, _
ByVal lpOverlapped As Integer) As Boolean
Const CREATE_ALWAYS = 2
Const GENERIC_READ = &H80000000
Const GENERIC_WRITE = &H40000000
Sub command1_Click()
dim h
h = File.Open("d:\test.txt", FileMode.Create)
DeviceIoControl(wes, FSCTL_SET_SPARSE, NULL, 0, NULL, 0, 84, 0)
end sub
==================================================================
Thanks...
|
|
|
|
|
i want to get the file description like the one we have in the file Types section of folder options. now can i get this ?
i want to get it while a file is selected for upload and then want to display it when uploaded successfully.
Looking for Help
Regards,
Asim
|
|
|
|