19,729 Topics

Member Avatar for
Member Avatar for renzlo

Hi, All, I am instructed to develop a console application which monitors a process. It is now done but the problem is when I'm running it the CPU usage increases up to 100%, kindly check below code for some enhancement: Console App: Sub Main() While True System.Threading.Thread.Sleep(1000) If IsProcessExist() = …

Member Avatar for Reverend Jim
0
409
Member Avatar for LukeJWhitworth

Hello Guys, How would I have a button that when I click skips the calendar forward one month from the selected date? I'm a bit confused as there is no skip option or anything. Regards, Luke

Member Avatar for LukeJWhitworth
0
103
Member Avatar for CodingSource

Dear fellow programmers, I am trying to build a form that has two datetimepickers (for date range) and one button. When a user clicks the button the datagridview will show results according on the date range (by the two datetimepickers). This is my code so far: Dim dbconnection As New …

Member Avatar for Santanu.Das
0
802
Member Avatar for TazaZaza

Hello the best crew, First i wish all of you happy new year and all the best wishes. Second if i have a two forms , with two datagridviews. first one is products , second one is orderline. i need to set a button on the first cell in the …

Member Avatar for imti321
0
279
Member Avatar for Nebil

I am fairly new to crystal report and I need a help. I have a report having two groups,project id and work_item. And I placed 3 sub reports material,labor and equipment reports in the work item group. They pass a value to the main report that is used for further …

0
87
Member Avatar for TheGuy831

hey I'm trying to make a **flash player fullscreen** With a **click** of a **button**.. within a **webbrowser control** webpage source is not mine.. Pleasee!! Help!! Thank you..

0
77
Member Avatar for Papa_Don

Group, When publishing my first program, I noticed that it put the program in the App folder as opposed to "C:\Program Files\". Is there a way to direct where everything should be stored when you install it on the users computer? Thanks, Don

Member Avatar for imti321
0
309
Member Avatar for Trle94

Hey is there any way to write out example: a b c.. aa ab ac.. ba bb bc.. ca cb cc... and like that for every character from keyboard To .txt file?

Member Avatar for Reverend Jim
0
121
Member Avatar for Trle94

Okay hello everyone, so I'm using this class to protect app from user using hotkeys while form is running: Imports System.Runtime.InteropServices Imports System.Reflection Public Class KeyboardJammer Private Delegate Function HookCallback(ByVal nCode As Integer, ByVal wParam As Integer, ByVal lParam As IntPtr) As Integer Private Shared HookDelegate As HookCallback Private Shared …

Member Avatar for Trle94
0
197
Member Avatar for Hassan_9

hello guys ,i need some help i have 2 tables in msql server 2008. table InList:ItemId,Description,Qtyin.... table OutList:ItemId,description,QtyOut... Now,i need to make a query to give me the available Qty of each item The available Qty is the (Sum of Qtyin) - (Sum of QtyOut) i need the query asap,any …

Member Avatar for Reverend Jim
0
100
Member Avatar for Papa_Don

Group, I'm now having to merge several of these text files together. At the end of each of the text files is a line that says "End of Report". I need to eliminate this line completely. This code does the merge for me: RestranName = getRestranName(0) RestranName2 = getRestranName(1) System.IO.File.AppendAllText(RestranName2, …

Member Avatar for Papa_Don
0
746
Member Avatar for aseel.jaradat.9

im trying to make a simple example in threading this error msg can anyone help me to solve it ? Cross-thread operation not valid: Control 'cmb1' accessed from a thread other than the thread it was created on. Imports System.Threading Public Class Form1 Inherits System.Windows.Forms.Form Dim th1 As Thread Dim …

Member Avatar for aseel.jaradat.9
0
189
Member Avatar for aseel.jaradat.9

how can i add my items from list to combo box ??? Dim IntList As New List(Of Integer) Sub proc1() Dim iCount As Integer For iCount = 1 To 10 IntList.Add(iCount) Next If Done = True Then cmb1.Items.AddRange(IntList.ToArray) this is the msg error : Error 1: Value of type '1-dimensional …

Member Avatar for Reverend Jim
0
243
Member Avatar for Jeon_1

i couldn't edit my previous post or can't delete. so i open new. sorry again i have two text file one is a.txt and another is b.txt content of a.txt is a b c d content of b.txt is 1 2 3 4 5 6 7 8 9 i want …

Member Avatar for Jeon_1
0
155
Member Avatar for Jeon_1

i have two text file one is a.txt and another is b.txt content of a.txt is a b c d content of b.txt is 1 2 3 4 i want to process each a.txt line to b.txt line. for instance. for each aa as String in a.txt for bb as …

Member Avatar for ddanbe
0
120
Member Avatar for Triple_7

