VS 2008 SetScrollInfo And GetScrollInfo Not Working On 64bit Os?
Dec 5, 2009
I'm using Windows 7 and I built a small application that just moves the scrollbar of the current active window to some value.The problem is that nothing happens. I tried using GetScrollInfo too but I only got 0 in the nPos parameter.
This is my declartions and constants:
Private Declare Function GetForegroundWindow Lib "user32" Alias "GetForegroundWindow" () As IntPtr
Private Declare Auto Function SetScrollInfo Lib "user32" (ByVal hWnd As IntPtr, ByVal fnBar As ScrollBarDirection, ByRef lpsi As SCROLLINFO, ByVal bRepaint As Boolean) As Integer
[code]....
On the form load I just do a delay of 2000 milliseconds so I could focus on another window, wait and nothing happens.
System.Threading.Thread.Sleep(2000)
My.Application.DoEvents()
ScrollCurrentWindow()
View 5 Replies
ADVERTISEMENT
Jul 17, 2011
I am using SetScrollInfo to set the position of a scroll bar in a text box...
Basically the call is working as it sets the position of the scroll bar... but the text does not scroll and is still at the last position that the scroll bar was in - when clicking on the scroll bar the text scrolls to the correct location
View 2 Replies
Oct 12, 2011
I've downloaded the 64bit debug symbols and told the IDE where they were located. But for some reason, VS won't build a 64bit debug EXE.
This is my first time doing 64bit so I never had to worry about it before. Is there something I need to do in the IDE that I don't know about? I went to Project Properties and set things to 64bit debug. But when I compile the program, it makes a 32bit program.
View 2 Replies
Nov 1, 2011
I have an old 32bit vb type app and we're running it on windows 7 64bit sp1. On one computer it works fine, on another it doesn't work right. Do you know how we could debug this and figure out what's causing it? Could a different CPU or bios/chip set have something to do with it?
This is the thing we're using specifically:[URL]...
View 2 Replies
Sep 10, 2009
I have created a small subroutine that resizes controls which don't have an autosize. The idea is to use the scrollbars to see if the content fits into the control. Whenever I want to autosize the hight of the control I call the getScrollInfo with SIF_POS.
Making the control "higher":
If nPos is then > 0
I add some pixels to the size.heigt of the control until nPos is =0
This is working fine.... One small problem: When I "switch" of the scrollbar for that control after I reached the right size and then switch it on as soon as I get into my routine again... my routine doesn't work anymore. [Code]
View 1 Replies
Feb 27, 2010
I'm working on a new application and I use the SetScrollInfo and GetScrollInfo Api's and I'm having some problems: 1. I'm able to scroll my own textbox control on my form but I can only see the scrollbar being updated and not the text inside the textbox control moving I'm using this
[Code]...
View 1 Replies
Jan 3, 2011
I'm running Win7 64bit, but I want the applications I make in VB .NET (.NET 3.5, 2008) to be 32bit instead of 64bit. Is there any way to achieve this?
View 12 Replies
Aug 20, 2010
I currently have a dll written w/ VB 6. The problem is my office upgraded to 64bit windows XP and the dll won't work. from what I have found it apears I need a 64bit dll.but am having trouble creating one.
View 2 Replies
May 19, 2011
when i run project exe into another computer it gave error as mentioned in above fig
View 1 Replies
Feb 8, 2011
i've finally finished my A2 project by building a program for a real life solution. This program works on the school computers which are 32bit XP but when i try to run it on a Windows 7 64bit system, i can't get it to work after trying various things.
error:The 'Microsoft.Jet.OLEDB.4.0' provider is not registered on the local machine.
View 7 Replies
Jan 25, 2009
Winsock for some reason does not work with Windows Vista 64Bit? Is there another way that is as simple as that? If so what and how?
View 1 Replies
Jun 14, 2010
Basically i want to run a program that is created in vb2008 with its compiler properties set to AnyCPUThe programmer has a 32bit os, so he has not recognized that his referenced assemblies are not compatible with 64bit OS and therefore throw system.badimageformatexception on 64bit OS (such as mine; im running windows 7)
now it is my understanding that all 32bit applications can be run on 64bit windows because the WOW64 emulator can run them (just like programs that get installed in the program files x86 directory)so the problem here is that my OS cant recognize that this program must be run in 32bit since that programmer foolishly set the compile options to anycpu i can not contact the programmer and therefore asking him to recompile is not a possible solution.So, how do i run this program as 32 bit on my 64bit OS? how can i manually set 32-bit compatibility? it is not available in compatibility options.I tried running in compatibility mode for windows xp sp2 i tried putting the software in program files x86 folder.
View 2 Replies
Jan 28, 2010
I have a utility that is a simple exe that is not installed compiled with VS2005 and works well. But when I upgraded to VS2008 the utility can no longer locate files in the active system folder. I have UAC turned off and am logged in as the Administrator and it still can not locate a file that I can see in Windows Explorer. The file I am looking for is PakMgr.exe.
View 1 Replies
Jun 18, 2009
It appears that my favorite thing in the world is tackling projects that are beyond my current knowledge and abilities. I have a little project that I am working on which is a simple image viewer stocked with (upon completion) your standard Load..., Next/Previous, Zoom In/Out, Actual Size, and Full Screen capabilities. However, I am running into a few snags:
(1) I've been able to get my "Load..." button to display a file dialog box, but I cannot seem to get a working filter (with which only image file types are allowed to be selected) in working order.
(2) I have a PictureBox object (entitled PictureBox1) that displays the image selected via the file dialog box, but it loads images in their full size (1:1/100% zoomed) state without scrollbars, etc. to allow me to navigate the loaded image. I would like to have it load the image, initially, to fit within the dimensions of PictureBox1 and from there be able to zoom in/out via my "Zoom In/Out" and "Actual Size" buttons and be able to scroll if the zoom level is beyond the dimensions of PictureBox1.
(3) It dawned on me that I haven't the faintest idea how to get my "Next/Previous" buttons to allow the user (me) to navigate, in succession, the images contained in the folder in which the currently loaded image is stored. [code]
If it is deemed that this thread is inappropriately requesting help, I ask that it be locked/deleted quickly as I recognize that this is a large community with many discussions going without need of unwelcome posts.
View 9 Replies
Jan 18, 2010
I'm using the following code to iterate through and find windows containing specific strings in their title bars. I have two projects containing this identical information, yet for some reason - it works when targeted to x64, but FindWindowLike returns 0 always on x86. I need this to run in x86.I am developing this on Windows 7 x64, but it needs to run on my machine as well as XPx32. What I can't fathom is why it compiles/runs on x64 but not x32 (considering I'm targetting user*32*.dll)
View 2 Replies
Sep 20, 2009
i wrote a programm that reads the memory of a program.it worked at xp and vista but not at windows 7 i builded it with microsoft visual basic 2008 express edition.the code looks like this:
Public Declare Function GetWindowThreadProcessId Lib "User32" (ByVal hwnd As Integer, ByRef lpdwProcessId As Integer) As Integer Public Declare Function OpenProcess Lib "kernel32" (ByVal dwDesiredAccess As Integer, ByVal bInheritHandle As Integer, ByVal dwProcessId As Integer) As Integer Public Declare Function ReadProcessMemory Lib "kernel32" Alias "ReadProcessMemory" (ByVal hProcess As Integer, ByVal lpBaseAddress As Integer, ByRef lpBuffer As Integer, ByVal nSize As Integer, ByRef lpNumberOfBytesWritten As Integer) As Integer
[Code]...
View 4 Replies
May 18, 2010
Can I use Long for array indexing? If no what could be done to manipulate large byte arrays (>32bit)?
View 5 Replies
Nov 7, 2010
coming from VB6 I've been using the windows API for many years. Now I'd lke to do the same on .NetMy question is, what would happen if I build for 'AnyCPU' and the application calls Kernel32 while running on a 64bit machine ?
View 1 Replies
Jan 7, 2011
I have an application that I built in VB.Net 2008 on Windows XP for Any CPU that I would like to run on Windows 7 64bit. Is this possible from Windows XP or do I need to compile and develope on Windows 7 64bit for it to work?
View 10 Replies
Jan 23, 2010
VB.NET 2008 can make 64bit applications?
View 5 Replies
Feb 6, 2010
There are a few threads on these forums about this question, but I need a definite answer.
View 10 Replies
Aug 20, 2009
I am using Visual Basic 2008 Express Edition and I want to create a 64bit application, but don't know how.
View 9 Replies
Oct 14, 2010
Depending on what component is handling the print for you, some of them are not 64 bit ready (i.e. 32 bit only). To use them you must compile your application as 32 bit only. It will then run on the WOW platform that Win7 supplies.
You change this option on the PropertiesCompile screen. Press Advanced Compile Options and review Target CPU:
View 1 Replies
Nov 2, 2010
will .net framework3.0 application run on 64 bit operating system
View 5 Replies
Dec 9, 2010
I'm getting a new laptop with pretty free hands as to what to get.Most I like come with Windows 7 64bit and I'm a bit cautious about that as I have Vista 64bit on a stationary at home. Not completely happy with that.
I have learned that the Jet database - that I use a lot - does not run on Vista 64bit, but how's the story with Windows 7 64bit. As I will be doing a lot of programming on the new laptop (and I need to get moving again soon - busy!!) I would like to know of potential problems up front.
I'm using Visual Studio 2008 programming VB.Net
View 3 Replies
Mar 15, 2011
How to read from a DBF file on a 64bit OS using VB.Net?
View 3 Replies
May 24, 2011
When I'm trying to register this it gives an error.
View 4 Replies
May 22, 2009
I had a vb6 applications which using following dll files 1. shell32.dll 2. user32.dll 3. comdlg32.dll 4. apigid32.dll. It is working fine on vista 32bit OS . Now i am trying to run my application on Vista 64bit OS.
Is it working fine on vista 64bit OS with out any changing in vb6 code?Is there any problem with this above mentioned dlls on Vista 64bit OS?
View 3 Replies
Jul 29, 2010
Well how can I do this? So my app is faster?
View 5 Replies
Apr 27, 2010
Does the NDde class work on 64 bit platforms?
I have used it successfully on 32 bit Win XP VB2008 Express application, but I am having trouble in 64bit Win7 environment.
Specifically the .Connect method is throwing an exception {"The client failed to connect. Make sure the server application is running and that it supports the specified service name and topic name pair."} NDde.DdeException
View 3 Replies