How to set offline or pause Printer
hy! i am using vb.net And i am trying to offline or pause print. how it is possible i need a help
View ArticleVS 2012 Run script on hundreds of computers but limit to 20 concurent runs
Hi, I`ve written a scrpt which copies some files from all comps in our network to server. We`ll distribute the script and schedule it to be run every day, but i need to limit runs to 20 concurrent due...
View ArticleVS 2012 Writing to a file using admin login
Hi guys, There is a folder on my network that can only be written to with a single service account. I need to programmatically write to this and would like to get my code to use the elevated creds to...
View Article[RESOLVED] Improve vb6 program in vb.net
I'm 100% new to vb.net but have done a few things with VB6. Can vb.net solve the problem here ? http://www.vbforums.com/showthread.php?745249 If the 'body' associated with MailTo can be larger, or an...
View ArticleVS 2012 Question Regarding Telnet Connection To UNIX Server
Hi guys, I am trying to setup a telnet connection to a UNIX server. I need to pass three sudo commands to this server. I have found the following code but am unsure of how to modify it to suit my...
View ArticleReturn array from a Function
How do you send back an array from a function? In VBA you just assign an array: Code: Function arr... a=1 b=2 c=3 arr=Array(a,b,c) End Function Sub retarr() x=1 arrret=arr(x)...
View ArticleVS 2010 DGV Column Sort by Date
I have a DGV with Several Columns. One is a date column. User can enter 01/01/2014 format or March 2014 format or Spring 2014 format or "Unknown". If I click the header it does sort by 01/01/2014...
View ArticleVS 2012 Working with dll for the first time
Hello. It's the first time i started working on a dll. I would like to know if it's in any way possible, if you add this dll as a reference into your project, to read its source code. I want to avoid...
View ArticleVS 2010 Creating datatables via Listview
Hi guys, I'm working on putting a group of worksheets into a dataset where each sheet is loaded into a separate datatable. I've been wondering why this is not working: vb.net Code: For Each Item In...
View Articletrying to use a function in a datagridview
wondering if its possible to run a function against values in a datagridview here is my code. Dim sql As String = "SELECT Merchant_Number__,Call_ID,Created_by,create_date,Problem_Type__,Status FROM...
View ArticleQuestion on %Username% location [SOLVED]
I am trying to delete a file located in ("C:\Users\Josh\Desktop\text.txt") I use My.Computer.FileSystem.DeleteFile("C:\Users\Josh\Desktop\text.txt") and that worked. But if i were to use the...
View ArticleVS 2010 Read subitem from listview
hi how do i read a subitem in listview? heres my code: Code: Private Sub NsComboBox1_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles...
View ArticleHow to write a reminder?
Hi, I want to write a program in VB.Net or HTA: On setted date, when my computer starts, a small form with some string will appear on the screen. Is that possible? Can you help?
View ArticleDatagridview additional blank row added when allowusertoaddrows enabled
Hi, I am using a DataGridView and populating it via a DataTable. I have a paste button that allows text to be pasted from the clipboard into the DataTable. I also have AllowUserToAddRows set to true on...
View ArticleAdding to startup folder + renaming
My goal is to, add the file to the startup folder while renaming it. So, if my file is test.exe , i want to add it to startup folder with another name ex@ test1.exe. In my current code it just adds...
View ArticleVS 2010 Music Library
I have a code snippet I use quite often to automatically open all sorts of files with different extensions (.pdf, .xlsx, docx, .pptx, ... and so on). The files are retrieved from different maps, based...
View ArticleSetting a FOrmat to a Datagridview Cell
Hi ! I am trying to make a form with a datagridview which lets the user to add, edit and delete a record directly using this grid. One of the columns is to be formatted as Time and one also as Date. Is...
View ArticleHelp me with this Error please!
My code: I got it from http://www.youtube.com/watch?v=iBmQmIwcjpA I used the exact code as in the video. Code: Option Explicit On Imports Microsoft.Win32 Public Class Mainform Public Sub New()...
View ArticleError 4 Unrecoverable build error
Hi, When I rebuild or build my setup project in VB.NET I get this error "Error 4 Unrecoverable build error C:\Documents and Settings\pribeiro\Ambiente de trabalho\SGSC\SGLCSetup\SGLCSetup.vdproj...
View ArticleRegistry Startup Problem
Every registry startup code i find doesn't work. ex: Code: Imports Microsoft.Win32 Public Class Form1 Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles...
View Article