User Profile
Collapse
-
anyone? Need help with this... -
Change datagridview combobox cell style on form load?
Morning,
at the moment i can change the datagridview combobox cell style using the cellvaluechange d event handler using the following code:
...Code:Private Sub DataGridView1_CellValueChanged(ByVal sender As Object, ByVal e As System.Windows.Forms.DataGridViewCellEventArgs) Handles DataGridView1.CellValueChanged If e.RowIndex <> -1 AndAlso e.ColumnIndex = Column1.Index Then Dim -
How to add Combobox Item to Textbox?
Afternoon,
i'm new to VB and would like to know how this is possible, im using the following code but the combobox item doesnt add to the textbox.
code im using is:
Whats wrong with this code?Code:TextBox1.Text = ComboBox1.SelectedValue.ToString
Your help is needed
Many thanks -
Searching Datagridview by typing in TextBox
Afternoon,
i have a datagridview called 'gvStudents' that shows typical student info. I'm fairly new to VB.net and would like some clarity on how to search a datagridview by typing in a textbox.
As the user types in the textbox the results are shown in the datagridview to the closest match.
My gvStudents extracts info from my SQL 2005 database using a stored procedure. Ive connected to the database with... -
How do i run a vbs script only once?
Hi All,
i'm using a login script for all clients on a network to install a folder of documents. What can i include in the code that will make sure the script runs only once? making sure it checks if folder already exists and does nothing..
thanks -
Hide CMD window when startup login script runs
Hi All,
im running the following login script (vbs) when users log in:
...Code:' **************************************************************************** ' Copy Fonts From Network Share To C:\WINDOWS\FONTS Folder Of Workstation ' **************************************************************************** Set WshShell = CreateObject("wScript.Shell") -
Login Script: VBS
Hi,
not sure if this is the right section to post in but i'm using the following vbs script to add files to network machines through a group policy:
I need to make sure that if the...Code:Set WshShell = CreateObject("WScript.Shell") WshShell.Run "xcopy.exe ""\\FileLocationGOESHERE"" ""C:\LOCATION"" /C /I /S /E /H /Y /Q", 1,True -
it's a public network with over 80 machines. I have access to all workstations but a script would have been much easier for me.Leave a comment:
-
sorry, didnt know where to post exactly.
It's just a plain copy. from server to PCs (harddrive)Leave a comment:
-
copying file script
Hi All,
i would like to copy a folder from one of my servers to all users machines on the network, preferably C drive. I need a VBScript, can someone please help me?
thanks -
-
Learning Perl and its Future?
Hi All,
I keep asking myself the question whether i'm doing the right thing learning Perl?
I'm new to Perl (as you can see from my posts) and want to become a programmer in the near future.. what future does Perl have? Is it worth me learning Perl? How's the job market like?
Also, probably a silly question but how long does it take for an average learner at an average self studying speed to become an... -
Thanks for all the replies so far, very beneficial.
Kevin, why do you use 'my'?
your above code prints out a 7x7 square which is cool, but if you wanted to print a hollow square? just the asterisks on the outline of the square?
sorry its probably my fault for not making it very clear..
regards...Leave a comment:
-
thanks for the advice,
I'm self studying to learn Perl so have decided to do a chapter a week.
Also, can you please give me a hint or any tips as to where to look (or what function to use) if i wanted to create a similar code but instead the inputted integer prints a square of asterisks..
for eg, if a user inputs an integer of '7' the output would show a square of asterisks (7X7)..
reg...Leave a comment:
-
Can you please provide me some explaination for the above code?
thanks...Leave a comment:
-
KevinADC,
sorry mate for the late reply, well busy.
ok i think ive cracked it with 5digits:
...Code:print "please insert a 5-digit integer: \n"; $string = <STDIN>; $var = substr($string,0,1) x 1; $var2 = substr($string,1,1) x 2; $var3 = substr($string,2,1) x 3; $var4 = substr($string,3,1) x 4; $var5 = substr($string,4,1) x 5;
Leave a comment:
-
Deitel: How to Program
Hi,
ive recently purchased a copy of this book.......im at the beginning stages and working on the last exercises of Chapter 2. But ive noticed that these exercises are quite difficult and Chap2 doesnt provide enough info for me to answer them.
I searched the Deitel site but couldnt find any answers or tips to any of the last questions in chapter 2.
Has someone noticed this? do you know where i can find... -
Integer Repetition
Hi All,
i need help with the following:
i need to write a simple program that asks the user to input a number (minimum of 3 digits), which i seperate into individual digits and print the 1st digit 1 time, 2nd digit 2 times, 3rd digit 3 times and so forth...
I cannot get the last bit working, what bit of code can i use for the repetition part?
many thanks -
thanks for this,
im not at the level at the moment to understand the example you have provided...
can you please explain this bit ($var =~ /^\d{5}$/)...
thanksLeave a comment:
No activity results to display
Show More
Leave a comment: