|
Does VB6 offer a set class, or a dictionary/hashtable ? If not, then is there a method you could use to search the array for each string before you add it, to make sure it's not there ?
VB6 sucks BTW, I'd recommend moving to VB.NET as soon as you get the chance
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
For each item you are about to put into the "distinct" array, you have to search the array to see if it's already in there. If it's NOT in there, add it. If it is, move on to the next item in your srouce array.
|
|
|
|
|
Hi I have a login page...,
After enter that username,pwd it will go to default.aspx page...,
In that default.aspx page i have displayed some usercontrols and one iframe tag...,
In that iframe i have displayed other aspx page...,
In that aspx page i have said when the session(userid)=0 go to login.aspx page like...,
Code:
If Val(Session("userid")) = 0 Then
Response.Write("Your Session Expired.....")
Server.Transfer("login.aspx")
End If
so when the session expires it showing the login.aspx page in inside the default.aspx page iframe control...,
But it have to show when the session is expires login.aspx page on whole page...,
It mean it have to come outside of the default.aspx page also...,
So i have used javascript & modified code as...,
Code:
If Val(Session("userid")) = 0 Then
Response.Write("")
Response.Write("window.open('login.aspx','_top')")
Response.Write("")
End If
But in this i am getting error inside the iframe tag...,
I hope u peoples understand my probs,
Plz help me to solve this...,
Advance thanks,
Regards,
Magi
|
|
|
|
|
Dont cross post, you already have this same query in the ASP.net forum (which is the better forum for issues like this) with someone there trying to help you.
|
|
|
|
|
hi all
i m trying to zoom a tab control with all sub controls on it like textbox, another tab control, label, group boxes.
i already have tried the for each loop as told by dave in my early post.
can some one tell me another way to do the job, i am thinking about to increase the pixel size of the control or some thing like that.
thanks in advance
help everyone
|
|
|
|
|
I really can't add anything to what Dave Traistor already said. I really don't have a good idea of exactly what you're trying to do either. What do you mean by "zoom"?? Maybe if you draw out what it's supposed to look like before and after the zoom??
|
|
|
|
|
Hi,,,,
I am using VB6, could any one help me how to enter unicode strings(chainese language)to the string table of a VB application? And how to dispplay them on a command button?
thanx in advance!
birajendu
CyberG India
Delhi
India
|
|
|
|
|
|
Hi i am using Vb 2005 and using some other command line based applications to take some “file backups”.
I am able to execute the command by using the shell function.
My issue is that i want to know what is the status returned back. One way is to redirect the output of the commands to a file and read....
Is there any other way ???
Regards
Nishkarsh
|
|
|
|
|
If you're using the Process class to launch this, there's a WaitForExit method you can call that will block your code until the process you launched exists. When that call returns, then you can look in the ExitCode property of the Process object you created.
You can also redirect the output of the console app to your application and read it like you would a Text file. Check out the StandardOutput property of the Process class and the RedirectStandardOutput property of the ProcessStartInfo class.
|
|
|
|
|
Hi i am stuck up at a very small point in my new vb 2005 Express edition application, I want to have right aligned labels (text aligned to right side of label) so that when there is a large string added to the text of labels they expand on left side...just like the way they used to do in VB6
Note: I had set the auto size property of labels as true
Regards
Nishkarsh
-- modified at 2:30 Friday 26th October, 2007
|
|
|
|
|
just put the property 'textalign' to the value 'right' and that should do it
If my help was helpfull let me know, if not let me know why.
The only way we learn is by making mistakes.
|
|
|
|
|
Hi thanks for your suggestion but unfortunately it dose not works the way i wanted...
I aligns the text to the right side of the label but my idea is different...
I am having a small Label which i populate at runtime... i want it to grow on left side not on right, when i put data in it..
Regards
Nishkarsh
|
|
|
|
|
There should be a TextAlign property int he label.
this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
|
|
|
|
|
Hi thanks for your suggestion but unfortunately it dose not works the way i wanted...
It aligns the text to the right side of the label but my idea is different...
I am having a small Label which i populate at runtime... i want it to grow on left side not on right, when i put data in it..
This used to be the case in vb 6 if i am not wrong when we make a label left aligned
|
|
|
|
|
You can always calculate the location and size of the textbox yourself, I guess.
|
|
|
|
|
Hi, I would set TextAlign to right, AutoSize off, and give sufficient Width.
Luc Pattyn [Forum Guidelines] [My Articles]
this months tips:
- use PRE tags to preserve formatting when showing multi-line code snippets
- before you ask a question here, search CodeProject, then Google
|
|
|
|
|
Option Explicit
Dim Starttime As Date
Dim Endtime As Date
__________________________________________________
Private Sub Command1_Click()
Starttime = Format(Now, "HH:mm")
Timer1.Enabled = True
Form1.Print Starttime
End Sub
__________________________________________________
Private Sub Command2_Click()
Endtime = Format(Now, "HH:mm")
Timer1.Enabled = False
Form1.Print Endtime
End Sub
____________________________________________________
Private Sub Command3_Click()
Form1.Print Minutesdiff = (Endtime - Starttime)
End Sub
_____________________________________________________
Private Sub TxtEnd_Change()
End Sub
______________________________________________________
Private Sub txtStart_Change()
End Sub
_______________________________________________________
i have created this project with three command button two textbox and three level and a form. command1 is for login time ( Start Time) and command2 for logout button (EndTime), and command3 for calculating difference Between EndTime and StartTime. so that i could calculate the amount of billing. i.e.
0 > 30 minutes = 10 Rs.
31> 60 minutes = 20 Rs.
further i want the the log in ang Log Out detail appeares in the textbox but i dont get it how
so i have made it default apearance on the form itself.and when the total command3 button is click it should show the difference of Time in HH:MM format
help me solving it.
zrch
|
|
|
|
|
Solving what?
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
|
|
|
|
|
i want to create a Log In and Log Out Program for a Cyber cafe which calculate the time period and the amount of surfing, including nos of printing, nos of scanning and total Amount
zrch
|
|
|
|
|
OK, but what are your problems (i.e. be more specific)?
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
|
|
|
|
|
How to do format painter in vb.net for example msword there is a option in fonts
Rishi Dubey
|
|
|
|
|
Sorry, but I have no idea what you just asked for. Any drawing you want to do, do in your forms paint event. If you want to change the font a control uses, it will have a font property. If that doesn't help, try explaining it again.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Open Microsoft word(2007) after opening msword(2007) on left hand side there is option of cut, copy, and paste after paste there a logo of brush that option is format painter. i want to make that in vb.net pls help me
|
|
|
|
|
It is suggest to use Createobject method to create word object then u can do anything like open, close, print, save, saveas, etc.
If don't have it let me know
Prasmin Mehta
|
|
|
|