|
StartsWith determines whether the beginning of the string matches the specified string
"lo" is not the start
For your case you might wanna use IndexOf
|
|
|
|
|
thanks alot for your response
with best wishes
|
|
|
|
|
how to make a keypress event in vb.net, in the case i am using keypress if i am pressing the number key means that number key is unlocked and other key will be locked
|
|
|
|
|
The standard textbox control comes with a KeyPressed event, just subscribe to it.
Regards
Senthil
_____________________________
My Blog | My Articles | WinMacro
|
|
|
|
|
how to arrange the grid control display in the input order using ole db
|
|
|
|
|
Hi,
I have a visual Basic 6.0 project and wanted to add to it couple of ActiveX Dlls.
But when running the Project (Group) the forms that were created in the DLLs, open outside the Main MDI parent.
How can I set these DLLs as MDI children of this main MDI.
|
|
|
|
|
.DLL's as MDI Child??? Forms are MDI Children, not .DLL's.
Of course the forms created in the .DLL's are created outside the MDI Parent. You didn't set the MDI Parent property of the child forms to anything, so they are not children of any form.
You have to add this functionality into your .DLL's so you can set the Parent property from outside the .DLL's.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Hello All,
I need help to import sub into application.
First i will give a little detail how my application is set so you can help me (And so if i ask this question wrong you may be able to sift through the newbieness)
I have a componts folder that holds all of my class files (Like my comtrols, alot of my controls have their own namespace, class file)
My connection string is in my web.fig file so when ever i create a connection in my class files in my componets folder i write it like so--->... Dim cnn As New SqlConnection(ConfigurationSettings.AppSettings("cnn")) ...
When ever i call the function that returns a result for my control i do it like so-> ... Dim GetCompanyProductsFromTopMenu As New ConstructionSuperCenterCom.WindowTreatmentByCompany
dlCom16.DataSource = GetCompanyProductsFromTopMenu.DataListForProductDisplayFromTopMenuSelection(IDCompany, IDCompanyProductCategory)
dlCom16.DataBind()...
Now, My question here is, how do i get to this sub and correctly implement it?
What i am doing here updating, editing, deleting info from a datagrid and i want to move all of this code to my componets folder and make a call from the behind file to the componts in the folder where needed in the behind file.
============Here is a piece of the code from the behind file that i am wanting to move to the componets folder,-----
Sub dgProducts_Edit(ByVal sender As Object, ByVal e As DataGridCommandEventArgs)
dgUpdateProductRestrictions.EditItemIndex = e.Item.ItemIndex
BindData()
End Sub
Sub dgProducts_Cancel(ByVal sender As Object, ByVal e As DataGridCommandEventArgs)
dgUpdateProductRestrictions.EditItemIndex = -1
BindData()
End Sub
Sub dgProducts_Update(ByVal sender As Object, ByVal e As DataGridCommandEventArgs)
'Read in the values of the updated row
Dim iProductID As Integer = e.Item.Cells(1).Text
Dim dblPrice As Double = CType(e.Item.Cells(2).Controls(0), TextBox).Text
Dim strName As String = CType(e.Item.Cells(3).Controls(0), TextBox).Text
Dim strDesc As String = CType(e.Item.Cells(4).Controls(0), TextBox).Text
**How would i call the sub dgProducts_Update from the behind file?
Like This----> Dim MyUpdate as new (This would be namespace --->ConstructionSuperCenterCom)
MyUpdate.dgProducts_Update <----------????? i tried this but did not all the way work..
Can anyone help me on this???
Thank you...
Erik.,,..
|
|
|
|
|
Hello All,
I am following an example from an online how to datagrid, bla, bla, anyway, i have a question related to formating money
Here is the datacolumn that the formating is taken place in
<asp:boundcolumn headertext="Price" datafield="UnitPrice" itemstyle-horizontalalign="Right" dataformatstring="{0:$#,###.##}">
**My quesion here is, what is the difference between {0:c}, and DataFormatString="{0:$#,###.##}???
They both seem to produce the same result...
Thanks again,
Erik,,,,,
|
|
|
|
|
{0:c} will use the currency format specified by the CurrentUICulture's NumberFormatInfo which is determined by the Windows locale settings. For U.S. English it would be equivalent to the {0:$#,###.##} literal specification, but if your locale was different, it would format according to the appropriate currency for that locale (Pounds Sterling, Euros, Yen, etc. and would adjust the puctuation as appropriate (some exchange the roles of , and .). Your literal specifier would give the same results regardless of locale setting.
Absolute faith corrupts as absolutely as absolute power
Eric Hoffer
The opposite of the religious fanatic is not the fanatical atheist but the gentle cynic who cares not whether there is a god or not.
Eric Hoffer
|
|
|
|
|
Thank you,
I will store this information up in my folder vb.net collections,..
|
|
|
|
|
i had made an active x controll that rool the dice on mouse click. now i want that it should be added to the web page tell me how to add any good article or the website.
ddd
|
|
|
|
|
How to gettickcount?
In VB 6.0 ,we could use API of windows by dll.
Now it is impossible in vs.net.
Thanks!
|
|
|
|
|
The System.Environment.TickCount is the property you are looking for.
Regards
Senthil
_____________________________
My Blog | My Articles | WinMacro
|
|
|
|
|
When press ENTER key in keyboard, this button will be seleted.
Thanks!
|
|
|
|
|
Set the AcceptButton property of the form to your button. That would do the trick.
Regards
Senthil
_____________________________
My Blog | My Articles | WinMacro
|
|
|
|
|
I m doing a project on server client appln. I want to make my program so that only administrator can have the databases and the forms on clients should get connected with the admin appln. The code is in VB6.0.
Almost the program is completed but this is the need. Plz help me soon .
Aditya
|
|
|
|
|
If I read your question correctly, this is the norm. The database(s) sit on a server that noone has physical access to unless your the administrator. Your client application connects to the database or database server app, depending on how your application is written.
But, uhhh, you should have designed and written your application(s) with this mind from the beginning. If I understand the question correctly, this is a base design issue that should have been answered and designed for on Week #1, not just before your app is completed.
If your app is almost done, what DBMS are you using and where is the database located?
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
I have a data table of which, one column has been made unique.
Datatable.Columns("ColumnName").Unique = True
This table has been assigned to a Datagrid. While running the application when unique constraint is violated it displays an exception massage. Is it possible to catch this exception massage and customize according to my wish?
|
|
|
|
|
Check
DataRow.RowError property,DataTable.HasErrors and DataRow.HasErrors properties
|
|
|
|
|
Emergency!!!!!!!!! Urgent help required please help me ,
I've been posting requests for 2 year but no one has replied to any of my post . This time it's urgent i am getting mad as it's my final year project's problem. I am developing a network simulator for this on the client side i need to disable user interaction with windows(98,2000,XP etc) I've tried many stuffs but fail to manage things , any one can help me how to stop user interaction with windows .
One solution might work , it is to load my client application before windows completely loads or ever log on.
But i donn't know how to do in vb.net please help me
|
|
|
|
|
Make it a windows service (inherit from the Servicebase class).
Absolute faith corrupts as absolutely as absolute power
Eric Hoffer
The opposite of the religious fanatic is not the fanatical atheist but the gentle cynic who cares not whether there is a god or not.
Eric Hoffer
|
|
|
|
|
It's impossible to load your app before Windows starts. You'll have to write your app as a service. It'll load before the user logs on.
In order to completely stop the user's interaction with the Windows, you'll have to hook the keyboard and mouse and eat the those messages.
What do you mean by "network simulator"? And why do you have to disable user interaction?
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Actually i want to Automate a small network with server having four clients , user will log on to my application if it starts (i can hope) before windows and will be granted access to system resources according to their user rights assigned by application running on the server side . To get certain rights and permissions user have to register themselves through main menu on client side . Like you may have seen cybercafe pro (a netcafe' manager at http://www.cybercafepro.com) Uer will not (rather souldn't ) be able to close my application (only admin) .
|
|
|
|
|
TheOnlyFalcon wrote:
my application if it starts (i can hope) before windows
Not even a chance in Hell.
TheOnlyFalcon wrote:
Like you may have seen cybercafe pro (a netcafe' manager at http://www.cybercafepro.com) Uer will not (rather souldn't ) be able to close my application (only admin) .
I seriously doubt they did it the way your envisioning.
Windows does support being limited to Kiosks. You can't complete all of this in code. You're going to have to use Group Policies to lock Windows down to do some of this. I would highly suggest picking up the Windows XP Resource kit for more information.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|