|
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
|
|
|
|
|
How can I draw shapes like line, rectangle, circle in ASP.NET.
Please Help. Thanks in advance.
|
|
|
|
|
The Namespace System.Drawing isn't support, maybe you must look about SVG or Flash (SWF), the first it's a vector draw implementation that pretends to be standar in vector graphics, it's good.
----
hxxbin
|
|
|
|
|
Can someone please help me
I need to convert Wav files to mp3 and I need to do it in VB.
Is it possible?
Kev
|
|
|
|
|
yes its possible...u'll have to use a thitd party library....i can remember there is an exe named Lame. U can get this from net for free. Also check out some Ogg Dll's
rIsHaBh
|
|
|
|
|
Do any of you gurus know how to determine the Thickness of a Datagrid Row Separator, or more precisely, the amount of space between rows? I have RowDividerStyle set to dgbNoDividers. I need to be able to calculate the middle of a row in the Datagrid so that I can generate a click event on that row (don’t ask why ). I have the code working except for the space between rows.
Thanks in Advance,
nonGuru
|
|
|
|
|
I used 120 Twips or 6 points and that worked, but I don't know if it will remain at 6 points if I change the RowSize or Font Size.
|
|
|
|
|
I was just wandering how to use some custom Menus and or Forms. I was just wandering was were somethings that would allow me to customize. I was also wandering about incorporating flash. How much of a task is this?
|
|
|
|
|
Custom menus or forms, where? As Web Forms or as Windows Forms?
Sorry, I'm not much help with Flash.
|
|
|
|