|
hello sir...
thx for u r reply
sir u gave code it is in Vb.net
i want to do it in VB 6 plz help me...
hi
i am pankaj
|
|
|
|
|
pankaj.indore wrote: hello sir...
thx for u r reply
sir u gave code it is in Vb.net
i want to do it in VB 6 plz help me...
Mike gave you the code - regardless of its origin you should be able to work this out yourself.
BTW soliciting a direct email response by placing your email address in the forum is a BAD idea.
Also, it may be urgent to you but don't put the pressure on the other forum members. We all have our own 'urgent' problems
...Steve
1. quod erat demonstrandum
2. "Give a man a fish and you've fed him for a day. Teach him how to fish and you've fed him for life." I read that somewhere once
|
|
|
|
|
ok sir...
i sorry for that
hi
i am pankaj
|
|
|
|
|
It is very similar
Dim test As Double
test = 111000111.235
MsgBox (Format(test, "###,###,###.##0"))
|
|
|
|
|
thx for u r reply sir..
but my problem is still not solved...
i want to do this in indian currency format
like 123456789.123 becomes
12,34,56,789.123
in india
can anybody help me..?
hi
i am pankaj
|
|
|
|
|
move the commas around until you get them how you need them. You should see the pattern by now.
##,##,##,###.###
Mike Lasseter
|
|
|
|
|
|
My requirement is like this.There are 2 different word documents.I have to make word by word comparison in each line of the first document with the second one and pull out the extra/missing word and write the output to a xml document/file enclosed with tags.The extra/missing word can even be a special character like space,comma etc.Is this achievable?Ive tried with .txt file but unable to write a word to a xml file.I used binary reader and writer.Can u help me find a solution for this?
T.Balaji
|
|
|
|
|
Hello
can any one help me to solve my problem. I am doing my work in VB.Net (web application)
1) i want to avoid multiple logins of the same user(that is having same username and password)
2) i want to put one privilege to admin such that he wants to forcibly log out a particular user if that user already logged in to the web application
Regards
disoosa.
|
|
|
|
|
The obvious way to do both is to store who is currently logged in, in your database. Then the admin can remove someone by removing them from the table, and you can check if someone is logged in before logging them in.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Thank you very much christian
but my problem is forcibly logout a prticular user by admin.
The situation is like this
1.One user is logged in from the system in home but failed to logout.
2.he comes office and uses the same web application , but he forgot to log out from the same application at home.
3. Now i want him to logout from the system at home from the application and allow him to work from the office in the application
In short simultaneous login with same userid and password is not allowed
Can you help me
Thanks
disoosa
|
|
|
|
|
Hi,
In my client application,it requires to access a file in the remote server station,which requires authentication(User name and password)in VB. Provide me any sample code that has code to authenticate remote PC file access.
|
|
|
|
|
hi bala,
try to give the user name and password in the appsettings in configuration settings web.config file and try to run.
T.Balaji
|
|
|
|
|
VB Forms or ASP(1/2)?
in ASP you set Impersonation to a specific user account in the web.config. Google it and you'll find many walkthroughs. you can also have your app run in IIS as another user (by defualt your user is annomoyus) in the inetmngr
This is security sensitive stuff so I'd work with a server admin (who knows IIS) when your reviewing possibilities on this one, if it's a work project.
In windows forms an app runs under the context of the user session the app is spwaned from, unless its a service, in which case the user account is set in the installer or the services.msc. Just give the desktop users permissions to the directory, or add them to a group and provide it the needed permissions.
Hope that helps,
Frank
hey...slang is the vernacular for the vernacular...wow
|
|
|
|
|
i want to develop a menu and form based Add-in for MS outlook. i have found some material but was unable to get the real way for visual studio.net can anyone please help me actually i want the complete process from developing to deploying.
Thanks and regards
|
|
|
|
|
I'm looking for ways get my app to wait until a network stream is fully returned. Unfourtunatly NNTP uses differant stream terminators for the output of each command (if any at all), and that makes this a little awkward. My VB app calls an NNTP server via the TCPClient and reads the response. Pretty standard you'd figure. I'm having trouble with the requests that return more than one line of data, however.
Basically it seems that my code is rushing to execute faster than the response comes in so the read loop is terminated because the netstream peek is empty. The response is still comming and if the app would wait a min, it would recieve the subsequent data.
When i step through (or even break for a sec) the code works fine, but if I run through it without breaks, it only reads the first line. Typically I use My.application.doEvents to address these issues in forms but the read code is in a backend classlib.
I've tried some simple threading algorithms (running on a sepperate thread that dosn't sleep, or pausing the main thread) but they don't seem to help either.
If anyone could point me in the right direction on this I'd be most appreciative.
TIA
Frank
hey...slang is the vernacular for the vernacular...wow
-- modified at 3:06 Monday 29th May, 2006
|
|
|
|
|
I'd recommend a mixture of threads and delegates. First thing to do is spawn a new thread for your stream listener "master". The only purpose of this thread is to get it off of the main forms thread so the user will not see a performance hit when it does it's work.
Then, from that thread, you'll launch your additional threads. These threads should be spawned with a reference to a new instance of a class that handles all incoming events. Once that thread is running, it will send and receive all of the data relating to the newsgroup you connect it to.
Now for the delegates fun . In each thread that spawns, you should have a delegate back to the main form that will allow you to update the users gui.
Now, for an explanation of why this will work. When you start the new thread with a socket it will stay open until you specifically close it or the other end closes it. If the other end closes it, it's because of a timeout issue. If a timeout issue occurs on their side then it won't matter because that is a true indication that you're not gonna get anything else from them. The delegate back to the main form will fire the event no matter what is going on. There's no need to set up a loop or anything to monitor. The rest of your code can do whatever it wants and it will fire that event whenever the new data is received.
Now, you seem like the kind of person who doesn't mind research, so here's a list of what to look for:
System.Threading.Thread (will launch the new thread)
Delegates
Sockets
A mixture of those three should give you what you need. Either that, or I'm loosing my mind and I'm just rambling on
|
|
|
|
|
Using VB.Net - I have an Access database. I have created bindings for my textboxes including format and parse delegates. Will display the table fields just fine. Formats the data the way I want. Problem - addnew method does not work. Does not create a new record. Simply overwrites an existing one. What's the right way to add new records with formatted, databound text boxes? Is there an article or best tips you can suggest? I've already poured over this site for one.
Thanks in advance.
JDFA
|
|
|
|
|
Access can be quirky especially with autonumbers so that may be where your issue is
also are you calling <newdatarow> = <datatable>.new<datatable>Row (for strong typped tables)
or <newdatarow> = <datatable>.Rows.newrow (for weak types)
(this gets an appropo autonumber and inits all feilds in the new row with default values)
Befor calling <datatable>.rows.add(<newdatarow>)?
make sure your not specifing the index that the row is added at. let the framework do that.
Hope that helps,
Frank
hey...slang is the vernacular for the vernacular...wow
|
|
|
|
|
Thanks for getting back to me and giving me some things to think about.
I was using me.bindingcontext(<datasource>).addnew and got nowhere with it.
I also tried <dataset>.tables<"tablename">.addnew with no effect. It is an autonumbered table and I wasn't specifying the index. I take it that I want to create a new row, assign the values and then add it to the table.
Question - what is the parse function doing for me then? So far, it only seems to be affecting existing records that I want to edit. Part of my problem may be that I don't understand yet exactly how it is to be implemented.
Thanks a lot. Great site - Incredible info,generous experts.
|
|
|
|
|
Look into Parse and Format.
You use those to modify the on the data in and the out for presentation and storage.
IE: you have a DB that some yahoo created a collumn with "y","Y","n", and "n" in it.
you want to bind it to a checkbox. if the feild was a bit/Boolean, you could directly bind it with the datasource property or by using
me.checkbox.databindings.add(new binding(me.dataset1.<tablename>, "<feildname>", "Checked <or any="" other="" bindable="" property="">"))
...or somthing a lot like that.
as an aside You can do really neat things with lookup tables and comboboxes with this command by binding the display(human readable text feild) and value(the pk feild) members oif the combobox to teh lookup table, and then binding the selectedvalue property to teh real datatables fk feild into the lookup table.
I can't quote you the code to parse (to morph data from the UI to fit the database) and format(for the data coming out of the dataset into the UI), 'casuse I design my databases with some forthought, but basically you create events for the feild parse and format, and within those, you mutate back and forth.
Below are some assorted ramblings with a tip or two buried within them, mainly on binding context and currencymanagers. it isn't directly in your question but if you like check it out.
within your binding context are all your datasiource objects (datasets, dataviews, and datatables) each instance of which has a currency manager that points to and iterates through the datarows within. Currency managers are Great but theres a gotcha. you only get one per instance of a datasourceobject. thats Why I create dataviews to show the datatables in my datasets when I'm binding them. also no more than one control can be bound to a feild on a particular datasourceobject. but you can have multible views sitting atop the same datatable and bind two controls to the same feild but on the other view.
AS a result I always get my currency managers by using
dim thing as CurrencyManager = ctype(me.bindingcontext("<datasourceobject>"),currencymanger)
whenever I need one (and you can just use the whole expression instead of )
Now there are some advanced members to this lib that intellisense won't point out to you by default. I recomend that you disable "Hide Advanced Members" in teht Visual Studio options. My favorite is
ctype(me.bindingcontext("<datasourceobject>"),currencymanger).current.row("<feildname>")
to access the value in a row. not nesecarily the best form but it gets the job done.
have fun,
Frank
hey...slang is the vernacular for the vernacular...wow
|
|
|
|
|
hello
i want to disable only close button of the form and other two button should be enable please tell me how i can do this thing. plz tell me soon thanks
|
|
|
|
|
btnClose.enabled = false
Roy.
|
|
|
|
|
hi
try to use the closing event for your form
Private Sub Form1_Closing(ByVal sender As Object, ByVal e As System.ComponentModel.CancelEventArgs) Handles MyBase.Closing<br />
e.Cancel() = True ' this will stop the form closing <br />
End Sub
Tamimi - Code
|
|
|
|
|
HI guys, I'm a student and need some help with dates in VB.NET. What do I do to verify that date values are input correctly on a form? This includes the following: The day, month and year are entered separately; One cannot (obviously!) be born on day 0 of month 13, or on 29 February 2003. I've never worked with dates and don't know how to go about this. Can someone please help me here?
MichMar
|
|
|
|