But I CAN NOT find a folder with this engine....Has somebody a code to find folders too??
check out this code...
hope u'll get ur answer
give me feedback if this helps u...
regards
SHouvik
But I CAN NOT find a folder with this engine....Has somebody a code to find folders too??
check out this code...
hope u'll get ur answer
give me feedback if this helps u...
regards
SHouvik
Hello Folks, Thanks for viewing this thread....
Finally I have solved the problem....now my application is running from any node connected to my office network...
This thread is now closed..
regards
Shouvik
thanks for your reply.....but I have already tried both techniques in my local host....both worked.....but the same seems to be worked on remote machines also....but it is not working as expected......
running the application on my own server is not the problem for me as well as not the topic to be discussed on this thread...my question was how to run the application from another machine which also resides in the same network as my localhost do....so if you have any solution to this then post.....
thanks...
regards
Shouvik
asp.net and jsp cannot be compared.....both are diff. technologies offering developing static and dynamic websites....its completely depend on somebody's personal thinking whichever he/she want's to use....so proceed with the one you think best suited to you....
happy programming...
Hello Folks,
I have an ASP.Net 2.0 web application which was successfully debugged, published, uploaded and tested on IIS server. But the problem is, I can access this application on my localhost only but when I am trying to access this from some other machine which is also in the same network as my localhost in, it just simple not finding the application.
My machine's name is NODE5. And the name of the other machine is NODE15. I just typed http://localhost/<my virtual dir>/ on my localhost and the application pops up successfully. Then I tried on other machine by typing http://NODE5/<my virtual dir>/. But after hitting enter the following message is displayed on browser :-
Internet Explorer cannot open this webpage.....
Could somebody tell me what is actually causing the problem.....Plzz guys its very urgent....any soon help/rplys will be appreciated...
Thanks for any help.....in advance
regards
Shouvik
could you post what the error is???
i think the autoplay feature of the player is ON in your control. just right click and goto properties and turned it off. then run the code.
i don't know what exactly u r doing. but everything is working fine on my node. just change the syntax from baseurl like :-
mediaplayer1.filename="http://www.voanews.com/wm/voa/europe/alba/alba1700vb.asx"
mediaplayer1.play
and make a settings in properties window :-
showstatusbar=true
then run the code and hit the play button and u'll notice some actions in the status bar of the player. it will first contact with the server,then search for the codecs and install them into ur computer. after this buffering will start and here you go....BINGO!!!!
lets just do this and rply me.
regards
shouvik
it can have possible three reasons :-
1. the msdxm.ocx module is not present in ur OS system directory.
2. your vs2005 software is opened and u hv a form where u have inserted an instance of the msdxm.ocx component.
3. if u r using windows vista then the above command regsvr32 won't work. it will only work less than vista versions.
check whether either of these is happening.
regards
shouvik
btw what about u Sonia??? r u too busy now so u r not making enough time to post replies.
why some one else is posting here on behalf of u!!!
usually vb.net does not support any com components like the .ocx files we all use in vb6 apps. so whenever u need to use these files after adding the same from "choose toolbox items" dialog box, always the register it using the windows registry server utility. u can use the following command :-
regsvr32 <com component name/.ocx file name>
e.g. regsvr32 msdxm.ocx
(pass this command to register the above mentioned component)
u can pass this command from start->run
P.S. the .ocx files that ur machine has all installed in system32 directory of ur OS.
regards
shouvik
instead of using wmp.dll try using msdxm.ocx.
you can include it from com components tab.
just right click-->toolbox-->select choose new item...and browse msdxm.ocx from system32 folder and click ok to add it.
make sure you have registered the component using regsvr32 utility.
regards
shouvik
Hello folks,
I'm getting problems in registering some activex controls(.ocx files) in vista.
To register, i've used the same technique that we usually follow in xp using the following command from run shell :-
regsvr32 <activex control name.ocx>
but it seems some fault is generating over there. The OS itself is giving me some kind of warning that "The ocx module has been loaded but it is not registered successfully."
After this when I try to add this from component dialog within vb6 ide the same msg is displaying.
Is there an alternate approach to manually register ocx files in windows vista....I'm using windows vista home basic and ultimate editions....Plz help me out...
regards
Shouvik
Hi All,
I have to develop an application that needs to send a sms to any cell/mobile using a CDMA connection.This application is for an voluntary organisation, which involves in free medical service.
I appreciate if any one can help me in this regard.
Thanks every one for your help in advance.
YOU CAN VISIT THIS LINK FOR SOME SAMPLE CODE DOCUMENTATION
regards
Shouvik
hello depash, though i didn't suppose to get any more replies on this post but i'm glad to see that u have been benefited from my answer.
well the problem you posted here is a common issue. even i have also encountered it for a long no. of times. in this situation don't blame ur installer. there is no wrong thing or error in it. u need to re-install your windows xp sp2 os then u can retry the installer coz as long from my knowledge this is a system issue and it comes from ur os itself.
one more thing u may also notice that ur installer will ask u to restart the machine so that it can replace existing setup files with newer versions that already present in SP2. so, don't worry. ofcourse ur application will run on SP2. i have made a couple of my projects in Xp pro and installed them in Sp2 and them all gone fine.
so, what i recommended u is to format ur partition and re-install the windows. after it retry to install ur apps. i hope it will run then without a single piece of junk.
ok....lets try it and get back to me whenver u receive any more nuts.
till then...bye n GOOD LUCK...
regards
Shouvik
use like this :-
Public Static str as String
regards
Shouvik
hi realone,
could u tell what have u done so far....
its better if u furnish detail steppings here..
regards
shouvik
thanks for ur help guys......now my problem is solved.......the registry is now successfully snatched from my program....
thanks to _r0ckbaer specially.....thanks buddy your snippet really helped me much....really appreciated..
so, this thread is now closed....
regards
Shouvik
thanks for your reply.......but you have misjudged the thread.
here webservice doesn't refer to any asp.net web service that i'm also going to create apart from my application. here webservice is a free sms sending facility provided by many free webhosting providers that can be used in our application to facilitate smsing.
i have already searched in google in respect of this matter. there i have found some results that a windows application using c# can be build up offering smsing facility by using any one of the following two techniques :-
1. using a GSM modem that is attached to the system via the com port
2. using any webservice (either free or purchasable)
(of the above two techniques i think using a webservice is preferable and i have also found a site which offers a free webservice but i'm not getting the right approach to implement it.......in this sense i want your help with respect to implementation...)
that's why i have posted here this thread because i'm new to c# and just can't figuring out how to start with this......
hope this will make some sense...
so, any one else can give me some replies here.......
regards
Shouvik
Hello folks,
i'm in urgency to build a windows application using c# which can send sms.
So anyone here can tell me or show me some resources to help me out on this problem -->
"how to create an application that can send sms through webservice to indian cell phone nos. only?"
hope to get some positive replies here...
thanks in advance
Shouvik
well apart from the sql server tutorials you also need to know about the ADO technology. This is useful in order to connect your vb6 application to your sql server database and manipulating various back-end operations. there are a lot of resources about ADO are available on the net. But for your convenience THIS IS A VERY USEFUL LINK YOU CAN VISIT TO KNOW ABOUT ADO PROGRAMMING.
check this and get back here when you have more questions.
regards
Shouvik
hello chrisdent1986,
its look like you are working in .NET.......isn't it?
if you are working in .NET platform then you have to implement the ADO.Net classes.......for better replies post your questions to The VB.NET Forum.
now if you wish to continue to work in vb6 then you can use ADO in order to communicate with your oracle server. there are two methods that you can use :- (1) using a data bound control like ORACLE DATA CONTROL or ADODC CONTROL and (2) using ADODB objects and methods. if you want my opinion i'll suggest you to go for the second technique. there you'll get a connection object and using Execute method of this connection object you can easily create any back-end operations from your application. like if you wish to create the user then the following is a sample snippet for you using vb6 syntax :-
just add the following reference from your VB6 IDE->Project->References :-
Microsoft Activex Data Objects <Version No.> Library
Dim gCn as New ADODB.Connection
Private sub Command1_Click()
Dim str as String
Dim username as String, table_space as string
gCn.ConnectionString=<your connection string>
you can create the connectionstring using various approach. the most easiest technique is to use an .UDL file.
gCn.Open
MsgBox "Connection Established."
username=Trim(txtUsername.text)
table_space="myServer_tableSpace"
gCn.Execute "CREATE USER '" & username & "' identified by '" & table_space & "'"
Msgbox "Default user created..."
End Sub
get me if this works for you.
regards
Shouvik
hello zawpai.......
have you benefited from the code i gave you?
is this what you wanted?
has it solved your problem?
did you get your answer?
if your answer to all the questions is YES then mark this thread as SOLVED.
well.......if you still want any more help just do not hesitate.....post right here..
regards
Shouvik
thanks for your replies.
i'll try that on my machine and get back to you as soon as possible.
regards
Shouvik
modify your code as follows :-
Sub reprintlabel(Byval Eqnum As String)
Dim cn As [B]New[/B] ADODB.Connection
Dim rs As [B]New[/B] ADODB.Recordset
[B]Dim str as String[/B]
str="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=[B]c:\DATACHECK.MDB[/B];Persist Security Info=False"
[B]cn.ConnectionString=str
cn.Open[/B]
[B]rs.CursorLocation = adUseClient
rs.CursorType = adOpenDynamic
rs.LockType = adLockOptimistic[/B]
str = [B]"SELECT <YOUR FIELD NAMES> FROM <YOUR TABLE NAME> WHERE <REFERENCE COLUMN>='" & trim(Eqnum) & "'"[/B]
rs.Open Str, [B]cn, adOpenDynamic, adLockOptimistic[/B]
.
.
.
End Sub
hope this helps. compare the BOLDED parts with your code which you were originally posted here. if you still got any problem then post it right here.
regards
Shouvik
yes, u r right. though it is not needed actually but its better to use it. it will truncate all trailing spaces before n after your text if you have accidentally put it.
I want to copy the selected items from listbox1 to listbox2.
I know how to copy all the items but not selected.
Private Sub Command3_Click()
For i = 1 To List1.ListCount
List2.AddItem i
Next
End Sub
Above Code will copy all the items,But I want to copy selected items.
hi mansi, this is the completely code for you. make sure you have set the multiselect property of your listbox control to 2-Extended.
Option Explicit
Private Sub Command1_Click()
Dim i As Integer, c As Integer
If List1.ListCount = 0 Then
MsgBox "No items found."
Exit Sub
End If
c = 0
For i = 0 To List1.ListCount - 1 Step 1
If List1.Selected(i) = True Then
c = 1
Exit For
End If
Next i
If c = 0 Then
MsgBox "Please select some items from the list."
List1.SetFocus
Exit Sub
ElseIf c = 1 Then
For i = 0 To List1.ListCount - 1 Step 1
If List1.Selected(i) = True Then
List2.AddItem List1.List(i)
End If
Next i
End If
End Sub
Private Sub Form_Load()
Dim i As Integer
For i = 1 To 12 Step 1
List1.AddItem MonthName(i)
Next i
End Sub
regards
Shouvik
do you know anything about sql?
do you ever worked with a database server like SQL SERVER or ORACLE?
i'm asking this because there is a lot of things first you need to know before you make any project using any server side rdbms.
first of all clear these things out.....
num1.text --> refers to the textbox where user supposed to enter total wins
num2.text --> refers to the textbox where user supposed to enter total draws
num3.text --> refers to the textbox where user supposed to enter total loses
am I right or wrong???
if yes, then further tell me, how would you like to check whether the values entered are not exceeded 10? will the sum of num1.text+num2.text+num3.text be compared to 10 or something else?
explain more clearly how would you wish to compare the values...
regards
Shouvik
Hello JerryShaw,
Thanks buddy for your reply.
For your kind information, I have already done with this. The key/node under which I need to create a subkey and store a string value look perfectly and in good condiiton. when I try writing to this node manually from regedit it is working without a single piece of problem. The storm is arising when I make approach to do the same kind of thing using my c# code. I don't know what is this causing for.
I have already searched in google. There I have found a good number of examples running the same syntax. But the problem remains same. I must solve it out as my project development is completely stucked for this absurd behavior of my OS.
Is there any alternate approach available?
Could you try this code on your own machine and give me a proper suggestion on what to do next?
regards
Shouvik
no, this code is running on windows xp service pack2.
one more thing, i have already tried setting admin permissions (full access control) to my system account using registry editor's permission setting dialog box. but the result remains same.
any one here can help to solve this matter?
here is a sample search snippet just only for you.....
check this out.....
btw how are you making your connections? this code uses Microsoft ADO.
make sure you have added the followings before try this code :-
Microsoft Activex Data Objects <Version No.> Library
(from Project-->References)
Microsoft Windows Common Controls 6.0
(from Project-->Components)
on your form draw a command button (command1) and a listview control (listview1). configure the listview control accordingly.
create an access database as follows :-
Database Name : books
Database Location : App.Path (same folder as your project)
Table Name : books
Fields : book_id, name, author
Option Explicit
Dim gcn As New ADODB.Connection
Private Sub Command1_Click()
Dim str As String
Dim rs As New ADODB.Recordset
Dim li As ListItem
ListView1.ListItems.Clear
str = "select * from books order by book_id"
rs.CursorLocation = adUseClient
rs.CursorType = adOpenDynamic
rs.LockType = adLockOptimistic
rs.Open str, gcn, adOpenDynamic, adLockOptimistic
If rs.RecordCount > 0 Then
rs.MoveFirst
While Not rs.EOF()
With ListView1
Set li = .ListItems.Add(, , (rs!book_id))
li.SubItems(1) = rs!Name
li.SubItems(2) = rs!author
End With
rs.MoveNext
Wend
End If
If rs.State = adStateOpen Then rs.Close
Set rs = Nothing
End Sub
Private Sub Form_Load()
Dim str As String
str = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & App.Path & "\books.mdb;Persist Security Info=False"
gcn.ConnectionString = str
gcn.Open
End Sub
don't forget to give me your feedback.
regards
Shouvik
hello zawpai......look in the attachment.
there is a code for you showing how to read and write using windows registry.
when you run the code the login form opens and it will ask you to enter new username & password. enter those and click save. next time you run the program you can login using the previously stored info. well this is just a sample snippet. this is not all. this code can be made more advanced and secure based on program requirement.
check this out and give me your feedback. if you got any questions ask me here.
regards
Shouvik
why .dat or .txt file?
whats wrong in storing the login info in database?
after all they are sensitive info and storing them in a normal file in textual format can lead other users to easily view or modify them.
even storing the passwords in registry can be a good option. just make sure that you have taken sufficient caution before making your move to play with your os.
Hello Folks,
I'm trying to write a program though which I can access my system registry. Both reading and writing actions have been encapsulated. Among these I have successfully done with reading a key value from my registry. But the storm arises when I make my move to write to registry. This is the code which I used for creating a key and then storing a string type value....
using Microsoft.Win32;
Private Void cmdRead_Click()
{
RegistryKey HKCU=Registry.CurrentUser;
RegistryKey subKeys=HKCU.OpenSubKey("Software\\VB and VBA Program Settings\\Company\\");
[B]RegistryKey newSubKey=subKeys.CreateSubKey("Login Status");[/B]
newSubKey.SetValue("Status","Logged In");
newSubKey.Close();
subKeys.Close();
HKCU.Close();
}
I'm getting an exception in the BOLDED line. This is the exception which I'm getting :-
"UnAuthorizedAccessException"
"Can't write in to the registry key."
Experts in C# plz help me to sort out this problem....
Thanks in advance...
regards
Shouvik
Plz sonia ....
dear,
why are you not accepting my invitation? plz do it. i'm very much excited to chat with you.
plz do it and come online tonight after 10. i'll be waiting only for you.
PLZ DEAR MUJHE AUR MAAT RULAO!!!!
shouvik
hi Shouvik ,
After doing the changes as suggested by you,Result is not appropariate.
Private Sub Command1_Click()
Text1.SelText = UCase$(Text1.SelText)
Label1.Caption = Text1.SelStart + 1
Label2.Caption = Trim(Text1.SelLength)
End SubIn label1, 11 is displayed & in label2,still 0 is displayed.
look out the following :
Private Sub Command1_Click()
Text1.SelText = UCase$(Text1.SelText) --->not needed
Label1.Caption = Text1.SelStart + 1 ---> needed
Label2.Caption = Trim(Text1.SelLength) ---> needed
End Sub
In listbox property MultiSelect, what is the diff.b/w simple & Extended,cz in both the cases items are selected using CTRL+MOUSe.
Simple :
you can select non-adjacent items without pressing and holding the CTRL key. Just click on any item and it will be selected. again click on it to make it deselected. actually in this case CTRL key has no role.
Extended :
here you can't select multiple items just by clicking on it. to select multiple items you need press and hold the CTRL key and then click mouse on items to select or you can also press and hold the SHIFT key and click on items in order to select a continuous row of items.
regards
Shouvik
1) Single Line Textbox can have a horizontal scrollbar-i READ FROM D BUK.
But no scrollbar is going to attached with single line textbox. Can a single line textBOX HAVE hor. scrollbar.
In normal condition -->NO. but can be implemented using API functions.
2)Selstart and SelLength
Private Sub Command1_Click()
Text1.SelText = UCase$(Text1.SelText)
Label1.Caption = Text1.SelStart
Label2.Caption = Text1.SelLength
End Sub
rectify the code as follows :-
Private Sub Command1_Click()
Label1.Caption = Text1.SelStart + 1
Label2.Caption = Trim(Text1.SelLength)
End Sub
now, there probably you can have a question, "why selstart+1?" this is because selstart takes value from 0. so to get WYSWYG position you need to add 1 to it. so. when select "have" from "sonia have done engineering, selstart will return 6 and then adding 1 will give exact value.
regards
Shouvik
ok.......i will definitely give you the code.
but could you tell me one thing?
how do you wish to store the usernames & passwords in your sql database? will they be pre-defined or you need a user creation form for some kind of signup process and login...
regards
Shouvik
can you be able to print the content from ms-access?
ok.......could you tell me...
do you have a physical printer attached to your system?
if no then install the default printer for your os. it is Epson Ex-1000. i hope you know how to handle that. try this and come back with ur results..
regards
Shouvik
what are you trying actually?
using that Printer.Print command in your VBA program to print some text?
this method is applicable in VB6 programs only.
Hi, VidVB6,
in order to work with mssql you need the following reference (this is must) :-
Microsoft ActiveX Data Objects <version no.> library
btw, could you show me what have you got on your hands?
regards
Shouvik
Error on that code
.text is unrecognised
that is strange!!!
ok.....then try this,
Dim str as String
str=lstReorder.List(lstReorder.ListIndex)
Printer.Print trim(str)
might be you have not installed your printer driver?
have you??????
pay???? is that right/...? but why....... and ur right but how about a simple code to debug us
what did you mean by this?
would you mind in posting your thoughts in simple english?
riched limit of the product
what does it sense?
Printer.Print lstReOrder.text
so what have you tried so far for this?