|
Just remove the item from the combobox. There isn't any real way to just diaable it.
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
"Not only do you continue to babble nonsense, you can't even correctly remember the nonsense you babbled just minutes ago." - Rob Graham
|
|
|
|
|
I have a program that produces data reports in excel format. I found a library that let's me produce the excel files without using the Excel object which has greatly sped up the performance of the program. However, I have a need to sometimes print the reports also. I was wondering if anyone knew of any other libraries that would allow me to print the excel files without using Excel. If not does any one know where I can begin researching how to write such a library. I understand the basics of printing but what I'm not familiar with is how to translate an Excel file to a print document (ie: How to figure out how many cells per page, spacing cell accordingly, etc.) Thanks in advance for any help.
|
|
|
|
|
|
I am looking for both a good charting component and good flow charting component for my VB project. I have come across the following:
www.mindfusion.org
However I am also come across what looks like very slick charting components from other vendours. However none of these other vendours seem to have a flow charting component:
www.dotnetcharting.com
www.dundas.com
Can anyone comments on the mindfusion components? Any other recommendations for Flow Charts?
Thanks
EM
|
|
|
|
|
I want to add something to my app to do certain work every hour (system time).
E.g. 13:00, 14:00, 15:00 etc...
How do I do this without polling the system time every second?
Cheers!
|
|
|
|
|
Poll the system time every minute instead.
|
|
|
|
|
Thanks Dave, I was hoping there was some kind of System Event that I could catch.
So to get an accurate on-the-hour event I'll do the following:
When the app starts, poll every second until (now.second MOD 10) = 0;
Then poll the system time every 10 seconds until now.second = 0; (on the minute)
Then poll the system time every 60 seconds until now.minute = 0; (on the hour)
Don't know if it's justified but I'm always worried that timers with short intervals use excessive CPU, even when they have little or no code to execute....
Cheers
|
|
|
|
|
evilnoodle wrote: I was hoping there was some kind of System Event that I could catch.
Nope.
evilnoodle wrote: So to get an accurate on-the-hour event
evilnoodle wrote: When the app starts, poll every second until (now.second MOD 10) = 0;
Then poll the system time every 10 seconds until now.second = 0; (on the minute)
Then poll the system time every 60 seconds until now.minute = 0; (on the hour)
A convoluted solution at best. Why do you have to be down to the second to execute a process once an hour?
evilnoodle wrote: on't know if it's justified but I'm always worried that timers with short intervals use excessive CPU, even when they have little or no code to execute....
No, they don't take a lot of CPU time. It's the code you supply that takes all the time. The more efficient the code is written, the better the performance.
|
|
|
|
|
How can i resize and move a label at runtime like in design time and also want to make it a control.
WITH REGARDS
KOUSHIK SAHA
|
|
|
|
|
|
Haha, talk about being at the right place at the right time!
|
|
|
|
|
Hi,
i am a a beginner at this....
my question is that ...From the client pc , how do i call or reference a .dll that sits on the server and get it to execute commands on the server.
sort of like it would do on the client pc.?
i am using vs2005, developing in vb.net
thanks in advance
Anoop
|
|
|
|
|
Hi
How can I send multiple messages using "GsmCommunication.dll" And how to use "retry delay" and "max attempts" parameters?
When I do like sending one message this error occures:
"No data received from phone after 4500 ms"
thanks
|
|
|
|
|
vahidkiani wrote: How can I send multiple messages using "GsmCommunication.dll"
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
You should probably direct your question to the maker of that dll.
|
|
|
|
|
I’m developing an windows application using vb.net 2003 as front end& ms access 2003 as backend.
I have a column to store date(today’s date).datatype I’m using is text.i.e. using front end I wil add some new records to database,
At that moment “today’s” date wil be stored in the corresponding column as text datatype.
Then in frontend I need to search the database for records between 2 date ranges and display in a datagrid.
To select date ranges I’m using 2 date time picker controls with short date format.
The Resultant recors will not be 100% accurate if I select date as single digit date(i.e. below 9 to 1).
If I select dates 10 & above 10 (2 digit date) , the resultant records wil be accurate.
Pleass suggest me the solution.Thanks in advance.
|
|
|
|
|
I am not sure, whether I got that right, but you are saving the date in text-format? Why? Use datetime-format. Then there will be no problems when searching your database's entries by date.
"I love deadlines. I like the whooshing sound they make as they fly by." (DNA)
|
|
|
|
|
As someone suggested, you should use the datetime type to store the date. But, you could just format the single digit to be two digits, i.e. 9 becomes 09.
|
|
|
|
|
|
Hello everyone,
Is it possible to store an array inside an array?
Like for example I have these logs below
array1(0)
2007-05-17 04:25:30 Receive
2007-05-17 04:25:31 Sent
2007-05-17 04:25:31 Sent
2007-05-17 04:25:34 DLR
array1(1)
2007-05-17 04:32:18 Receive
2007-05-17 04:32:19 Sent
2007-05-17 04:32:19 Sent
array1(2)
2007-05-17 04:37:03 Receive
2007-05-17 04:37:04 Sent
2007-05-17 04:37:04 Sent
2007-05-17 04:37:04 Sent
Then for each array1 element I can create another array (array2) to store each line separately for "Received", "Sent" and "DLR". So I was thinking it would look something like array1(0(array2(0)).
Many thanks in advance for any help, suggestions given
Aim small, miss small
|
|
|
|
|
tatchung wrote: So I was thinking it would look something like array1(0(array2(0)).
Not quite. An array is an object, so it doesn't have a name in itself. What you name is the reference variable that holds a reference to the array.
So, you don't name the arrays that you store in the array. You only have a name for the variable referencing the outer array:
Dim array1(3)() As String
array1(0) = new String() { "Receive", "Sent", "Sent", "DLR" }
array1(1) = new String() { "Receive", "Sent", "Sent" }
array1(2) = new String() { "Receive", "Sent", "Sent", "Sent" }
You can create a string array to store in the array. You would have a reference variable for that array too, but you still only store the reference to the string array in the outer array:
Dim x(1) As String
x(0) = "Receive"
x(1) = "Sent"
array1(3) = x 'Puts the reference in the outer array
To use the arrays you only use the single variable name that you have. The value of the expression array1(0) is a string array, so you just stack another index after that expression to access a string:
array1(0)(1)
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
Aha! So i just have to add the element number of the inner array when i call upon the outer array. Many thanks Sir! Sorry about this but I forgot to mention I'm using vb6. Is this still applicable or is this already for .NET?
Aim small, miss small
|
|
|
|
|
It should work just fine in VB6, but the syntax isn't exactly the same. It's called a jagged array if you want to look for code examples.
tatchung wrote: Aim small, miss small
"The greater danger for most of us is not that our aim is too high and we miss it, but that it is too low and we reach it."
Michelangelo
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
Guffa wrote: "The greater danger for most of us is not that our aim is too high and we miss it, but that it is too low and we reach it."
Great! That just changed my views.
Got the code and it looks something like this:
Dim aTest(1 To 2) As Variant
Dim bTest(1 To 1) As Variant
aTest(1) = 1
aTest(2) = 2
bTest(1) = aTest
MsgBox bTest(1)(1)
MsgBox bTest(1)(2)
...for future reference. Thanks again for the help, not to mention the enlightenment
Aim small, miss small
|
|
|
|
|
Hello, i would like to know if it is possible the waitcursor picture ?
System.Windows.Forms.Cursors.WaitCursor
Thanks
|
|
|
|