Answer Questions
nef001 Print text to a form
IN Vb 6.0, using the Print command would print whatever text you put onto the form. Im wondering how you would do that same thing in VB2005 because apparently the command had changed... thank you Ehrm, not to sound ungrateful but we've been hearing these "relief is on the way" statements for a while. God knows how many threads I've tried to answer asking about printing forms and enumerating printers. Sounds like you've added some "everybody needs this code" to SP1. Pray tell, when can we expect this, "summer 2006" and "2006 Q3" is running out of summer and 'Q'. Looking at the Product Feedback responses to filed bugs on the framework, you're not contempl ...Show All
dreameR.78 vb.net Printing
I did a simple scipt to print some information from the database into the printer. My question is : I did a loop to go through the records in using vb.net. The loop is fine and it can go throught out those records BUT it GET PRINT THE FIRST RECORD only is there anyway to print them all -----------SECOND question-------------- is there any chance to check the same database for any new records every 5 minutes Hi, Read the first entry in your database only in the same you do in a loop (but without the loop ) instead, then close the file if you need to. See the VB PowerPacks forum entry at > http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=747347&SiteID=1 and download th ...Show All
Knudde Using & in VB 2005 controls
In VB 6.0 when you place the “&” in front of a letter its underline the letter and the control that has it can be called with the keys “ATL+underlined letter”. In VB 2005 you can do that two but the underline letter doesn’t show up unless you press the ALT key. How can I make that the underline letter show up always Stephen, you are correct. This is a system wide setting. Control panel->Display->Effects->Hide underlined letters for keyboard navigation until I press the Alt key. Best regards, Johan Stenberg In any control. Button, CheckBox, RadioButton. In the design shows up but in the runtime it doesn’t unless I press the alt key. ...Show All
ncazanav Word automation and System.IO.FileNotFoundException error
Hello, I'm having problems with an application that is automating word. I'm using VS .Net 2003, (Visual Basic), WinXP Pro, Office 2003. Here's what I doing: Imports Microsoft.Office.Interop ... Try Dim oWord As New Word.ApplicationClass ' Place call to COM object here. Catch ex As Exception MsgBox(ex.ToString) ' Display information about the failed call. End Try Here's what I'm getting: 'DefaultDomain': Loaded 'c:\windows\microsoft.net\framework\v1.1.4322\mscorlib.dll', No symbols loaded. 'path test': Loaded 'D:\Development\Visual Studio .NET\path test\path test\bin\path test.exe', Symbols loaded. 'path test.exe': Loaded 'c:\windows\assembly\gac\system.windows.forms\ ...Show All
michael447887 another c# to vb.net conversion
how should I change the vb.net at bottom to mimic the Undocked event in the c# thx. -greg There were no errors in the conversion, the errors where from the Visual Studio .NET compiler. ***************************** c# source *********************************** namespace Strips { public partial class ToolStripFloat : Form { private void floatToolStrip1_Undocked (object sender, EventArgs e) { toolStripButton1.Enabled = true; } } public class FloatToo ...Show All
Larsenal Quiz Poll
I am developing a website and want to use a method of comparing results from a poll containing two or more options. I would like to use Visual Basic (If it's possible!)to create a method of collecting data, storing and displaying the results onscreen. I am fairly new to VB and am using VB 2005 and any help would be fab! Thanks. bobby_dazzler, According to your question, you would like to create a web page that can show the voting result. Here I have an example from MSDN named Add a Quick Poll to Your Web Site. This example is exactly what you want. Please open the following link, read the article and download the Visual Basic code. Just have a try step by step as the article shows: http://msd ...Show All
Ido Ran Add Flash9 Control to VS2005
I added Flash9.ocx(c:\program files\system32\macromed\flash\) to vb2005 toolbox, when I draw the "Shockwave Flash Control" to form, there comes errors: * Could not resolve dependent COM reference "stdole, Version=7.0.3300.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a". * Failed to create the wrapper assembly for type library "AxShockwaveFlashObjects". Exception of type 'Microsoft.Build.Tasks.ComReferenceResolutionException' was thrown. * The referenced component 'AxShockwaveFlashObjects' could not be found. Failed to create the wrapper assembly for type library "AxShockwaveFlashObjects". Exception of type 'Microsoft.Build.Tasks.ComReferenceResolutionException' was thro ...Show All
Koelho Joining an AD domain with VB2005
Hi I would like to create a little application using VB2005 to join a computer to an AD domain. I know there are many vbscripts to do this but I'm hoping to make a single gui app to achieve this. Any thoughts You can do something like this, though I have not tested this code, but you get the idea: Private Function IsMemberOfDomain( ByVal ComputerName As String ) As Boolean Dim entry As DirectoryEntry = New DirectoryEntry( "LDAP://yourdomain" ) Dim DirSearcher As DirectorySearcher = New DirectorySearcher(entry) DirSearcher.Filter = "(objectClass=computer)" For Each result As SearchResult In DirSearcher.Find ...Show All
tattoo Copy Folder to new location
Help. I am trying to setup a sample application code I got from someone to copy a folder of a persons choosing from a dialog box, to a new location that is chosen from another dialog box. Currently this application works, but does something I don't want to happen. When the files are copied, it recreated the entire root structure to the folder instead of just coping the folder selected. Example: folder selected was c:\documents and setting\user\my documents\labels Copy to: c:\documents and setting\user\desktop The application created the file structure documents and setting\user\my documents\labels on the desktop instead of just the "labels" folder. Any insite would be grateful. Ok, this is what I w ...Show All
Can-Ann Upgrade and Version Question
I have an application where I have stored some user information in the My .Computer.FileSystem.SpecialDirectories.CurrentUserApplicationData Folder. When there is an upgrade to the product I would like to carry the data from the older versions folder to the new versions folder. I have code that upgrades the my.settings but nothing for the user data. I know I can easily copy the data files from one folder to another but how do I know what the previous version is Is there an easy way to get this information or does anyone have an idea how to calculate the previous version No problem, I guess I really don't understand what the difference is between the Assembly version and the File version. I am still ...Show All
white2grey Open default email program (Outlook, for example) when pressing a link
Hello all, iu have a question: My app has some labels with email adresses, what i want to do is some kind of linklabel but instad of oppening an internet adress, i want it to open, for example, outlook, with the adress in the destination field (many programs does so), also, it would be fine if i can personalize a default email subject and text, but if i can open the program and put the adress i am already happy enough :) Thanks Sorry i didnt specify, i am programming in Visual .NET Sorry for being so noob, but, how do i do so (im starting with .net) Thanks hehe no worries. in your code, scroll right to the top of the file/page. There you should see a bunch of import ...Show All
2326ac Call EXE method from DLL
Hi Is there a way that I can call a method in an EXE (managed code, VB.NET) from a .NET DLL by passing a reference to the instance of the EXE Multiple instances of EXE might be running and loaded in memory and I need the DLL to invoke a method within the running instance by passing a reference (such as the application title, window handler etc). In case you are wondering why the DLL is calling the EXE method and not the other way around, it is because this DLL is like a wrapper class and the method that invokes the method in the EXE is actually called from an Access VBA module. TIA Is it possible to do this without remoting It seems like overkill to do this via TCP. My situation is this. The user opens an instance of the ap ...Show All
Helio Gama Faria Filho Moving projects
Hi there, This might be a really stupid question but I'm having trouble saving VB.NET projects in other locations as backup. What I want to do is save the project somewhere (eg memory stick) so that if something bad happens I've got a copy somewhere. However, when I choose save as a message box pops up stating that the project must be saved in the original location. I can save the forms and module elsewhere individually. Thats fine for this project as there are only a few things in it but what about larger projects I can save the solution elsewhere but then it can't find the project because it's expecting it in the original location. What I need to know is, is there a way to save the project, taking the forms with it, in another l ...Show All
blah569 Good Systems and Analysis Design
Wher can I get some free help on Systems analysis and design for VB.net applications. It doesn't have to be free. I still would like to know about it . If at first you don't succeed, RTFM. That's my $ .02 worth. (since a dollar saved is $.37 earned, my opinion is basically free) On a more serious note, MSDN does have a new Architectural Journal that's available for free at http://www.architecturejournal.net/ Jim Wooley http://devauthority.com/blogs/jwooley I'd check out comtent on msdn, with components such as the enterprise library they build on established patterns and provide some clues as to an implementation. Microsoft certification also addresses the subject of architecting applications - look at the ...Show All
Steve_j_maas please help
im trying to write a application that reads 3 nonzero values when i enter then and the applications determines wheather they could represent the sides of a tirangle My thought and distant recollections of mathematics(trigonometry) would be that you will need to basically calculate the triangle So you would be using the sin, cos and tan functions contained in the system.math namespace That said on http://en.wikipedia.org/wiki/Triangle The Pythagorean theorem can be generalized to the law of cosines : which is valid for all triangles, even if γ is not a right angle. So apply some simple trigonometry - you can calculate the angle between them using a tan function an ...Show All
