|
|
What's your question? All I see is some deranged, half-assed looking run-on sentence. Where are you having problems?
I'm going to become rich when I create a device that allows me to punch people in the face over the internet.
"If an Indian asked a programming question in the forest, would it still be urgent?" - John Simmons / outlaw programmer
|
|
|
|
|
Justin Perez wrote: What's your question? All I see is some deranged, half-assed looking run-on sentence. Where are you having problems?
Thanks for new sig material
"What's your question? All I see is some deranged, half-assed looking run-on sentence. Where are you having problems?" - Justin Perez
|
|
|
|
|
My pleasure
I'm going to become rich when I create a device that allows me to punch people in the face over the internet.
"If an Indian asked a programming question in the forest, would it still be urgent?" - John Simmons / outlaw programmer
|
|
|
|
|
Hi,
I have a datagridview control in which I populate data from a data table.When I click on the coloumn header of the gridview control,then the data which are displayed are sorted in the reverse order on which it was originally diaplayed.
Issue:Now I want that the data should not be sorted when ever I click on any of the coloumn headers of the data gridview i.e I want all the coloumn headers of the gridview controls should be read only irrespective of clicking on it.When I will click on the gridview column header no actions should not be there in th gridview.
Please help me out in this issue.Its very urgent.
Thanks in advance.
Pradip Kishore
|
|
|
|
|
Hi Pradip Kishore
Use DataGridView Properties
Columns->; Selected Columns, (Select Column) and use Behavior: SortMode->;(Select your options) Notsortable
Franics K Antony
|
|
|
|
|
Hi Francis,
Thanks a lot for the quick response.
I have a requirement that when even I checked on certain data items in the gridview(GV) then the color must be changed (which i did),but now the problem is that when I click on any of the coloumn headers,the colors of the items which I had checked got vanished and the data is shown in the GV as fresh data as if no items have been checked.
Please let me know how to prevent the color change when somebody clicks on any of the coloumn headers of the GV..?
Thanks in advance.
Pradip Kishore
|
|
|
|
|
I have two ListBox in vb.net. I want if a user drag any item from one listbox and drop it into other then it got add in other listbox.
please help
modified on Friday, January 25, 2008 5:44:23 AM
|
|
|
|
|
Handle the DragDrop event. Then get the text of the dropped item, and do a listBox.Items.Add(someItem); . Also, don't re-post questions, it's very rude. You asked this same question 2 days ago. You need to be patient, be prepared to wait up to a week. After that, then you may repost. Additionally, someone posted a response, with full, working source code. Instead of posting again, why not ask the guy who responded to you yesterday your more detailed questions.
Moving onto your apparent laziness. Why have you not posted what you have tried to get the thing working? This is a help forum. We won't do your work or hold your hand and explain every last little bit in detail. You need to come up with a list of what you have tried, what works and what doesn't. Then, you need to post the code where the problem is occuring. Not some generic ass question that google could give you 1,000,000 million responses for in 5 seconds. Lazy ass.
I'm going to become rich when I create a device that allows me to punch people in the face over the internet.
"If an Indian asked a programming question in the forest, would it still be urgent?" - John Simmons / outlaw programmer
|
|
|
|
|
Hello!
How can i make this vb6 code with vb.net:
<br />
For X2 = 1 To l2 Step 2<br />
cmd$ = cmd$ + ChrB(Val("&H" + Mid$(c2$, X2, 2)))<br />
Next X2<br />
When i tried to translate the code with vb express edition it make it like this:
<br />
For X2 = 1 To l2 Step 2<br />
cmd$ = cmd$ + ChrW(Val("&H" + Mid$(c2$, X2, 2)))<br />
Next X2<br />
And it's not workin properly with that.
Can anybody tell me what is wrong with this?
Thanks!
t:Stupid
|
|
|
|
|
I just tried this out, but I don't know what the ChrW function is supposed to do, I don't know what the result should be, I can't say whether it works properly or not. Could you give an example of the input and accordingly the expected output?
Here is the code I tried, which gave the result: "¼Þ"
<br />
Dim cmd As String<br />
Dim c2 As String = "abcdefghijklmnopqrstyvwxyz"<br />
For X2 As Integer = 1 To 12 Step 2<br />
cmd += ChrW(Val("&H" + c2.Substring(X2, 2)<br />
Next<br />
My advice is free, and you may get what you paid for.
|
|
|
|
|
The translation of the VB6 code is as bad as the VB6 code is, and the VB6 code isn't very good to start with.
Suffixes like $ aren't used for variables any more. That is an old artifact from the time when variables in BASIC were not declared with a type.
Instead of putting together a string that can be identified by the Val function, you should use the Int32.Parse method and specify how you want to parse the string:
Int32.Parse(c2.Substring(pos, 2), NumberStyles.AllowHexSpecifier)
Then convert the number to a char:
Convert.ToChar(Int32.Parse(c2.Substring(pos, 2), NumberStyles.AllowHexSpecifier))
So:
For pos As Integer = 0 To 11 Step 2
cmd += Convert.ToChar(Int32.Parse(c2.Substring(pos, 2), NumberStyles.AllowHexSpecifier))
Next
Experience is the sum of all the mistakes you have done.
|
|
|
|
|
I want help on design an ID Card to print without using a report form. just at a click of a button and the printing is done.
|
|
|
|
|
What is the question?
My advice is free, and you may get what you paid for.
|
|
|
|
|
You want help with designing an ID card?? What does this have to do with VB.NET?? It sounds like you need to consult with your Security department and a graphics designer.
|
|
|
|
|
How do i configure a barcode reader to read any code. for example items in a shop. please very urgent.
|
|
|
|
|
well this depends on your barcode reader (and I don't think that this has anything to do with VB or software but with your hardware vendor)
|
|
|
|
|
In my experience bar code readers just input the data as if it were entered on a keyboard. All you need to do therefore is ensure that the correct field on your form has focus and then get the user to zap the barcode.
Hope this helps
Tom
|
|
|
|
|
It's urgent huh? Read the forumn rules. No one gives a rats ass if it's urgent. Additionally, learn how to use google. Instead of waiting for a response from here, you could be doing research to actually get the job done yourself. Lazy ass.
I'm going to become rich when I create a device that allows me to punch people in the face over the internet.
"If an Indian asked a programming question in the forest, would it still be urgent?" - John Simmons / outlaw programmer
|
|
|
|
|
Justin Perez wrote: No one gives a rats ass if it's urgent. Additionally, learn how to use google. Instead of waiting for a response from here, you could be doing research to actually get the job done yourself. Lazy ass.
Wow! You are on a roll today
"What's your question? All I see is some deranged, half-assed looking run-on sentence. Where are you having problems?" - Justin Perez
|
|
|
|
|
denilda82 wrote: How do i configure a barcode reader to read any cod
YOu're going to have to consult the documentation on the barcode reader. That stuff is covered in the manuals. Anything anyone tells you about a procedure to do what you want would be nothing more than a guess.
|
|
|
|
|
denilda82 wrote: please very urgent.
How rude.
"What's your question? All I see is some deranged, half-assed looking run-on sentence. Where are you having problems?" - Justin Perez
|
|
|
|
|
I am using a timer with 1000ms interval to count secs. I need to perform certain functions after regular intervals. The problem is the timers are not accurate. Every 30 mins I lose appx 25 secs i.e., when timer starts count=1 and after 30 mins the count is appx 1775 instead of 1800. I actually took a stop watch and timed it. This way I am losing a lot of time by the end of the day. I have tried using System.Timers and system.windows.forms.timer but both have the same problem. I am using VS 2005 express edition
If I use timer with interval 100ms .. it is even worse.
Am I missing something? Please help.
modified on Sunday, April 6, 2008 11:09 AM
|
|
|
|
|
Well this timers were never indented to be precise (there are a few "better" timers in the DirectX-SDK).
When I get your question correct all you need to do is still use your timer (let's say with an 500ms interval) and just check the timespan since last run:
Define a
private _lastCallTime as DateTime = DateTime.MinValue
in your form-class and in your Tick-Handler:
<br />
<br />
if DateTime.Now.Substract(_lastCallTime) >= TimeSpan.FromMinutes(30) then<br />
_lastCallTime = DateTime.Now<br />
end if<br />
<br />
|
|
|
|
|
Thank you for your response.
This will be temporary fix for one part of my program.In my application a lot of events depend on the One second timer. I also have to display the counter counting up, trigger various events when it reaches certain values and then reset. These values depend on lot of parameters and keep changing.
I really need a good timer. I have seen many applications where they use software timers to trigger events. I dont know how they do it, may be they use one of the "better" timers like you have suggested. (1) Could you please suggest some links where i can find examples for using one of these timers in vb.net application? (2) I searched online for directX SDK download which would worrk with vb.net on vista OS. I found the following link. Microsoft states that this file works with c/c++ and C# but doesnot mention vb.net. The other links I found for vb.net donot work with vista Any suggestions?
http://www.microsoft.com/downloads/details.aspx?FamilyId=4B78A58A-E672-4B83-A28E-72B5E93BD60A&displaylang=en
again... thanks a lot for your input!!
|
|
|
|