Module Doesn't Work On Windows 7 X64 Change?
Jul 29, 2010
This Module doesn't work on Windows 7 x64.What I should change?The module is : Runpe.
vb.net
Imports System.Runtime.InteropServices
Imports System.ComponentModel
Public Class rp
[Code]...
View 11 Replies
ADVERTISEMENT
Jun 12, 2011
I am trying to change the background color of a tooltip
I am using tooltip.backgroundcolor = color.colr
No errors but thecolor doesn't change
View 5 Replies
Mar 12, 2012
I'm having trouble getting this sub to work on Windows 2003. It works on Windows XP and Windows 7. Windows 2003 has "wininet.dll".
change_proxy("123.115.112.222:3128")
*********************************
Public Sub change_proxy(ByRef proxy_port As String)
[Code].....
View 4 Replies
Jan 26, 2009
I've developed a small windows form application in Visual Studio 2005. I have tested the application on a completely fresh install of Vista 32-bit as well as Vista 64-bit and it works fine... But when I copy the application onto an XP machine the following problems occur:The application no longer has its icon, just the default .exe console box icon
Whenever I try to open the application, absolutely nothing happens
View 11 Replies
Mar 9, 2010
I have a listviewsorter that does work on Windows 2000, Windows Vista and Windows 7 (and maybe others), but it doesn't on Windows XP.
View 5 Replies
Feb 28, 2011
I've created a windows service which must produce a beep every 0.5 seconds.
I've installed and started that. but nothing happends.
what should I do?this is my service:[URL]...
View 1 Replies
May 14, 2010
I'm writing a Windows Service:
Code:
Public Class Service1
Protected Overrides Sub OnStart(ByVal args() As String)
System.Diagnostics.Debugger.Break()
[Code].....
I've installed the service, I can run it with no errors but... I can't debug!
I thought that with the line System.Diagnostics.Debugger.Break()
the service should stop and wait for my input. But NO!
I also tried to click on Tools > Attach process to debug but I can't see anything, just a gray background!
In the registry event it's written that the process started successfully, but the process doesn't show me the message box "Up and running"
View 3 Replies
Aug 18, 2010
I have a VS2005 utility that I'm working on that has an Access 2003 backend. A couple of days ago, my boss asked that I change one field in two tables from TEXT to MEMO, to allow more information to be put in. In doing some final pre-deployment testing, I find when I hit my button to pull up the list of tickets, I get the error
"System.Data.ConstraintException was unhandled
Message="Failed to enable constraints. One or more rows contain values violating non-null, unique, or foreign-key constraints.""
The datagrid is based on a query I have in the database. The query runs fine, and when I go through the XSD and go into Query Builder, the QB is also returning data. I have made the various changes to the utlity as suggested by Microsoft, but no luck. When I put the two columns back to TEXT, the Grid works fine.
How the heck do I set it up so that the grid will recognise the new data format? The number of characters for the individual columns is set to 37,627 (I believe, it's whatever the default is). I only have 200 characters in my test data. I need to rebuild the whole dataset - this deployment has to be done by the end of the day tomorrow and I have a whole pile of other stuff left to do.
View 4 Replies
Nov 5, 2009
Visual Studio 2005 SP1cr10 developer also installedOn XP machine, works fine. Got a Windows 7 machine(64bit and all) and copy over the project, run it and can't, I get an error in each crystal report gets an error [code]I take these lines out, and no more error for the report. Since there are like 40 reports in a project and there's 5 different projects that would have to be altered, this will be a pain. And I'm not the only developer. Another developer, on Vista and another will be coming in on XP, don't have this issue. I've tried uninstalling everything Cr and visual studio, then reinstalled visual studio and ran it, same thing, then installed SP1, same thing, then updated security fixes, same thing. CR10 isn't installed. I've removed and added the references back ,they seem to be the exact same versions.
View 3 Replies
Sep 8, 2010
I have a test app driven by bluetooth serial events In my form load code I hide the cursor so it doesn't get in the way of pictures (fullscreen) When one event is called by bluetooth, it brings up a msgbox and the user has to click OK. I tried Windows.Forms.Cursor.Show() but it doesn't work.
I'm guessing it's something to do with delegates and events and the form, but the debugger doesn't complain at any point. It just refuses to show the cursor. How can I get my serialport event to show the cursor? And then hide it after?
View 6 Replies
Apr 20, 2010
I have the following code and I can't get the lost focus to work.
Private Sub txtSpeed_KeyDown(ByVal eventSender As System.Object, ByVal eventArgs As System.Windows.Forms.KeyEventArgs) Handles txtSpeed.KeyDown, txtSpeed.LostFocus
[code]......
View 2 Replies
Oct 14, 2011
I am trying to SendMessage to an app called 'Signal threads' - a test app which sends out a message called TV1_Threads, and listens for a reply. I have shown the values of each variable in the commented areas.
[Code]...
View 3 Replies
Nov 30, 2007
I have a MDI form that has a child form that is opened by default when the application loads. I also automatically maximize the child form. Even though I have set ShowIcon to false, the little blank image that indicates that there is no icon appears in the upper left hand corner of the form. Is there a way to get rid of this?
Private WithEvents m_frmLineItems As frmLineItems
m_frmLineItems = New frmLineItems(Me)
mfrmLineItems.WindowState = FormWindowState.Maximized
[code].....
View 3 Replies
May 15, 2012
I have one tool which we developed on visual studio 2010. there are basically two parts of my project, one is UI part which i wrote in VB and algorithm part which is in C++ on back end. When we compile C++ part it creates a .dll which is used by my front end VB program.
Now my problem is little weird since i am compiling and deploying this tool on windows xp machine but some of the users are using windows 7 64 bit machines and after running the program for about 5-10 minutes, it crashes on windows 7 with following error
Not enough storage is available to process this command and when i view details of that error, i get the following description.
See the end of this message for details on invoking just-in-time (JIT) debugging instead of this dialog box.
************** Exception Text **************
System.ComponentModel.
************** Loaded Assemblies **************
mscorlib
[Code].....
i am completely clue less for this error since this program works fine on xp but doesn't work on windows 7.
View 12 Replies
Feb 2, 2011
I have an application that requires data be entered, and after entering, a button is clicked to process that data. Clicking the button works just as it should--the data is processed properly. In constructing a test module, I provide a set of data values, followed by:
btnWhatever.PerformClick()
Nothing happens. I have used this syntax for years, and it has always worked flawlessly. I have triple checked everything else and isolated the problem to the failure of the PerformClick(). The PerformClick() is in a test subroutine that does nothing but fill textboxes and labels with default data, then calls the PerformClick() on the button to begin processing. Again, the button works fine, the data is entered as it should be, but the PerformClick() does not fire the click event.
View 21 Replies
Dec 15, 2009
I am writing a control application for an inteface card. The complicated work of initialising communication with the card is written and working fine. However, my problem is to update the text in a dialog label on the communication interface form from a module that contains all the coding for accessing the inteface card. From the module, the interface dll returns data that describes some typical connection errors and the module then calls on Public Subs in the form to display error messages; for example:This is the Public Sub in the Module that initiates communication with the interface card:
Public Sub OpenDeviceInterface()
DeviceID = 1 - My.Resources.DeviceID
h = OpenDevice(DeviceID)
Select Case h
Case 0, 1, 2, 3
[code]....
What happens when these Public subs are called from the module is that the MSgBoxes I made to test the routine show up but the label text doesn't appear.I've tried; Refresh, on the label and the form without success...
View 4 Replies
Feb 9, 2011
Ok, so I know I have to change the labeledit to true but that doesn't change the selected node to be able to edit, so how does that work?
Along with renaming I have it set to that a user can add a node. So once the node has ben added how do I let them rename it as it is being added and without being a prompt or inputbox? So lets say I cam clicked on a parent and they click add node, it adds it to parent but I have it so it is default "New" but I want them to edit it as it is added. I think it will be along the same lines as clicking on one and rename but I have to start some place.
View 3 Replies
Jan 13, 2010
I'm working on a simple base form in which all the other forms in the project will inherit. This base form only adds 5 properties (at the moment) dealing with painting a gradient background. The problem I'm facing right now is when I change a property on Form1 (the test form) and click run it doesn't show that change. I also checked the .designer.vb file and when I make a change it's not added to the code behind file, I'm at a loss right now to why.
[Code]...
View 5 Replies
Sep 13, 2010
Possible Duplicate: Datagridview doesnt work! I have written code to show records in a datagridview but it shows nothing. I have tried to debug & when it step into GetData function following codes
Catch ex As Exception
returnData = Nothing
If connection.State = ConnectionState.Open Then
connection.Close()
End If
become gray & it shows error sign. When I take my mouse pointer on it it shows message. It says "Cannot open database SUIMT requested by the login. The login failed. Login failed for user 'MY-PCJames'".
Imports System.Data.SqlClient
Public Class Form34
Private Const ConnectionString As String = "Server=.SQLEXPRESS;" & _
"Database=SUIMT;Trusted_Connection=True"
[code]....
View 2 Replies
Oct 11, 2011
So I have 2 data files, single dimension, that I'm trying to populate two rtb. If I comment one streamreader out the other will print. This also works in the vise versa situation. Does anybody see where I'm going wrong with this? They won't run together.
Dim Alpha As New System.IO.StreamReader("alpha.dat")
Dim Beta As New System.IO.StreamReader("beta.dat")
Dim strLine As String
[code].....
View 1 Replies
Dec 15, 2010
dim str as nullable(of string) is this syntax incorrect?
View 1 Replies
Nov 26, 2010
i'm working on a MDI application and need to view a ".PDF" files in a MDI child form, but when using the AxAcroPDF control it doesent work, note that it works fine when viewing the form separately from the MDI application.
View 14 Replies
Aug 21, 2011
this is my code:
Private Sub BackgroundWorker1_DoWork(ByVal sender As System.Object, ByVal e As System.ComponentModel.DoWorkEventArgs) Handles BackgroundWorker1.DoWork
For i = 0 To 1000
[code]....
View 2 Replies
Mar 15, 2012
Has anyone succeeded in creating a class library solution/project in VB.net VS2010 4.0 Net Framework for COM to run on WindowsXP Excel 2003. I created a dll which changed specific data in an excel worksheet. The dll worked just fine on the development computer but wont work on any other. I downloaded .NET 4 framework onto the target PCs and used RegAsm.exe to register both the .dll and .tlb files in the registry. That worked OK and the dll is visible as a reference in excel and can be ticked. The error message I get is RunTime Error -2147024894(80070002): Automation Error The System cannot find the file specified.
I also tried creating a Setup and Deploy project in the original development solution but this created just a vbproj setup file which the target PC cannot read (no VS installed), I hoped the project would create an EXE file I could use. Does anyone know any links that describe how to do this type of stuff as most links I have tried are either for Windows Forms projects are are way above my knowledge. Maybe someone out there has already succeeded with this sort of activity?
View 1 Replies
May 24, 2012
I have Visual Studio 2010 Express Edition. I'm using it to evaluate functionality before purchasing the real thing, but I'm having trouble. I want to build a DLL that can be used on PCs other than my development PC, that I can call from VBScript.
I follow the hundreds of examples out on the intranet and things still don't work.I have built a simple HelloWorld DLL with a function that returns "Hello World".I've been through all the stuff about making the assembly COM visible, and the threads about Register for COM Interop checkbox missing. One person suggested editing the .vbproj file and adding a tag to turn on Regiser for COM Interop (which was not needed because it was already there).
Anyway, if I build my project and run my VBScript:
Set testdll = CreateObject("HelloWorld.Class1")
wscript.echo testdll.HelloWorld()
Everything works great. But....if I copy the DLL to another PC and register it with RegAsm, the VBScript fails with a "File not found" error on the CreateObject line of the VBScript.
In fact, if I unregister the DLL on my development PC and then register it with RegAsm, the VBScript now fails on my development PC. RegAsm said everything was okay and if I look in the registery using RegEdit, things look good, but it still doesn't work. The only way to get it to work again is to rebuild the DLL (which in turn, registers the DLL).
I'd like to be able to build a DLL which I can be registered and used on other PCs (without requiring those PCs to have Visual Studio 2010 EE and without requiring them to have the source and build the DLL).
View 1 Replies
Oct 13, 2009
Dim
a As Date? = Nothing
Dim b As Date? = If(a Is Nothing, Nothing, GetValue(a))
I thought b would be Nothing, but it is not...is it a bug?
View 4 Replies
Dec 3, 2009
I am getting a datarow from my dataset and some columns can be NULL.So I am trying to check for this using the IsDBNull function, but it just won't work. I have tried almost every possible combination. Can someone please explain to me how to use this properly?ser is a datarow and GUID is a column with data type: unique indentifier (so a Sytem.Guid)
user.GUID.Equals(DBNull.Value) Then .GUID = System.Guid.NewGuid
I tried using above, IsDBNull(GUID), guid = dbnull.value, guid is dbnull.value etc etc I am just getting this error: The specified Cast is not valid.
[code].....
View 5 Replies
May 13, 2009
why this code doesn't work?
[Code]...
View 1 Replies
Sep 25, 2009
i made a picture box and the fowling event when my program runs:
[Code]...
View 7 Replies
Jan 28, 2012
So basically I made this code below to make my application (when the mouse leaves), go smoothly in an 70% opacity, with a fade.
Private Sub Timer3_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer3.Tick
Me.Opacity = Me.Opacity - 0.05
[code].....
View 2 Replies