Answer Questions
DanielLei Multi-threaded file processor
I would like to build a tool that reads a text file (might have upto 1,000,000 lines) and does some process with each line and publishes to the message queue [one line at a time]. Between each message being published, there should a sleep time between each threads, which will be configured through the user interface. Also, I need to be able to configure the thread count through the user interface. Any information or sample would be of a great he ...Show All
OldPivot Insert a command result into a text file...
Hi all, I don't know if i am in the right section, but I will try. Let say I have a text file: a.txt ==== <Command>Now.Date</Command> Hi, This is a test. Thank you, Alan, Can I have VB or C# read a.txt file, process what is between <command></command> and output the file like this: a.txt ==== 5/12/2006 12:00:00PM Hi, This is a test. Thank you, Alan, Thanks, Alan, ...Show All
RFalken Delegates and KeyUp
I am dynamically adding inkedits(rich textboxes for all intents and purposes) to a form and i want to capture the F2 key when the focus is on one of them and that key is hit... I wanted to do addhandler inkedits.keypress but that event only works for ascii keys. If i try inkedits.keyup the compiler is expecting a delegate object.. the examples i can find through searching the web dont really help me with the syntax.. i know i need to ...Show All
emkatu Out putting the time.
I been trying to show the time on a form, but i dont know how, could anyone let me know how please, i know it probably the most simple thing ever. My Apoligies! label1.text = Now.ToString if you put that inside of a timers click event it will be a running clock hrm, that didnt seem to work for me, something about, and object required. Any other idea's or am i just doing something wrong. ...Show All
Protium Date/Time of compilation
C gives me the constants __DATE__ and __TIME__ so I can time-stamp each build (easier to decipher than the version.) Is there anything equivalent in VB.NET I don't want to use any file timestamps. I want to embed the current date and time at compilation. ---Mike Well you can get it in VS2005 but it’s a little work and I used the File system object. It’s quite possible that the fileinfo ...Show All
Francisco Lopez R
Hi, I am using VB.Net 2.0 and have connected to Microsoft Access but having trouble running a query as it uses * as a wildcard, but when I run it in .Net it returns nothing as needs to have %. The solutions I can think of are: 1) If I was able to extract out the actual SQL string from the MS Access query from my code then I could do a Replace("*", "%") then would work - but don't know how to extract the SQL string. ...Show All
Matt Masson - MSFT serialport control performance
hi, I'm writing a program that recieves data from an embedded device and am having trouble with performance. I have established a connection at 115200bps yet my program seems to obtain an average transfer rate of only 1.1 kilobytes a second. My program currently requests a block of data, then when data is recieved, requests another block, then when data recieves, requests again etc. This is half duplex communication and I'm wondering how I can d ...Show All
kolarman Generate a compiler error?
Hi all, I've created a custom component which can be dropped from the toolbox to any form. It interacts with any form that has a treelist on it. After you drop it on to the form, you must set a property of the component which is treelist it applies to. At the moment if you forget to set the property, the app builds, but as soon as you attempt to use the component, you get a nullreferenceexception. What I'd like to know is whether ...Show All
Michal Levy Login Trigger
I need a way to let my programming (running on a Windows 2003 Server machine) get triggered when a user logs on a computer in the domain controlled by this server. The server is the only DC of the domain. Can you help please Please check your email. Hi It is a long time from my reply to your email, and I have not recieved a second reply. Are you still willing to guide me with ...Show All
Reformed Program Execution from desktop
Hi, Im trying to write a program in VB 2005 that can be executed from the desktop/start menu like any other application. My experience with VB is from writing macros in excel so i never had to worry about executing a program outside Excel. Could anyone please tell me how to execute my program via a link in the start menu It would be much appreciated. Cheers Aaron There's nothing special to ...Show All
Josh Ledgard Byte code
I have the following problem(Project) define a subset of c++ or java or c# or x or any combination of them justify that a subset is complete list goals and objectives for your selection descripe its syntax & semantics implement the above define AM & simulate AM on RM infact i have never programmed such things, if any body can help 1- what do we mean by complete subset 2- how to programm the abstract machine( ...Show All
venkyweb Run Application in ForeGround
Hi, How can I make sure that my vb form in my application always start/show in foreground (fore front) and any other application will run in background (behind my application) Thanks Use the Form.Topmost property to make your form stay above all others. ...Show All
l0p0l Picturebox change forecolor
Hi!! I'm developing a math (ray tracing) application in VB6, and using .line method to draw between 100 and 100,000 lines in a picturebox. I need some of this lines be painted in a different color. I use picturebox.forecolor=RGB(255,0,0) in runtime but it just won't change the color the lines are painted!! What can I do Thank you, Konstantin. Hi, Have you tried writting it to the form It ...Show All
cakalfurkan44 Compare two numbers and display larger of two in label
I am new to this, please be kind as I am sure to sound a bit dim. I placed a command button and two text boxes on a form. I want to click the command button have the program look at the entries in txtfirst and txtsecond determine the larger of the two numbers typed there and then output that number to a label lblresults so I coded Dim txtfirst as Integer &n ...Show All
lukha Datagrid paging, avoiding errors when deleting rows
I'm not sure if this is common knowledge or not, but while testing I found something that I consider to be a major problem in Microsoft's datagrid control for the web. It may or may not impact applications that you are developing/have developed so I wanted to point it out. Basically, the situation is this: You have a datagrid control on your web page, and have enabled paging. The grid is bound to a datatable/dataview, populated with rows, and ...Show All
