|
I have to include one popup on my Page for confirmation of delete operation,Which will have ok and cancel buttons,
Please help me at earliest.
|
|
|
|
|
This post should go into the ASP.NET or Web Development section...
Anways: use the JavaScript's "confirm()" function (google for details)
--------------------------------------------------------
My portfolio & development blog
Q:What does the derived class in C# tell to it's parent?
A:All your base are belong to us!
|
|
|
|
|
Hello,
vb 2005, sql server 2005, winforms.
My problem is that how do I find the index of the number of the checked items. The code below is what I have done so far. However, I con't find any properties that will allow me to find this index number. Any advice would be more grateful
For example, if the has checked indexes 2, 5, 10, 15. How can i find the indexes of the checked items.
<br />
Dim i As Integer <br />
Dim dt As New DataTable() <br />
Dim dr As DataRow <br />
Dim userID As Integer <br />
<br />
dt.Columns.Add("UserID") <br />
dt.Columns.Add("GroupID") <br />
For i = 0 To Me.chkLstSecurityRoles.CheckedItems.Count - 1 <br />
dr = dt.NewRow() <br />
dr("UserID") = userID <br />
dr("GroupID") = 'The index number of the checked item that have been clicked<br />
Next<br />
Thank for you help in advance,
Steve
-- modified at 4:26 Monday 13th November, 2006
|
|
|
|
|
I had a similar problem a long while ago, cant remember exactly how to help you. Lol. If you search this forum, however with the author as "ANZAC", you should find the thread and the title will say something about checklistbox.
Posted by The ANZAC
|
|
|
|
|
Hi
Is there any way to program a console application in VB6
One more thing
Is ther any way to have command line compilation in VB6
Thnks in advance
bye
pitchu
|
|
|
|
|
Hi
You can certainly write console applications using VB6 (just write your code in a module and have it called in the app startup) but why would you want to use VB6 for this purpose?
Chandra
|
|
|
|
|
Hi,
I want to hide IE's menubar, toolbar and addressbar while my home page will load. can anyone help to resolve this with vb.net?
TC
|
|
|
|
|
Hi,
I think you will have to use javascript. When opening new window options are available for hiding menubar, toolbar and addressbar.
Hope this helps.
"A good programmer is someone who looks both ways before crossing a one-way street." -- Doug Linder
coolestCoder
|
|
|
|
|
Can u Give me the example of the same??
v
|
|
|
|
|
Hi,
Here is an example -
window.open("http://www.w3schools.com","_blank","toolbar=yes, location=yes, directories=no, status=no, menubar=yes, scrollbars=yes, resizable=no, copyhistory=yes, width=400, height=400")<br />
I copied it from here[^]
http://www.w3schools.com/[^] is a good site for learning HTML and scripting.
Have a look at the site.
"A good programmer is someone who looks both ways before crossing a one-way street." -- Doug Linder
coolestCoder
|
|
|
|
|
I am using the mciSendString method in my project where i am unable to get the length of the wave file playing.Help me.....
Framework version is v1.1,Visual Studio .Net 2003
mciSendString("open c:/MyMedia/Babu.wav type waveaudio alias song","MCI_OPEN",128,0)
mciSendString("set song time format hms","MCI_SET_TIME_FORMAT",255,0)
mciSendString("status song length",rs,255,0)
mciSendString("play song from 1 to 6000 wait","MCI_PLAY",255,0)
Advance thanx.
C.Babu B.E.,
-- modified at 0:50 Monday 13th November, 2006
|
|
|
|
|
Hello,
I am using vb 2005 and sql server 2005, windows form.
I have a checkedlistbox that is populated from a database. See code below. I am wondering what is the best way to save the items that have been clicked to the database.
Private Sub loadGroups()<br />
Dim objGetGroups As New BL_Groups()<br />
Dim ds As New DataSet()<br />
ds = objGetGroups.getAllGroups()<br />
Dim dt As New DataTable()<br />
Dim i As Integer<br />
dt = ds.Tables(0)<br />
<br />
Try<br />
For i = 0 To ds.Tables(0).Rows.Count - 1<br />
Me.chkLstSecurityRoles.Items.Add(dt.Rows(i).Item("Privilege")).ToString()<br />
Next<br />
Catch ex As Exception<br />
MessageBox.Show(ex.Message)<br />
End Try<br />
<br />
End Sub<CODE><br />
Is it good to put them in to an array and them to a store procedure. <br />
<br />
If the user clicks 20 items, then I would have to do 20 inserts. That doesn't sound too efficient. <br />
<br />
The code I have for finding the checked items is below<br />
<CODE> Dim i As Integer<br />
Dim strChecked As String<br />
<br />
For i = 0 To Me.chkLstSecurityRoles.CheckedItems.Count - 1<br />
<br />
strChecked = Me.chkLstSecurityRoles.CheckedItems(i).ToString()<br />
Next
At the moment I am using seeing that the right items are correct, that is why i have a string value.
However, my problem is what is the best way to save this to a database. Any code examples would be grateful.
Thanks in advance,
Steve
|
|
|
|
|
hi , iam college student from indonesia,could anyone know How Syncronize Outlook Address Book P2P via bluetooth, i was search about document but i don't found it, i hope you all can help me by give suggest,source, or link, thanx contact me at <tebas_bush@yahoo.com>
|
|
|
|
|
My Previous message 0n the 26 october 2006
Hi, using VB net(2003) I have 2 questions. First how to change dynamically the property of textAlign in a textBox, see my ex: property of textAlign in the textBox1 is already set to the right, what I would like to do is when I change the value in that txtBox would be that data move to left, and after I finish then hit tab button on keyboard data move back to the right. My second question is how to set a value like zero 0 as a default in that same textBox only when that textBox is empty. Thank you in advance for your help.
Your Answer
You just need to capture the events: Enter and Leave
> This code might help you:
>
> Private Sub TextBox1_Enter(ByVal sender As Object, ByVal e As
> System.EventArgs) Handles TextBox1.Enter
> Me.TextBox1.TextAlign = HorizontalAlignment.Left
> End Sub
Private Sub TextBox1_Leave(ByVal sender As Object, ByVal e As
> System.EventArgs) Handles TextBox1.Leave
> Me.TextBox1.TextAlign = HorizontalAlignment.Right
> End Sub
If you are using this code many times, you might wanna implement this code
> in your custom textbox, so you wont have to repeat this code for every
> textbox you have in your form.
Hi, good evening Alexei, Your solution for my text property is working fine thank you
Since I have about 25 textBox on that 3 pages Forms and you have mentioned that I should use a custom textbox, How to do that? And also would it be possible for the Leave Event to use either the Tab on the keyboard or the mouse. Thank you in advance for your help.
|
|
|
|
|
LOL - generally, you want to respond to the response, if you want the same person to see it and answer you.
You derive a class from the Textbox class, use that in your code, and set the properties within that class.
The Leave event is fired when your control loses focus, you'd have to catch the Tab key and advance the tab order instead of having a Tab go into your textbox. There may be a property for this.
|
|
|
|
|
Hello, how can I create a temporary mime filter for IE in vb.net (or c#)?
I know i have to use IInternetSession and other interfaces in urlmon.dll.
I tried to convert some C++ code to VB but i receive several access violation exceptions:
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
'CComPtr<IInternetSession> m_spSession ;
Dim m_spSession As UrlMon.IInternetSession
'CComPtr<IClassFactory> m_spClassFactoryMime ;
Dim m_spClassFactoryMime As UrlMon.IClassFactory
'hr = ::CoGetClassObject( CLSID_MimeFilter, CLSCTX_SERVER,
' NULL, IID_IClassFactory,
' (void**)&m_spClassFactoryMime );
m_spClassFactoryMime = CoGetClassObject(GetStdGUID("FC3BAAF1-AD41-4141-BC28-5167E29E3B14"), CLSCTX.CLSCTX_SERVER, _
IntPtr.Zero, GetStdGUID("00000001-0000-0000-C000-000000000046"))
'if( hr == S_OK )
'{
' if( ::CoInternetGetSession( 0, &m_spSession, 0) ==S_OK )
CoInternetGetSession(0, m_spSession, 0)
' {
' m_spSession->RegisterMimeFilter(m_spClassFactoryMime,
' CLSID_MimeFilter,
' L"text/html" );
m_spSession.RegisterMimeFilter(m_spClassFactoryMime, New Guid("FC3BAAF1-AD41-4141-BC28-5167E29E3B14"), "text/html")
' }
'}
Me.AxWebBrowser1.Navigate("http://gouki/alieni.htm")
End Sub
CoGetClassObject generates the access violation exception...
Any idea or example?
|
|
|
|
|
|
Replace \" against "" and remove the semicolons.
---
b { font-weight: normal; }
|
|
|
|
|
_jsSingle = _jsSingle.Insert(11, "setTimeout(""")
_jsSingle &= """, 300)"
(+= will work also, but it's best to use the dedicated unambiguous concatenation operator in VB).
David Anton
www.tangiblesoftwaresolutions.com
Instant C#: VB to C# converter
Instant VB: C# to VB converter
Instant C++: C# to C++ converter, VB to C++ converter
Instant Python: VB to Python converter
|
|
|
|
|
|
ahum.. could you help me with this one also ? thanx!
protected override void Render(HtmlTextWriter writer)
{
foreach (GridViewRow r in GridView1.Rows)
{
if (r.RowType == DataControlRowType.DataRow)
{
Page.ClientScript.RegisterForEventValidation(r.UniqueID + "$ctl00");
Page.ClientScript.RegisterForEventValidation(r.UniqueID + "$ctl01");
}
}
base.Render(writer);
}
|
|
|
|
|
I've come up with this but the me.render isn't right... hints anyone ?
Protected Overrides Sub Render(ByVal writer As HtmlTextWriter)
For Each r As GridViewRow In AgendaView.Rows
If r.RowType = DataControlRowType.DataRow Then
Page.ClientScript.RegisterForEventValidation(r.UniqueID + "$ctl00")
Page.ClientScript.RegisterForEventValidation(r.UniqueID + "$ctl01")
End If
Next r
Me.Render(writer)
End Sub
|
|
|
|
|
Use:
MyBase.Render(writer)
Also, it's better to use the "&" concatenation operator in VB since there is no ambiguity ("+" can have undesired results if Option Strict is not set).
(feel free to download the Instant VB demo to convert these types of examples).
David Anton
www.tangiblesoftwaresolutions.com
Instant C#: VB to C# converter
Instant VB: C# to VB converter
Instant C++: C# to C++ converter, VB to C++ converter
Instant Python: VB to Python converter
|
|
|
|
|
thank you again! i will try your app! hope i do not come across too many examples in C# instead of vb...
|
|
|
|
|
Hello,
I've drawn a datagrid on my form, and called it grdDataGrid.
I'm looping through a text file to collect relevant column data - putting each portion of my line into variables for Product ID, Transaction Code, Quantity, and Value.
I can't use the split command because the source text file isn't formatted too well, so I'm having to use SubString to collect the required data.
How do I put Product ID, Trans Code, Qty and Value into their own columns in the data grid?
|
|
|
|
|