VB.NET 2010 Is there a way to restrict a Masked Text Box to accept only *certain* letters? I know how to restrict for all letters. For example, the user should only input the letters "P", "R" or "N" ( or can be blank) in a particular Masked Text Box. I …

Member Avatar for Santanu.Das
0
307
Member Avatar for Triple_7

Hello -- When using the PrintForm component in VB.Net 2010 I would like to change the back color of the form from black to white just prior to printing to preview. Then once the print preview window is closed the back color returns to black. Here is the code I …

Member Avatar for Triple_7
0
298
Member Avatar for Papa_Don

Group, I'm counting the number of files in a folder using the following code: Dim counter = My.Computer.FileSystem.GetFiles(folderName) This produces a value that doesn't appear to be either a string or an integer. Would you know how to convert this value into an integer that can be used? Don

Member Avatar for Papa_Don
0
729
Member Avatar for Papa_Don

I'm making some "cleanup" changes to my 1st VB.net project that I'm publishing. The project has an "Assembly Name". But I've just realized that the Root Namespace has the default name of "WindowsApplication1". I've got to believe this needs to be changed. How important is the name I put here? …

Member Avatar for Nutster
0
1K
Member Avatar for Papa_Don

Group, I've published my first VB.net program (woo hoo!). This prompts me to ask a couple of questions: 1) I'm using a couple of text files to hold some user updated info. Is there a way to have the setup program to create the folder and attached the text files …

Member Avatar for cgeier
0
415
Member Avatar for Nebil

Hi guys, I've got a little problem.A part of the project I'm working on reads data from an excel file and stores it in the database. It works fine for 15-20 records but fails after that. I have properly closed the connection and the reader I'm using. But ut doesn't …

Member Avatar for Nebil
0
108
Member Avatar for Programmer592

Hi. I have a program that detects all the folders that are open and displays each one in a ListBox item. ![2014-12-25_15_49_20-DLAUBEFN_(Running)_-_Microsoft_Visual_Studio.png](/attachments/large/4/8dcefef15b7155ed7cc20f56c743d34f.png "align-center") What I want it to do is if a certain folder is closed, I want it to start a batch file and close itself. I know how …

Member Avatar for Programmer592
0
316
Member Avatar for waqasmrd
Member Avatar for Xiao_1

when Register in this also will record the time in to access also is this code corrct this my code Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick lbltime.Text = "Time:" + TimeString If String.IsNullOrWhiteSpace(txtadmno.Text) Or String.IsNullOrWhiteSpace(txtcard.Text) Then 'MessageBox.Show("Please complete the on the box.", "Authentication Error", …

Member Avatar for SteveDotNet
0
336
Member Avatar for Donal99

Dim Names As String = txtfrom.Text Dim Email As String = "E@mail.com" Dim Phone As String = "8979876785" Dim Address As String = "Location" Dim postData = "&Names=" & Names & "&Email=" & Email & "&Phone=" & Phone & "&Address=" & Address Dim request As WebRequest = WebRequest.Create("http://localhost/testserver/sendmail.php") request.Method = …

Member Avatar for Donal99
0
440
Member Avatar for Jeon_1

i want to restrict daily usage of my program. for example, i want to restrict usage to 100 count daily. and also want to check whether windows clocks roll back. so code will be such like. for i=0 to 100 if i > 100 then msgbox('daily usage exceed') else end …

Member Avatar for Santanu.Das
0
186
Member Avatar for OMER AHMED

hi all again i want to save my 3 columns of listview with data in vb.net built in settings saver how i can do that and how i can load it back when form load. i write something like this My.Settings.advance_settings.Add(TextBox2.Text) My.Settings.advance_settings1.Add(TextBox1.Text) My.Settings.advance_settings2.Add(Date.Today) my.settings.save() it will save the data but …

Member Avatar for Santanu.Das
0
1K
Member Avatar for coolsasuke

Hey Pals, I was trying very hard to compare 2 numbers when one is not in any sequence. EG: First number: 1233 Second Number: 3321 In this case above, i want it to match because they both contains same numbers, just that it is not in sequence. I have tried …

Member Avatar for Santanu.Das
0
227
Member Avatar for sergio_pb

I creating an application in visual studio where I have a client to request specific information to multiple servers. Someone Knows i can make this communication? For one server i know to create that, for many servers i dont have idea. Code example!!! One client for many servers! For one …

Member Avatar for Minimalist
0
341
Member Avatar for André_2

Hello to all I have a problem When i create an excel file with some dropdownlists in my vb.net page the dropdownlist in the excel file doesnt ignore balnks even with the ignore blank property set to true best regards

Member Avatar for krishnap2w2
0
598

The End.