|
Hi,
you can take Imagebutton and give imageURL = "your ico file"
simple
Thanks,
Sun Rays
To get something you must have to try once.
My Articles
|
|
|
|
|
hi all i am working on a project that will store and display and print yellow pages.
please suggest me what control should i use to get it done.
i am not interested in crystal report.
my requirement is to display the print the whole data in database in less time as possible.
some body has any idea.
help everyone
Falling down is not defeat...defeat is when u refuse to get up...
|
|
|
|
|
Use the PrintPreviewdialog if you want to print something not allready on the screen, otherwise use the printform control, you can download it from microsoft. It's in the vb.net powerpack.
|
|
|
|
|
i need the code for login to windows using VB.NET2003????
for example, when your computer is standby and you want to login again while program is running
|
|
|
|
|
1. Do not cross post.
2. Give your message titles some meaning. We don't care if it's urgent or you need help.
3. We are not just going to hand over code to you. Either search for it, or write it yourself.
|
|
|
|
|
leckey wrote: Current Rant: "Sally Field Must Die!"
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
Thanks for pointing that out--I need to update it!
|
|
|
|
|
Hi,
I have made a custom control, the control has only 1 textBox and one button.
But i can't show the control in normal way .show() . I need to show the control in a panel so i'm using this code:
If treeView1.Nodes.Item("nodeTarife").IsSelected Then
Dim k As New conTarife ' this is the custom control
SplitContainer1.Panel1.Controls.Add(k)
k.Show()
End If
What am I doing wrong?
Thanks!
|
|
|
|
|
From the code you've posted, you haven't done anything wrong. You really should even need the Show line. The only thing I can think of, without blaming anything on the control itself, is that Panel1 of the SplitContainer is hidden on the left side of the Split.
|
|
|
|
|
Cannot open View Designer in Visual Studio.And My View Designer show this
Message!!!!!
Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
Hide
at System.RuntimeType.InvokeDispMethod(String name, BindingFlags invokeAttr, Object target, Object[] args, Boolean[] byrefModifiers, Int32 culture, String[] namedParameters)
at System.RuntimeType.InvokeMember(String name, BindingFlags bindingFlags, Binder binder, Object target, Object[] providedArgs, ParameterModifier[] modifiers, CultureInfo culture, String[] namedParams)
at System.ComponentModel.Design.Serialization.CodeDomSerializerBase.DeserializeExpression(IDesignerSerializationManager manager, String name, CodeExpression expression)
at System.ComponentModel.Design.Serialization.CodeDomSerializerBase.DeserializeStatement(IDesignerSerializationManager manager, CodeStatement statement)
|
|
|
|
|
Does this happen on any other machine you might have around? Sounds like potential for bad memory.
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
|
|
|
|
|
Please, Help me if anybody can!!!!!
I want to generate own Report from my project,not from Crystal report Software.
I used following control in VB6 to generate Crystal.
CRViewer.This control can get Crystal Report Viewer component.
Like this VB6 code,i am using this control in VB.Net,
Friend WithEvents crvReport As CRVIEWERLib.CRViewer
Me.crvReport = New CRVIEWERLib.CRViewer
And my form has Preview command button to preview own report from this form.If user click this Preview button ,user can preview his own report.For
this ,i am using this code in cmdPreview_Click().
Call frmpReport.ShowReport(m_astrType, m_strColumn, m_aintWidth, m_astrFSource, blnSave)
,but my project face with problem in this line.
Call frmpReport.ShowReport(m_astrType, m_strColumn, m_aintWidth, m_astrFSource, blnSave)
Error Message is
Unable to cast COM object of type 'CRVIEWERLib.CRViewerClass' to interface type
I will waiting for your answer.THANKS For ur Answer.
|
|
|
|
|
You posted this same thing the day before. Obviously, no one has a solution for you.
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
|
|
|
|
|
I am using ASP.NET to create this datagrid, but I am trying to do all of the code in the VB code section and not the html section.
I am building a datagrid as follows:
3 Text Columns
1 Link Button Column
1 Push Button Column
In Property Builder, I have set the "Command Name" for both the Link Button and Push Button columns to "Select". This is so that when the user clicks on the column, I can use the SelectedIndexChange event and determine what row they are clicking on. The only problem is that in doing so, I cannot determine the column they are clicking on. Is there any code I can use on the VB side in the datagrid SelectedIndexChange sub to determine what column was clicked in? Anything from the header of the column or even just the column index itself. The SelectedIndexChange sub is written such:
Private Sub dg_LastSevenDays_SelectedIndexChanged(ByVal sender As
System.Object, ByVal e As System.EventArgs) Handles
dg_LastSevenDays.SelectedIndexChanged
End Sub
When I try to see what data I can get from 'sender' or 'e', all they reference is the datagrid itself and not anything within it.
Search for solutions online, I found a few that would work if this was a compiled application and not a web application. Has anyone run into this before?
David
|
|
|
|
|
How can I change my language keyboard into Arabic only
Ahmed hassan
|
|
|
|
|
In a program or in windows?
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
In a program in textbox
Ahmed hassan
|
|
|
|
|
You can set the default settings of windows to Arabic from regional settings...
This will make whole of ur system in Arabic even ur start button will com on right and time will come on left... also all the menus will start from right and the close and full screen button will be on left...
if u want to use Arabic setting in ur application and ur application is a Vb / VB.net application u have to first use some Arabic fonts and change the right to left property to true for all controls...
Note: At times Arabic is not by default available on the system u have to put the windows CD again and add Arabic settings..
Good Luck
|
|
|
|
|
Hello ahmed!
here is a little snippet I included in my DLL and I run this method in every TextBox the user enters/hovers/focuses whatever.
just change the IL to the appropriate language, in some times (like in am e-mail content TextBox you would use the english one:
<br />
#Region "SetLanguage"<br />
Public Enum e_LanguageStr As Byte<br />
Heb = 1<br />
En = 2<br />
End Enum<br />
''' <summary><br />
''' Sets the keyboard language<br />
''' </summary><br />
''' <param name="Language">a string value to determine which language to set, use "Heb" for Hebrew and "En" for English</param><br />
''' <remarks></remarks><br />
Sub SetLanguage(ByVal Language As e_LanguageStr)<br />
If Language = e_LanguageStr.Heb Then : InputLanguage.CurrentInputLanguage = InputLanguage.FromCulture(New CultureInfo("he-IL", True)) <br />
Else : InputLanguage.CurrentInputLanguage = InputLanguage.FromCulture(New CultureInfo("en-US", True))<br />
End If<br />
End Sub<br />
#End Region<br />
Shimi
|
|
|
|
|
oops sorry,
include this code in your namespace:
Imports System.Globalization
Shimi
|
|
|
|
|
thank you for this help
Ahmed hassan
|
|
|
|
|
Hi all,
I have a DataGridView for Vendors. And also, I have an update button; the code I put inside to update my Vendors rows is as following:
Me.VendorsTableAdapter.Update(Me.VendorsDataSet)
Me.VendorsDataSet.AcceptChanges()
And I tried the same thing on Details view, and it do not work.
I researched and seems to find that AcceptChanges only work on DataGridView (hope its reliable).
Does anyone know what would be for Details view? (the codes/variable in particular)
I hope the info I gave are not too vague. Any help is greatly appreciated. Thanks!
telly
|
|
|
|
|
Hi,
Please know that AcceptChanges method accepts or commits all the changes that have been made to the Dataset since the last time the method was called or since the Dataset was loaded. AcceptChanges method sets the original value of all fields to the current value. In effect, the new DataSet is the same as the one you would get by reloading it from the database. If your dataset is not excessively large, you can reload it from the database and save yourself some serious debugging.
When you call AcceptChanges on the DataSet, any DataRow objects still in edit-mode successfully end their edits. The RowState property of each DataRow also changes; Added and Modified rows become Unchanged, and Deleted rows are removed. If the DataSet contains ForeignKeyConstraint objects, invoking the AcceptChanges method also causes the AcceptRejectRule to be enforced.
For Code snippet please visit the following link:
http://visualbasic.about.com/library/weekly/aa052403f.htm[^]
I hope this helps.
Regards,
John Adams
ComponentOne LLC
|
|
|
|
|
Hi,
Thanks for the reply! But I do not really understand what paragraph 2 meant..
"If the DataSet contains ForeignKeyConstraint objects, invoking the AcceptChanges method also causes the AcceptRejectRule to be enforced." -- You mean foreign key in database? But I think my database have a foreign key but AcceptChanges can be used on my DataGridView. (I decided to use that)
telly
|
|
|
|
|
Hello every one. I am defining my problems in detail
I have a vb 2005 Express application
I have been trying to make the payments functionality better
What my intention is to add a new grid and have 4-5 columns
- Serial number
- Date
- Type / Details
- Quantity
- Amount
With all other fields I am able to manage, I am having issues with only one of them
Type/Details
Hear I want to have a combo box which has all the predefined options from DB. On select of any option I want the appropriate price to come
I there is something which is not defined in DB the user should be in a position to type and enter a price also, that is, I want a drop down combo box not a drop down list
User should be in a position to add new rows also
How can I do it..
modified on Thursday, December 27, 2007 6:33:03 AM
|
|
|
|