Answer Questions
catweazle GDI+ Questions
I have this beloved old VB6 program that has been converted to a sleek new vb2005 program. It's name is "Color" Color is a utility. It will sample pixels color anywhere on the desktop. It also gives me the x-y coordinates for a given location. It gives me the RGB color value in hex and decimal. I find that I used Color to measure dimensions a lot. and that I'm always having to(x1-x1) and (y1-y2) and awful lot. It's natu ...Show All
Joni vb help..pls
can any one help me plese with vb access interface.. which one is good to interface vb with access is it ADO or ODBC what is the diff bet them... how to create autogen of numbers in a forms text box how to retrieve a data for vb from access pls suggest me any one. bye. Interesting. Why ReneeC wrote: Interesting. Why ADO.NET was built from the ground up to be used in .NET applications, ...Show All
CytoTech searching in datagridview using textbox
I had a datagridview which contains all the last name of a certain database.the data was displaying properly .I want to accomplished two tasks,first I want it that upon loading on the datagrid, data are sorted alphabetically already even without pressing the column header.Second I want to search the datagrid using a text box. I want like an autocomplete manner, if I type a single letter, say "B", the datagridcolumn will automatic ...Show All
Gabriel_XD Login Trigger
I need a way to let my programming (running on a Windows 2003 Server machine) get triggered when a user logs on a computer in the domain controlled by this server. The server is the only DC of the domain. Can you help please you can create a windows service installed on the server that has a remote object published. client can invoke on server service method during login. I am sure there are other ways t ...Show All
CraigSBoyd Problem with CStr in VB .net
Hello! I have a question about using CSTr.Everytime I do it in my decimal number it adds 0 at the decimal part. How can I make it get the true value( no excess zeros) of my number Thanks guys! Hello! Thanks for your code really appreciate it. Thanks for your reply. Sorry for the vague question. For example I have a number num = 12.32 (from Oracle database with Number ...Show All
t-965 Is this possible?
is it possible to control another app Like if i click a button on my app, on the other app the textbox fills up with the text "hello" eh. . . not really. . . the ide generates most of it for you. . . gotta love Visual Studio. . . Its even easier using C#. Thanks very much for the code. It ran perfectly after a little tweaking with references in VB 2005. I was looking for a way to send progress messages from a file-pro ...Show All
KevinRF ShutDown event won't fire
VS2005 Beta2 don't know why what's wrong with my project, shutdown event won't fire. I created a new project, shutdown event fires. This project was in Beta1, it is not totally new beta2 project. What could be wrong I compared every file I can think of, no difference. OK, I just figured it out, I was using END statement to close the application, that is the reason. By END do you mean Environment.Exit NO, literal "END" ...Show All
shanab Automation
Hi, I have a problem when I trying to automate Word. How do I write text to the Word document And how do I set message recipient (To..) See the example. Dim wdApp As Word.Application Dim wdDoc As Word.Document wdApp = CType (CreateObject("Word.Application"), Word.Application) wdDoc = CType (wdApp.Documents.Add, Word.Document) wdDoc.Application.Visible = True wdDoc.SaveAs("C:\t ...Show All
Frans Can't deploy...
Hi, I am getting the following error message when I try to install the application I published. "Application Failed. Unable to continue. The application is improperly formated." This is the second time I'm publishing an application with VB 2005 Beta2. I didn't have any problems at all with the first one. My applications runs smoothly, but I can't install it to the client, or even to my own PC. I publish it to my desktop by choosing "From a cd- ...Show All
JST39 Equivalent for a \n new line character in Visual Basic
Hi, I am kind of new to Visual Basic and I got stuck doing a sample Windows Form program. I was trying to write a String into a text file. But I just couldnt get the command for the new line character whereby each time, the new String is concatenated to the next line instead of the same line. I know that in C the new line character \n is used. But what about in Visual Basic Any help would be appreciated. Regards, Arun. ...Show All
Sashidhar Kokku vb6 activex dll in vb.net 2005
I found out that I can write ActiveX DLL's in VB.NET 2005 by creating a class library, exposing it as COM in compiler options and registering it with regasm.exe. The DLL will function as a plugin for another application. When I create the DLL in vb6 I can call it from the application by refering to <dllname>.<classname> something like mydllname.classname. In VB.NET 2005 should I also use this Name my class library mydllname and cr ...Show All
StevieG Returning reference not in prototype
I've got code similar to the below (simplified of course). The goal of this function is to prevent the use of if/elseif/else all over the code. How can I have the below code return the approprate object by refrence, rather than by value. It seems as is, I get by value. Stacking them all in the prototype isn't really an option since there will be many potential objects. So, given a name of a object, you want to call its Save method, is this ...Show All
wiyosaya How to update ID values in multiple tables
Hi, I am in the process of developing an IT Asset Tracking System in VB.NET. I have come across a small problem though. A user is assigned to a Desktop PC and also assigned to other items such as a Printer, Monitor etc. The workstation details along with the user is stored in one table and other items associated with the user are stored in another table. If I then disassociate the user from the Desktop PC by removing the userID, I also ...Show All
Luka Ivkic SetPrinter
I am trying to use SetPrinter to set a printer offline/pause/resume and its throwing an error 87 from the Marshal.GetLastWin32Error(). I am using the following declaration for SetPrinter <DllImport("WinSpool.drv", SetLastError:= True )> _ Public Function SetPrinter( ByVal hPrinter As Int64, ByVal Level As Long , _ ByRef buffer As Long , ByVal Command As Long ) As Boolean End Function and following call If Not Se ...Show All
Lanex Searching via a textbox string
Hi... I'm just jumping in to VS2005, and have tried to create a simple database search that will return all the items that are similar (begins or like ) text in a 3 column database table. The form has an input textbox, and a datagrid, similar to the output of an ASPRUNNER-PRO page...only I don't want a web page, I want to do this on a form. Everything IO've seen and read pertains to bound data to text boxes, whic is the opposite of what I am try ...Show All
