I have a datadridview and it is a set size on my form. The data rows within the datagridview do not always fill up the entire datagridview. This is fine and what I want. The problem is that I'm trying to check if the user actually clicks on a cell within the datagridview or if they clicked...
I have a datadridview and it is a set size on my form. The data rows within the datagridview do not always fill up the entire datagridview. This is fine and what I want. The problem is that I'm trying to check if the user actually clicks on a cell within the datagridview or if they clicked...
I'm trying to get the date a file was modified. How can I do this? I know how to get the date last accessed and the creation date (below code) but what about the date modified? Thanks for your help!
Dim f As New FileInfo("file.exe")
Dim dte as string
dte = f.CreationTime.ToString
ok this really seems like a simple problem but i cannot figure it out for the life of me. when i add a button to my form i want to be able to double click that button and have it perform an action. but for some reason i can not enter into the doubleclick handle when i double click on the...
ok this really seems like a simple problem but i cannot figure it out for the life of me. when i add a button to my form i want to be able to double click that button and have it perform an action. but for some reason i can not enter into the doubleclick handle when i double click on the...
Is there an easy way to get the last two decimal places to round to the nearest quarter cent if I have a given number that is 4 decimal places? So for example if I have the # 40.1234 it would round to 40.1225, or if I have the # 40.1255 it would round to 40.1250, or I have the # 40.1988 it...
I have a main form that has a tabcontrol with 4 tabs. How can I load data on each tab when the form loads? Right now only the first tab loads with data on form load. The other tabs load with data when I actually click on them.
Thank you very much for your help.
I have a form that has buttons and a datagrid. When a user resizes the form I want the datagrid to expand with the form and buttons to bind to the form so they move in conjunction with the form. Is this possible?
Thanks!
Ok this may be stupid but I just want to verify before I go out and buy a new power supply. My mobo has a 24 pin ATX connector but the power supply that I bought has a main power connector with only 20 pins. So my question is, can I still hookup the power supply to the motherboard even though...
So I have a column in a table with varchar values. The values can look like "#12345 abcd" or "abcd #1234" (without the quotes). I want to pull out just the number from those strings of characters. So in other words if the field value is "#1234 abcd" i want to return just "1234". How can I do...
I have a calculation that is taking one number minus another number. The result (a variable I named "strCents") comes out as an exponential number rather than just a type of double. How can I convert this exponential value to a data type of double?
Example:
The value being calculated is...
Hello. I have a dataset that I fill with one column of data (amount of rows varies). I'm trying to figure out how to take each value in each row and append it to a string. So for example, if the dataset is full of one column of values 1111 in rwo 1, 2222 in row 2, 3333 in row 3, 4444 in row...
Hello!
I am putting date.today into a variable called dte but I want to convert the date format from, for example, 12/10/2006 to 20061210. How can I do this? I know it's probably something simple but I can't seem to find the answer.
Thanks for your help!
How can I drop a temp table column if the column that I want to drop has data in it? I can drop a temp table column if there is no data in it via something like:
create table #temp
(
hid int,
greeting varchar(1),
defaultyn int
)
select * from #temp
alter table #temp drop column...
I have a stored procedure that takes in two date parameters (start date, and end date). In the proc I create a temp table with three columns (description, quantity, date), and I fill that temp table with data. I fill the temp table with data by looping through the date range of what is passed...
I setup a role (called PAPAdmin) within my database and I have added users to this role. How can I tell via vb .net if a user using my application is in this role or not? I already have the username of the user in a string (let's call the string strUserName) but I just need to check that string...
So I have a string of text that I have pulled from a textbox. I want to be able to pull out the middle characters from this string and use them. The only thing is that the middle characters are going to change in length so it's not always going to be a set length. But the middle characters...
I have setup a user group within Enterprise Manager. I have a program that I created that I am placing on several users machines. Some of these users are in the user group I have setup in EM and some are not. I want to grant access to those people that are in the user group within EM and deny...
How can I take my stored procedure, execute it, and put the recordset from the stored procedure into a dataset? I tried the below way but I am having no luck. I'm passing in my procedures parameters via another form (fAppResearch). I ultimately want to use this created dataset as a crystal...
I have created and filled a dataset with a single column of values. I want to take those values, looping through them one by one, and use those values as an input parameter in a stored procedure. I then want to execute that stored procedure using each of the dataset rows values as the...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.