Visual Basic Power Packs ForumDiscuss the add-ins, controls, components, samples and tools that are part of the Visual Basic Power Packs.© 2009 Microsoft Corporation. All rights reserved.Wed, 25 Nov 2009 21:47:17 Ze5b560c7-34c9-4419-91d7-1b06519eed09http://social.msdn.microsoft.com/Forums/en-US/vbpowerpacks/thread/ea02a0b3-5823-4c2f-94c5-33a8a51bad50http://social.msdn.microsoft.com/Forums/en-US/vbpowerpacks/thread/ea02a0b3-5823-4c2f-94c5-33a8a51bad50Alvin K.N. Tanhttp://social.msdn.microsoft.com/Profile/en-US/?user=Alvin%20K.N.%20TanRectangleShape not working in 2010?Hi, <div><br/></div> <div>I recently installed Visual Basic 2010 Express Edition Beta 2, it came with Visual Basic Power Pack which included the RectangleShape.</div> <div><br/></div> <div>It appears I keep receiving an error after I build or try to save the project, and the form in designer mode is no longer accesssible, instead there's a massive error message which just covers the whole form it says something along the lines of:</div> <div><br/></div> <div>System.NullReferenceException: Object reference not set to an instance of an object.</div> <div><br/></div> <div>plus other stuff</div> <div><br/></div> <div>This is exactly what I did, in case you decide to try it out yourself:</div> <div>I created a form, with a FormBorderStyle 'None' and set a background image. I then put a RectangleShape, BackColour 'White', BackStyle 'Opaque', BorderColour 'Silver', CornerRadius '7'.</div> <div><br/></div> <div>It works the first build, but then upon returning to the designer mode, I receive the error.</div> <div><br/></div> <div>I also downloaded VB PowerPack 3.0</div> <div><br/></div> <div>Any suggestions?</div> <div><br/></div> <div>Regards</div>Wed, 25 Nov 2009 21:47:17 Z2009-11-25T21:47:17Zhttp://social.msdn.microsoft.com/Forums/en-US/vbpowerpacks/thread/7116f8fd-632a-4b2f-ab78-95377e6a19e2http://social.msdn.microsoft.com/Forums/en-US/vbpowerpacks/thread/7116f8fd-632a-4b2f-ab78-95377e6a19e2emarinescuhttp://social.msdn.microsoft.com/Profile/en-US/?user=emarinescuvb power pack in C#Hello,<br/>I am trying to include the NotificationWindow, TaskPane, ImageControl in my windows forms application in C#..but i can't find them anywhere..not in the toolbox ...<br/>Please tell me how can i use these control in my C# application.Wed, 25 Nov 2009 18:42:46 Z2009-11-25T18:42:47Zhttp://social.msdn.microsoft.com/Forums/en-US/vbpowerpacks/thread/9ba8df68-a8a3-441b-9057-1f8a45dedc18http://social.msdn.microsoft.com/Forums/en-US/vbpowerpacks/thread/9ba8df68-a8a3-441b-9057-1f8a45dedc18Hanzie2http://social.msdn.microsoft.com/Profile/en-US/?user=Hanzie2copy vb.net project from 1 to other computerhello.<br/> <br/> ive copied my vb,net application from one computer to another.<br/> now i get all of these errors:<br/> <br/> Error    2    Type 'Microsoft.VisualBasic.PowerPacks.ShapeContainer' is not defined.    C:\Documents and Settings\Hanzie\My Documents\Visual Studio 2008\DocReg-local\DocReg-local\FrmNieuweTekening.Designer.vb    74    34    DocReg-local<br/> <br/> I installed on my second computer powepack 3.0 But this doesn't resolve anything. Any help?<br/> thanx in advanced.<br/> <br/><hr class="sig">vb.netThu, 19 Nov 2009 18:07:26 Z2009-11-25T17:51:18Zhttp://social.msdn.microsoft.com/Forums/en-US/vbpowerpacks/thread/c407674a-6329-4693-a5e3-5f83fb7f1f72http://social.msdn.microsoft.com/Forums/en-US/vbpowerpacks/thread/c407674a-6329-4693-a5e3-5f83fb7f1f72stimmyvzhttp://social.msdn.microsoft.com/Profile/en-US/?user=stimmyvzPrinting reportsIm trying to print a part of the database. right now it end up like this<br/> <br/> <br/> Titel<br/> <pre lang=x-html>&lt;table&gt; &lt;tr&gt; &lt;td colspan=&quot;2&quot;&gt;Title &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt;data1&lt;td&gt;&lt;/td&gt;&lt;td&gt;data2&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt;data1&lt;td&gt;&lt;/td&gt;&lt;td&gt;data2&lt;/td&gt;&lt;/tr&gt; &lt;/table&gt; &lt;table&gt; &lt;tr&gt; &lt;td colspan=&quot;2&quot;&gt;Title2 &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt;data1&lt;td&gt;&lt;/td&gt;&lt;td&gt;data2&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt;data1&lt;td&gt;&lt;/td&gt;&lt;td&gt;data2&lt;/td&gt;&lt;/tr&gt; &lt;/table&gt;</pre> means that the data line is longer, till a page<br/> As you see its under each other.<br/> I would like to have them beside each other. like five on a page and then the next five on the next page<br/> <br/> I hope you know what i meanThu, 12 Nov 2009 23:02:06 Z2009-11-25T11:10:06Zhttp://social.msdn.microsoft.com/Forums/en-US/vbpowerpacks/thread/b874eabe-9aa8-40a4-af50-1e5b5cec786fhttp://social.msdn.microsoft.com/Forums/en-US/vbpowerpacks/thread/b874eabe-9aa8-40a4-af50-1e5b5cec786fXancholyhttp://social.msdn.microsoft.com/Profile/en-US/?user=XancholyDataRepeater: filter pictures by <filename>I have datarepeater with 1 picturebox control which on form load I would like to fill with images (*.jpg, *.bmp, *.tiff, *.png) found in my pictures.<br> <br> I have textbox1 used to pass a searchstring to the filter.<br> <br> Once loaded I would like to filter the pictures in the datarepeater by filename<br> <div style="margin:5px 20px 20px"> <div class=smallfont style="margin-bottom:2px">Code:</div> <pre class=alt2 style="border:1px inset;margin:0px;padding:3px;overflow:auto;width:740px;height:34px"><div dir=ltr style="text-align:left">Me.DataRepeater1.Filter = String.Format(&quot;[File Name] LIKE '%{0}%'&quot;, Me.TextBox1.Text)</div></pre> </div> <br> Can someone please show me how to set this up ? <hr align=left size=1 width="25%">using VB.NET Express 2008Sat, 07 Jun 2008 20:58:50 Z2009-11-24T20:46:36Zhttp://social.msdn.microsoft.com/Forums/en-US/vbpowerpacks/thread/2edec5f9-d6b3-47aa-be5a-23dfcc65dd09http://social.msdn.microsoft.com/Forums/en-US/vbpowerpacks/thread/2edec5f9-d6b3-47aa-be5a-23dfcc65dd09Macgarihttp://social.msdn.microsoft.com/Profile/en-US/?user=MacgariPowerPack 3 Datarepeater<p align=left><strong>Description:</strong></p> <p align=left><strong>1-Add a new Datarepeater that is connected to a table say of 100 records</strong></p> <p align=left><strong>2-Add a button to the Repeater and set the databindings to a field in the table </strong></p> <p align=left><strong>3-Add a trackbar on the form outside the repeater to control the button</strong></p> <p align=left><strong>4-Add this line when to the trackbar scroll event</strong></p> <p align=left><strong>   Datarepeater.currentItem.controls(&quot;Button1&quot;).width=Trackbar1.value</strong></p> <p align=left><strong>5- scroll down on the repeater you will find that not only the current button changed but every 15 or so change as well</strong></p> <p align=left><strong>bugy bugy bugy , Just the fact that there is no control as Datarepeater.item( number ) is a shame</strong></p> <p align=left> </p> <p align=left><strong>Repro Steps:</strong></p> <ol> <li> <div align=left> </div></li></ol> <p align=left><strong>Actual Results:</strong></p> <p align=left> </p> <p align=left><strong>Expected Results:</strong></p> <p align=left> </p> <p align=left><strong>Product Name and Version:</strong></p> <p align=left> </p>Thu, 27 Mar 2008 20:24:40 Z2009-11-24T04:58:25Zhttp://social.msdn.microsoft.com/Forums/en-US/vbpowerpacks/thread/15e6d858-db68-4eaa-8ed3-670927c66ec4http://social.msdn.microsoft.com/Forums/en-US/vbpowerpacks/thread/15e6d858-db68-4eaa-8ed3-670927c66ec4kris_hoodhttp://social.msdn.microsoft.com/Profile/en-US/?user=kris_hoodDatarepeater - frustrating!I know I'm coming off as a whiny-brat but working with this datarepeater control is so frustrating!  No matter how much I read about it and how much I try things, I just cannot get it to work like I want.  I'm sure most of the problems are my own ignorance.  I'm finishing up my 5th day trying to get comboboxes to work in a dr.    <br/><br/>I have three main problems currently, two of which I've posted here on this forum but haven't received an answer as yet.  The 3rd is that, if there is more than one row in the dr, and all rows have a combobox control, then changing the selection in one combo changes them all.  Here is my code.  I've noticed that the &quot;For Each s As String...&quot; loop never gets executed.  Might this be causing the problem and if so, how do I resolve it?<br/><br/> <pre>Private Sub PeopleTypes_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load LoadComboBox() PeopleTypesDatarepeater.BeginResetItemTemplate() strSQL = &quot;SELECT * FROM viewPeopleTypes WHERE PeopleID = &quot; &amp; intID daPeopleTypes = New SqlDataAdapter(strSQL, connPeopleTypes) daPeopleTypes.Fill(dt) bs.DataSource = dt PeopleTypesDatarepeater.EndResetItemTemplate() PeopleTypesDatarepeater.DataSource = bs If bs.Count = 0 Then btnDelete.Visible = False Else btnDelete.Visible = True End If End Sub Private Sub LoadComboBox() daPTCombo = New SqlDataAdapter( _ &quot;SELECT * FROM tlkpPeopleTypes ORDER BY PeopleType&quot;, connPeopleTypes) 'set up People Type combo box daPTCombo.Fill(dsPTCombo, &quot;tlkpPeopleTypes&quot;) cboPeopleType.DataSource = dsPTCombo.Tables(&quot;tlkpPeopleTypes&quot;) cboPeopleType.DisplayMember = &quot;PeopleType&quot; cboPeopleType.ValueMember = &quot;PeopleTypeID&quot; cboPeopleType.Text = &quot;&quot; End Sub Private Sub PeopleTypesDatarepeater_ItemCloned(ByVal sender As Object, ByVal e As Microsoft.VisualBasic.PowerPacks.DataRepeaterItemEventArgs) Handles PeopleTypesDatarepeater.ItemCloned Dim Source As ComboBox = _ CType(PeopleTypesDatarepeater.ItemTemplate.Controls.Item(&quot;cboPeopleType&quot;), ComboBox) Dim ComboBox1 As ComboBox = _ CType(e.DataRepeaterItem.Controls.Item(&quot;cboPeopleType&quot;), ComboBox) For Each s As String In Source.Items ComboBox1.Items.Add(s) Next End Sub</pre> I've not done much reading about VS2010.  Has the dr control improved any?  If so, it may worth an upgrade since I can see where I will need this a lot as I convert old Access mdb's to .Net.<br/><br/>Thanks for any help or advice.<br/><br/>Thu, 18 Jun 2009 17:26:31 Z2009-11-24T20:27:44Zhttp://social.msdn.microsoft.com/Forums/en-US/vbpowerpacks/thread/95635e53-ed2b-4557-8474-c3bb9437bb30http://social.msdn.microsoft.com/Forums/en-US/vbpowerpacks/thread/95635e53-ed2b-4557-8474-c3bb9437bb30Steven Ehttp://social.msdn.microsoft.com/Profile/en-US/?user=Steven%20EHow Can I Suppress the 2005 Printing Status Dialog?<p style="margin:0in 0in 0pt"><font face=Georgia>We are using the Microsoft.VisualBasic.PowerPacks.Printing.Compatibility.VB6 namespace Printer object to print bar code labels in an application converted from VB6.  What would be the easiest way to suppress the printing status dialog?</font></p> <p style="margin:0in 0in 0pt"><font face=Georgia> </font></p> <p style="margin:0in 0in 0pt"><font face=Georgia>Some background:</font></p> <p style="margin:0in 0in 0pt"><font face=Georgia> </font></p> <p style="margin:0in 0in 0pt"><font face=Georgia>This is being done in a VB .NET 2005 Windows forms application.  Our users have the Framework 2.0 and cannot easily be given 3.X at this time.  </font></p> <p style="margin:0in 0in 0pt"><font face=Georgia> </font></p> <p style="margin:0in 0in 0pt"><font face=Georgia>Unlike in the VB6 equivalent, printing results in a brief status dialog appearing, and then disappearing.  The dialog has caption of &quot;Printing&quot; and a text reading &quot;Page 1 of document.&quot;   The dialog box has a Cancel button on it, although a user would have to have quite fast hand-eye coordination to use it before it disappears.</font></p> <p style="margin:0in 0in 0pt"><font face=Georgia> </font></p> <p style="margin:0in 0in 0pt"><font face=Georgia>Users work quickly to create customer-identifying bar codes for incoming correspondence.  Some are amazingly quick.  For this reason, we call print logic asynchronously, which works fine.  However, if the user is typing in the next customer number, and the status dialog pops up, this causes an annoying loss of focus in the text box control they are typing into. </font></p> <p style="margin:0in 0in 0pt"><font face=Georgia> </font></p> <p style="margin:0in 0in 0pt"><font face=Georgia>Rewriting to not use the compatibility library would be tricky and require a lot of testing.  I suppose I could write the information to the database and have the printing done by a background server process, but ideas pointing to a more elegant solution will be greatly appreciated.   </font></p> <p style="margin:0in 0in 0pt"><font face=Georgia> </font></p> <p style="margin:0in 0in 0pt"><font face=Georgia>Steve Eisenberg    Pennsylvania, USA     </font></p>Fri, 20 Jun 2008 21:52:08 Z2009-11-19T18:52:15Zhttp://social.msdn.microsoft.com/Forums/en-US/vbpowerpacks/thread/e6a68dca-4e67-4af2-a0d6-35214d8be8d4http://social.msdn.microsoft.com/Forums/en-US/vbpowerpacks/thread/e6a68dca-4e67-4af2-a0d6-35214d8be8d4kokila1986http://social.msdn.microsoft.com/Profile/en-US/?user=kokila1986coverage of different vb.net programshey can u tell me this.<br/><br/>i want to do statement coverage,branch coverage,class coverage,block coverage of my vb.net program.can u pls tell me the code for this.i will be really gr8ful.Thu, 12 Nov 2009 15:09:58 Z2009-11-19T07:08:06Zhttp://social.msdn.microsoft.com/Forums/en-US/vbpowerpacks/thread/2971782f-8d81-4978-98fd-06b610c13ec2http://social.msdn.microsoft.com/Forums/en-US/vbpowerpacks/thread/2971782f-8d81-4978-98fd-06b610c13ec2Clarie150http://social.msdn.microsoft.com/Profile/en-US/?user=Clarie150Incompatibility with Visual Studio 2010 Ultimate Beta 2So I recently got Visual Stuudio 2010 Ultimate Beta 2 off Dreamspark, and have updated a 2008 project. I find out that the PowerPacks (Such as RectangleShape) are not compatible with this edition. How can I get them to work, or if there is any other information, where?Sat, 14 Nov 2009 21:14:04 Z2009-11-17T08:19:40Zhttp://social.msdn.microsoft.com/Forums/en-US/vbpowerpacks/thread/cefa2e23-7c05-4f3f-a323-0240feb1c246http://social.msdn.microsoft.com/Forums/en-US/vbpowerpacks/thread/cefa2e23-7c05-4f3f-a323-0240feb1c246mkc90http://social.msdn.microsoft.com/Profile/en-US/?user=mkc90openi have problem. how to open object such as game on desktop. i don't now what coding suppose to use. i use vb.net<br/>Sat, 14 Nov 2009 13:08:31 Z2009-11-18T09:39:04Zhttp://social.msdn.microsoft.com/Forums/en-US/vbpowerpacks/thread/b980b7c7-2458-4bdf-b384-58712d0839bahttp://social.msdn.microsoft.com/Forums/en-US/vbpowerpacks/thread/b980b7c7-2458-4bdf-b384-58712d0839baDDJJhttp://social.msdn.microsoft.com/Profile/en-US/?user=DDJJVB Database Form Templates for VS 2005?I need to create a form which will access data residing on a MySQL database stored on our website.  I will need to be able to view and edit all records in the database.  I am an experienced VB6 programmer, but have let things slide a bit over the last 5-6 years.  I now only have VS 2005.<br/><br/>Is the an existing wizard, or form template out there that I can use to expedite development of this project?<br/><br/>Thanks for any help!<br/><br/>Dan Johnson<hr class="sig">Dan JohnsonMon, 09 Nov 2009 15:40:48 Z2009-11-13T07:34:21Zhttp://social.msdn.microsoft.com/Forums/en-US/vbpowerpacks/thread/7e882e1e-d7f8-4b3a-8705-32c530e6db55http://social.msdn.microsoft.com/Forums/en-US/vbpowerpacks/thread/7e882e1e-d7f8-4b3a-8705-32c530e6db55UAEANhttp://social.msdn.microsoft.com/Profile/en-US/?user=UAEANHelp fast OCX file missing<p> nevermind</p>Tue, 10 Nov 2009 11:33:31 Z2009-11-10T11:38:32Zhttp://social.msdn.microsoft.com/Forums/en-US/vbpowerpacks/thread/8aa486ca-71a0-4c27-935e-78cd46a22f37http://social.msdn.microsoft.com/Forums/en-US/vbpowerpacks/thread/8aa486ca-71a0-4c27-935e-78cd46a22f37Sergiu Dudnichttp://social.msdn.microsoft.com/Profile/en-US/?user=Sergiu%20DudnicHow to move a Shape?As my <a href="http://social.msdn.microsoft.com/Forums/en-US/vbpowerpacks/thread/be162b17-7367-484d-b00a-8a0e99c5b2b0">precedent question</a> was the most probably a PowerPacks bug, my following question is more direct. How to move a OvalShape?<br/> <br/> <br/> I have a simple code, that works only if I move the shape little by little, without quit the shape area. I would like to move it in a &quot;usual&quot; (even if the cursor temporary leaves the shape, the shape should follow the cursor) way.<br/> <br/> <pre lang=x-vbnet>Imports Microsoft.VisualBasic.PowerPacks Public Class Form1 Private mbox As New MoveBox Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load mbox.Location = New Point(30, 30) ShapeContainer1.Shapes.Add(mbox) End Sub End Class Public Class MoveBox Inherits OvalShape Private _isActive As Boolean Public Sub New() Me.Size = New Size(10, 10) Me.BackStyle = PowerPacks.BackStyle.Opaque Me.BackColor = Color.Blue Me.BorderColor = Color.Red End Sub Protected Overrides Sub OnMouseDown(ByVal e As System.Windows.Forms.MouseEventArgs) MyBase.OnMouseDown(e) _isActive = True End Sub Protected Overrides Sub OnMouseUp(ByVal e As System.Windows.Forms.MouseEventArgs) MyBase.OnMouseUp(e) _isActive = False End Sub Protected Overrides Sub OnMouseMove(ByVal e As System.Windows.Forms.MouseEventArgs) MyBase.OnMouseMove(e) If Me._isActive Then Me.Location = Me.Location + e.Location - New Point(Me.Width \ 2, Me.Height \ 2) End If End Sub End Class</pre> Thanks.<hr class="sig">Best regards, SergiuTue, 27 Oct 2009 15:49:38 Z2009-11-10T21:19:18Zhttp://social.msdn.microsoft.com/Forums/en-US/vbpowerpacks/thread/7ceae434-19b2-49f5-b806-a76c88965a00http://social.msdn.microsoft.com/Forums/en-US/vbpowerpacks/thread/7ceae434-19b2-49f5-b806-a76c88965a00wdenieshttp://social.msdn.microsoft.com/Profile/en-US/?user=wdeniesI am confused - plse helpI want to use the datarepeater to display data generated by the application itself - available in an array?<br/> i.e.<br/> - at design time no datasource available<br/> Question:<br/> - is this possible and if yes, how?<br/> <br/> WimMon, 02 Nov 2009 09:41:21 Z2009-11-09T02:58:55Zhttp://social.msdn.microsoft.com/Forums/en-US/vbpowerpacks/thread/2849108c-bbcb-48e9-ab06-8ddb8f426e14http://social.msdn.microsoft.com/Forums/en-US/vbpowerpacks/thread/2849108c-bbcb-48e9-ab06-8ddb8f426e14Steve Robertshttp://social.msdn.microsoft.com/Profile/en-US/?user=Steve%20RobertsCan't Anchor control as expected in a DataRepeaterI have a data repeater (vertical mode) where I have some labels/textboxes that need to be top + right anchored so that they stay their original size but remain aligned to the right side as the data repeater grows/shrinks.<br/> <br/> If I set top + right anchors on any label/textbox then it dissapears from the form, presumably they're off the right hand side in space.<br/> <br/> If I set left + top + rigtht anchors then they stay in position but grow/shrink, which is not the required effect.<br/> <br/> I've also tried using a panel control docked full in the data repeater with my control on the panel but get the same problem.<br/>Thu, 23 Jul 2009 16:37:25 Z2009-11-05T05:40:15Zhttp://social.msdn.microsoft.com/Forums/en-US/vbpowerpacks/thread/f2b6e2ca-95e3-4816-ae89-28436a7ffcd7http://social.msdn.microsoft.com/Forums/en-US/vbpowerpacks/thread/f2b6e2ca-95e3-4816-ae89-28436a7ffcd7erfiggehttp://social.msdn.microsoft.com/Profile/en-US/?user=erfiggeDistribute vb.net application with power pack dll'sIs it possible to distribute and application with only the needed dll's?  I use INNO to package a setup file, and if I include the power pack distribution exe it wants to repair or uninstall if the user try's to install an updated setup file.  <br/><br/>The other answer to this question could be what is the registry key to determine if the power pack is already installed, as I could have INNO skip running the power pack exe.  However, just including the required dll's side by side would be the prefered method.<br/><br/>Thanks,<br/><br/>Eric Figge.Mon, 19 Oct 2009 22:52:36 Z2009-11-02T10:52:43Zhttp://social.msdn.microsoft.com/Forums/en-US/vbpowerpacks/thread/b5d55254-7e1c-47b3-97b1-8342fa2ead18http://social.msdn.microsoft.com/Forums/en-US/vbpowerpacks/thread/b5d55254-7e1c-47b3-97b1-8342fa2ead18AnilM_Nairhttp://social.msdn.microsoft.com/Profile/en-US/?user=AnilM_NairDeploying PowerPacksWe've migrated the code from VB to VB.Net.For implementing the Print,Visual Basic Powerpacks is used. What's the best option for deploying Visual Basic Powerpacks in client machine ? We don't have 'gacutil' in the client machine .Please advice on a resolution.<br/><br/>Thanks,<br/>Mon, 02 Nov 2009 08:32:10 Z2009-11-03T05:24:32Zhttp://social.msdn.microsoft.com/Forums/en-US/vbpowerpacks/thread/c3be45b1-55ec-422e-9269-7f7871df4eb5http://social.msdn.microsoft.com/Forums/en-US/vbpowerpacks/thread/c3be45b1-55ec-422e-9269-7f7871df4eb5shockinhttp://social.msdn.microsoft.com/Profile/en-US/?user=shockinFile ShredderI'm not sure if this is the right location for this post, but how effective of a file shredder would this be, first I'll explain, then show my code for each part.<br/> <br/> in the declarations, I've got this.<br/> <br/> Dim Random as New Random<br/> <pre lang=x-vbnet> OpenFileDialog1.ShowDialog() FileOpen(1, OpenFileDialog1.FileName, OpenMode.Output) PrintLine(1, Random.Next) FileClose()</pre> <br/> What it does, you've got an open file dialog, it opens the file, and prints the line (Random.Next) so like random numbers.<br/> then it closes that file, as shown as above.<br/> <br/> Then, it repeats that code over 100 times, then uses the My.Computer.FileSystem to Change the File's name &amp; type.<br/> <br/> <pre lang=x-vbnet>My.Computer.RenameFile(Openfiledialog1.filename, Random.double)</pre> The random DOUBLE saves it as like<br/> <br/> 0.494758395095<br/> <br/> Thus, changing the file name, and type.<br/> So like:<br/> FILE NAME = 0<br/> FILE TYPE = 494758395095<br/> <br/> How effective would that be?<br/>Mon, 02 Nov 2009 05:03:33 Z2009-11-02T05:03:34Zhttp://social.msdn.microsoft.com/Forums/en-US/vbpowerpacks/thread/a432e734-0082-413b-8e03-667eaa6f2544http://social.msdn.microsoft.com/Forums/en-US/vbpowerpacks/thread/a432e734-0082-413b-8e03-667eaa6f2544fkucukhttp://social.msdn.microsoft.com/Profile/en-US/?user=fkucukUsing MSComm component to communicate via bluetoothHi, <div><br/></div> <div>I am developing a program to receive data from a device via bluetooth. </div> <div><br/></div> <div>I set my bluetooth dongle to a com port and can easily read data from it. The article here (<a href="http://support.microsoft.com/default.aspx/kb/194922">http://support.microsoft.com/default.aspx/kb/194922</a>) was very useful.</div> <div><br/></div> <div>But, I have a problem. When the bluetooth connection is lost (eg. when the device is shut down or when the device leaves its bt range), the program can not understand it.</div> <div><br/></div> <div>In debug mode; I've realised that the events (comEvCTS, comEvDSR, comEvCd and comEvRing) on <strong>MCComm1_OnComm() </strong>runs in turn one by one when I switch off the device.</div> <div><br/></div> <div>Do you think should I use this situation to control if the connection is lost?</div>Mon, 26 Oct 2009 14:07:26 Z2009-10-30T11:57:01Zhttp://social.msdn.microsoft.com/Forums/en-US/vbpowerpacks/thread/be162b17-7367-484d-b00a-8a0e99c5b2b0http://social.msdn.microsoft.com/Forums/en-US/vbpowerpacks/thread/be162b17-7367-484d-b00a-8a0e99c5b2b0Sergiu Dudnichttp://social.msdn.microsoft.com/Profile/en-US/?user=Sergiu%20DudnicWhy MouseMove event is different?Hello, I wondering why the mouseMove event is different vs the normal controls?<br/> <br/> In the normal objects the MouseMoveEvent continues if the mouse was pressed(Down) and the cursor leaves the control.<br/> <br/> By ex, I have the following code:<br/> <br/> <pre lang=x-vbnet>Public Class Form1 Private mbox As New MoveBox Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load mbox.Location = New Point(30, 30) Me.Controls.Add(mbox) End Sub End Class Public Class MoveBox Inherits PictureBox Private _isActive As Boolean Public Sub New() Me.Size = New Size(10, 10) Me.BackColor = Color.Blue End Sub Protected Overrides Sub OnMouseDown(ByVal e As System.Windows.Forms.MouseEventArgs) MyBase.OnMouseDown(e) _isActive = True End Sub Protected Overrides Sub OnMouseUp(ByVal e As System.Windows.Forms.MouseEventArgs) MyBase.OnMouseUp(e) _isActive = False End Sub Protected Overrides Sub OnMouseMove(ByVal e As System.Windows.Forms.MouseEventArgs) MyBase.OnMouseMove(e) If Me._isActive Then Me.Location = Me.Location + e.Location - New Point(Me.Width \ 2, Me.Height \ 2) End If End Sub End Class</pre> This code allows move a pictureBox with the pressed mouse.<br/> But when I try to inherit the OvalShape, The code does not work, cause the MouseMove event is not generated when the cursor leaves the shape control...<hr class="sig">Best regards, SergiuTue, 27 Oct 2009 13:43:03 Z2009-11-10T21:20:49Zhttp://social.msdn.microsoft.com/Forums/en-US/vbpowerpacks/thread/34332994-c96e-4dbf-9530-6d9ffaf06635http://social.msdn.microsoft.com/Forums/en-US/vbpowerpacks/thread/34332994-c96e-4dbf-9530-6d9ffaf06635DanFSDhttp://social.msdn.microsoft.com/Profile/en-US/?user=DanFSDPrintForm Print to FileHello,<br/>I have created a report on a form that looks exactlty like what I want printed in a single page. I am using VB 2005 Power Packs PrintForm and using PrintToPreview. I want to only print the client area. The preview shows the form running off of the right side of the paper. How can I shift the image so that the report is centered on an 8.5 x 11 portait page?<br/>Thank you.Wed, 21 Oct 2009 17:06:09 Z2009-10-29T02:00:57Zhttp://social.msdn.microsoft.com/Forums/en-US/vbpowerpacks/thread/a3c121c1-7a63-4163-baa9-eee24620b6e8http://social.msdn.microsoft.com/Forums/en-US/vbpowerpacks/thread/a3c121c1-7a63-4163-baa9-eee24620b6e8SKBANSALhttp://social.msdn.microsoft.com/Profile/en-US/?user=SKBANSALVB6 EXE ACCOUNT SOFTWERE<p>4</p>Mon, 19 Oct 2009 09:06:01 Z2009-10-30T05:39:30Zhttp://social.msdn.microsoft.com/Forums/en-US/vbpowerpacks/thread/6c052ce4-239c-4f31-bc5c-04ea88772018http://social.msdn.microsoft.com/Forums/en-US/vbpowerpacks/thread/6c052ce4-239c-4f31-bc5c-04ea88772018Roger Chen _ WORLD PEACEhttp://social.msdn.microsoft.com/Profile/en-US/?user=Roger%20Chen%20_%20WORLD%20PEACEPrinter Name in ActivePrinterDim objApp As Application = new Application ()<br/><br/> ok --&gt; objApp.ActivePrinter = &quot;\\192.168.11.11\hp LaserJet 1300 PCL 5e on Ne01&quot;<br/> error --&gt; objApp.ActivePrinter = &quot;\\192.168.11.11\hp LaserJet 1300 PCL 5e&quot;<br/> i pickup Printer name in PrinterSettings.InstalledPrinters.Item() ,<br/> and these pickup item seems short &quot; on Nexx&quot; .<br/><br/> so now , how can i get the printer name ends with &quot; on Nexx&quot; <br/> or say that how to get the correct printer name which objApp.ActivePrinter can accept.<br/><br/>Tue, 20 Oct 2009 05:28:00 Z2009-10-26T03:09:06Zhttp://social.msdn.microsoft.com/Forums/en-US/vbpowerpacks/thread/2c40e3e9-d45a-4fdc-a98d-26a1c82df7c0http://social.msdn.microsoft.com/Forums/en-US/vbpowerpacks/thread/2c40e3e9-d45a-4fdc-a98d-26a1c82df7c0Gary S.http://social.msdn.microsoft.com/Profile/en-US/?user=Gary%20S.Navigating records in the data repeater controlI have a data repeater control on my form. I have successfully binded the control to a data source. On the control I have two text fields. The first text box contains an ID that I would like to searh on, and bring it to the top of the data repeater control... how do I do that?<br /><br />Using VB.net Studio 2008 SP1<br /><br />Thanks<br />Gary<br />Fri, 16 Oct 2009 16:49:14 Z2009-10-23T02:59:15Zhttp://social.msdn.microsoft.com/Forums/en-US/vbpowerpacks/thread/78a67c9d-6ac8-40a4-91bb-efd1e61c1401http://social.msdn.microsoft.com/Forums/en-US/vbpowerpacks/thread/78a67c9d-6ac8-40a4-91bb-efd1e61c1401chaxmbshttp://social.msdn.microsoft.com/Profile/en-US/?user=chaxmbsBug? installing VB PP3<p align=left><font face=Arial size=2></font> </p> <p align=left><strong>Description:  getting hung up on VB PP3 install</strong></p> <p align=left> </p> <p align=left><strong>Repro Steps: Install PP3</strong></p> <ol> <li> <div align=left> </div></li></ol> <p align=left><strong>Actual Results:  Hanging when removing backup files -  shortcut: kgjuvdii/PrintForm Sample</strong></p> <p align=left> </p> <p align=left><strong>Expected Results:  successful completion of install</strong></p> <p align=left> </p> <p align=left><strong>Product Name and Version: VB PP 3.0</strong></p> <p align=left><strong></strong> </p> <p align=left><strong>See Screen shot of reinstall try.</strong></p> <p align=left> </p>Tue, 04 Mar 2008 19:13:12 Z2009-10-20T18:04:11Zhttp://social.msdn.microsoft.com/Forums/en-US/vbpowerpacks/thread/769fca39-44a7-458a-9d45-1d6d07d9d900http://social.msdn.microsoft.com/Forums/en-US/vbpowerpacks/thread/769fca39-44a7-458a-9d45-1d6d07d9d900smhaighttp://social.msdn.microsoft.com/Profile/en-US/?user=smhaigvb/ power pack 3.0 hangs when install, repair, uninstal.I have vb 2008 on a vista 64 machine and saw info on powerpack 3.0 so thought I would install it.&nbsp; it keeps hanging up when gets to the print form part of the installation.&nbsp; But when went to install again, it says "uninstall" or "repair"&nbsp; But both of these hang in the same place.<br /><br />Went to the uninstall via the control panel and it still hangs so had to shut that down as well.<br /><br />What can I do?Tue, 13 Oct 2009 17:28:22 Z2009-10-14T23:07:37Zhttp://social.msdn.microsoft.com/Forums/en-US/vbpowerpacks/thread/086ed50a-428a-44d2-a848-f92a3d125083http://social.msdn.microsoft.com/Forums/en-US/vbpowerpacks/thread/086ed50a-428a-44d2-a848-f92a3d125083plaidladhttp://social.msdn.microsoft.com/Profile/en-US/?user=plaidladdelete icon from task barHow do I delete an icon from the task bar?Wed, 14 Oct 2009 17:37:52 Z2009-10-19T06:14:46Zhttp://social.msdn.microsoft.com/Forums/en-US/vbpowerpacks/thread/1a46a8c9-ff84-46e8-8d7d-4494689d2207http://social.msdn.microsoft.com/Forums/en-US/vbpowerpacks/thread/1a46a8c9-ff84-46e8-8d7d-4494689d2207Benny Vhttp://social.msdn.microsoft.com/Profile/en-US/?user=Benny%20VTooltips<p align=left><font face=Arial size=2></font> </p>How do I popup tooltip from a shape control?Tue, 25 Sep 2007 06:49:01 Z2009-10-14T14:52:22Zhttp://social.msdn.microsoft.com/Forums/en-US/vbpowerpacks/thread/d7a0f879-e77a-4055-a378-a2324b40789bhttp://social.msdn.microsoft.com/Forums/en-US/vbpowerpacks/thread/d7a0f879-e77a-4055-a378-a2324b40789bLance77035http://social.msdn.microsoft.com/Profile/en-US/?user=Lance77035how can i deliberately invalidate the visible repeater items?I want to programmatically invalidate the visible repeater items such that ItemValueNeeded will be fired for each of them.&nbsp; What I have is a transaction register where each repeater item is a transaction that shows a running total on the right.&nbsp; When one transaction is updated, the running balance is recomputed for the affected items in my datatable, but the new values will not automatically be shown for visible items until they are scrolled out of view and back.<br /><br />One might suggest that a quick n dirty approach would be to get the currently displayed items out of view and then return programmatically, but this is no good if in fact there aren't enough repeater items.<br /><br />ThanksFri, 02 Oct 2009 02:14:50 Z2009-10-11T05:34:03Zhttp://social.msdn.microsoft.com/Forums/en-US/vbpowerpacks/thread/ed394ece-d49a-40d6-8255-5e0a8a8afbdchttp://social.msdn.microsoft.com/Forums/en-US/vbpowerpacks/thread/ed394ece-d49a-40d6-8255-5e0a8a8afbdcviren75http://social.msdn.microsoft.com/Profile/en-US/?user=viren75How to Start with Visual basic Experss 2008 I want to draw a figure of Gas turbine Power generator and make operator simulator for Gas turbnine generator <br />Can any one guide me about itSat, 03 Oct 2009 18:45:41 Z2009-10-09T09:09:27Zhttp://social.msdn.microsoft.com/Forums/en-US/vbpowerpacks/thread/bb484961-617d-4278-8b65-95952cb50780http://social.msdn.microsoft.com/Forums/en-US/vbpowerpacks/thread/bb484961-617d-4278-8b65-95952cb50780badams118http://social.msdn.microsoft.com/Profile/en-US/?user=badams118Datagrid BindingSource Filter Reverencing Another Datagrid ValueHi, I want to use a selection in one datagrid to filter the values in another datagrid.&nbsp; It looks like I should be able to use the bindingsource filter property.&nbsp; How do I reference the value in the controlling datagrid here?&nbsp; An example would be very helpful.<br /> <br /> TIAMon, 05 Oct 2009 14:27:10 Z2009-10-12T02:01:40Zhttp://social.msdn.microsoft.com/Forums/en-US/vbpowerpacks/thread/7c7558d0-8388-498f-96de-88978f8970e5http://social.msdn.microsoft.com/Forums/en-US/vbpowerpacks/thread/7c7558d0-8388-498f-96de-88978f8970e5newgeehttp://social.msdn.microsoft.com/Profile/en-US/?user=newgeeHow to Make a DLL or Class Library using PowerPacks?Hi, my problem is I want to make a new dll or library such that I will be using the PowerPack - RectangleShape as my control since I want it to be my background as a page layout for my customize report designer that I am making.<br/> <br/> Here is the code after I have created a new project of Class Library and referencing the powerpacks vs :<br/> <br/> <br/> Imports System.ComponentModel<br/> Imports Microsoft.VisualBasic.PowerPacks<br/> <br/> Public Class Class1<br/>     Inherits RectangleShape<br/> <br/>     Public Sub New()<br/>         MyBase.New()<br/> <br/>     End Sub<br/> <br/> End Class<br/> <br/> if it is only a textbox, it does not produce an error, but whenever I change it to rectangleshape, it already produces an error even before I build it.  I know I should try to create first a shapecontainer, but even I declare and instantiate within the class a new shapecontainer, it still does not work.<br/> <br/> Please help me.Wed, 30 Sep 2009 07:18:52 Z2009-10-05T03:05:32Zhttp://social.msdn.microsoft.com/Forums/en-US/vbpowerpacks/thread/047c13c0-a1fd-41bb-915f-0fdf6522a173http://social.msdn.microsoft.com/Forums/en-US/vbpowerpacks/thread/047c13c0-a1fd-41bb-915f-0fdf6522a173code nemisishttp://social.msdn.microsoft.com/Profile/en-US/?user=code%20nemisisQuestions about Data RepeaterHello Everyone,<br/><br/>I have a dataset that I am creating at runtime.  How would I go about binding controls inside the datarepeater to columns in my datatable?<br/><br/>I tried the following in the DrawItem event and got an error &quot;This causes two bindings in the collection to bind to the same property. Parameter name: binding&quot;<br/> <br/><span style="font-size:x-small"><span style="font-size:x-small"> <p>Label1.DataBindings.Add(</p> </span></span> <p><span style="font-size:x-small;color:#a31515"><span style="font-size:x-small;color:#a31515">&quot;Text&quot;</span></span><span style="font-size:x-small">, dt.Rows(e.DataRepeaterItem.ItemIndex), </span><span style="font-size:x-small;color:#a31515"><span style="font-size:x-small;color:#a31515">&quot;Allergy&quot;</span></span><span style="font-size:x-small">)</span></p> <br/>Anyone have any ideas how this can be accomplished without building the dataset at design time?<br/><br/><br/>Okay, now im getting a different error.<br/>Cannot bind to the property or column Allergy on the DataSource. Parameter name: dataMember<br/><br/>The datatable has 6 rows in it, and 2 columns (ID and Allergy) the repeater shows all 6 rows, just cant bind to the column.<br/><br/>Any ideas how I can fix this?<br/><br/>Thanks!!Wed, 30 Sep 2009 22:06:15 Z2009-10-02T18:14:18Zhttp://social.msdn.microsoft.com/Forums/en-US/vbpowerpacks/thread/b28adfef-5560-4da0-8a3a-3b763fbd7a26http://social.msdn.microsoft.com/Forums/en-US/vbpowerpacks/thread/b28adfef-5560-4da0-8a3a-3b763fbd7a26jensenjoymhttp://social.msdn.microsoft.com/Profile/en-US/?user=jensenjoymHow to open Password protected Excel in VB 6.0Hi,<br/> <br/>    I need to read data from excel worksheet which is protected by password. I know the password, how to pass the password in connection string. my connection string is<br/> <br/> &quot;DRIVER=Microsoft Excel Driver (*.xls);&quot; &amp; &quot;DBQ=C:Test.xls&quot;<br/> <br/>   Please help me. It will be very appreciable....<br/> <br/> Thanks,<br/> Jensen<br/>Wed, 30 Sep 2009 05:46:05 Z2009-10-02T07:55:57Zhttp://social.msdn.microsoft.com/Forums/en-US/vbpowerpacks/thread/f5683b2a-97d7-49ad-b2fd-008da37e3aefhttp://social.msdn.microsoft.com/Forums/en-US/vbpowerpacks/thread/f5683b2a-97d7-49ad-b2fd-008da37e3aefselcukyazarhttp://social.msdn.microsoft.com/Profile/en-US/?user=selcukyazarDataRepeaterItem with Binding Controls Scroll ProblemHi, <div><br/></div> <div>I have DataRepeater Control with have binding one button and one textbox controls on it's repeaterItem.</div> <div> <div>I use this text and item for adding items with some value ( I mean, you enter a number and press &quot;Add&quot; button on DataRepeaterItem and Button Caption Changed &quot;Substract&quot;), but i scroll the DataRepeater, previously i entered text value and butoon caption changes their places. </div> <div><br/></div> <div>I hope i cann tell my problem,</div> <div><br/></div> <div>thanks in advance</div> </div>Wed, 30 Sep 2009 08:16:00 Z2009-10-05T03:08:52Zhttp://social.msdn.microsoft.com/Forums/en-US/vbpowerpacks/thread/d9137db9-b579-4a11-9974-abdd085589e8http://social.msdn.microsoft.com/Forums/en-US/vbpowerpacks/thread/d9137db9-b579-4a11-9974-abdd085589e8axel11http://social.msdn.microsoft.com/Profile/en-US/?user=axel11Multiple User Controls appear in the toolbox<p>Hi, iam using visual studio 2008 and when iam using VB.net and i try to add a user control to the toolbox which is fine. i can use this control and nothing is wrong with it but when i build or re-build the project, it creates multiple instences of the same control in the toolbox(basicly the controls are cloning themselfs) after a while i might have 15 usercontrols in the toolbox and it becomes cluttered with copys.Anyone heard of this before?</p>Fri, 11 Sep 2009 13:29:49 Z2009-09-30T13:23:09Zhttp://social.msdn.microsoft.com/Forums/en-US/vbpowerpacks/thread/b8b2bf93-46d5-406b-8947-c7b9ba02a771http://social.msdn.microsoft.com/Forums/en-US/vbpowerpacks/thread/b8b2bf93-46d5-406b-8947-c7b9ba02a771Zlothhttp://social.msdn.microsoft.com/Profile/en-US/?user=ZlothDataRepeater AddNew blowing up<p align=left><font style="background-color:#e8fed3" face=Arial size=2>I've got a DataRepeater with no bindings that is blowing up when I try to add a new item in the my user control's Load event.</font></p> <p align=left><font style="background-color:#e8fed3"></font> </p> <p align=left><font style="background-color:#e8fed3">Code:</font></p> <p align=left><font style="background-color:#e8fed3"></font> </p><font size=2> <p align=left></font><font color="#0000ff" size=2> <div class=codeseg> <div class=codecontent> <div class=codesniptitle><span style="width:100%">Code Snippet</span></div> <p align=left><font color="#0000ff" size=2>Private</font><font size=2> </font><font color="#0000ff" size=2>Sub</font><font size=2> ctrl_533_Load(</font><font color="#0000ff" size=2>ByVal</font><font size=2> sender </font><font color="#0000ff" size=2>As</font><font size=2> </font><font color="#0000ff" size=2>Object</font><font size=2>, </font><font color="#0000ff" size=2>ByVal</font><font size=2> e </font><font color="#0000ff" size=2>As</font><font size=2> System.EventArgs) </font><font color="#0000ff" size=2>Handles</font><font size=2> </font><font color="#0000ff" size=2>Me</font><font size=2>.Load</p> <blockquote dir=ltr style="margin-right:0px"> <p align=left>drHistory.AllowUserToAddItems = </font><font color="#0000ff" size=2>True</p></font><font size=2> <p align=left>drHistory.AddNew()</p></blockquote> <p align=left></font><font color="#0000ff" size=2>End</font><font size=2> </font><font color="#0000ff" size=2>Sub</font></p> <p align=left> </p></div></div> <p align=left> </p></font> <p></p> <p align=left><font color="#0000ff" size=2></p></font> <p align=left><font style="background-color:#e8fed3"></font> </p> <p align=left><font style="background-color:#e8fed3">Resulting error:</font></p> <p align=left><font style="background-color:#e8fed3"></font> </p> <p><font style="background-color:#e8fed3">ERROR MESSAGE:<br>Object reference not set to an instance of an object.</font></p> <p><font style="background-color:#e8fed3">STACK TRACE: <br>   at Microsoft.VisualBasic.PowerPacks.NullDataManager.CancelCurrentEdit()<br>   at Microsoft.VisualBasic.PowerPacks.DataRepeater.CancelEdit()<br>   at Microsoft.VisualBasic.PowerPacks.DataRepeater.EndCurrentItemEdit()<br>   at Microsoft.VisualBasic.PowerPacks.DataRepeater.AddNew()<br>   at RPM.Physical.Main.ctrl_533.ctrl_533_Load(Object sender, EventArgs e) in C:\Code\DotNet05\RPM 4\usercontrols\ctrl_533.vb:line 862<br>   at System.Windows.Forms.UserControl.OnLoad(EventArgs e)<br>   at System.Windows.Forms.UserControl.OnCreateControl()<br>   at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)<br>   at System.Windows.Forms.Control.CreateControl()<br>   at System.Windows.Forms.Control.ControlCollection.Add(Control value)</font></p> <p align=left><font style="background-color:#e8fed3">...</font></p> <p align=left><font style="background-color:#e8fed3"></font> </p> <p align=left><font style="background-color:#e8fed3">Any ideas as to what is going on and how to fix it?</font></p> <p align=left> </p>Mon, 25 Feb 2008 21:15:45 Z2009-09-28T04:32:53Zhttp://social.msdn.microsoft.com/Forums/en-US/vbpowerpacks/thread/04b87c7b-2f2e-4200-9793-a0c72a76ec19http://social.msdn.microsoft.com/Forums/en-US/vbpowerpacks/thread/04b87c7b-2f2e-4200-9793-a0c72a76ec19Ryanlshttp://social.msdn.microsoft.com/Profile/en-US/?user=Ryanlsdatarepeater template areaHello<br/> I am using a datarepeater control with VS 2008 SP1 to display photos and information of dogs on a Win Form. I have the dogs picture, and 3 bound text boxes with information associated with the animal. I have a click event handler on the picture that should when click retrieve some information from the text boxes and update a dataset. When I step thru the code though, all of the text boxes are showing empty strings even though there is data in them.<br/> <br/> Do I need to reference the controls different?<br/> <br/> <pre lang=x-vbnet>Private Sub DogPicture_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles DogPicture.Click Try 'Debug.Print(Me.StatusTextBox.Text) If Me.StatusTextBox.Text = &quot;OUT&quot; Then Me.DogsBindingSource.EndEdit() Me.DogsTableAdapter.UpdateStatus(&quot;IN&quot;, Me.txtDogID.Text) Me.DogsTableAdapter.DDogs(Me.DS.Dogs) Else Me.DogsBindingSource.EndEdit() Me.DogsTableAdapter.UpdateStatus(&quot;OUT&quot;, Me.txtDogID.Text) Me.DogsTableAdapter.DDogs(Me.DS.Dogs) End If Catch ex As Exception End Try End Sub</pre> Thanks! RyanThu, 24 Sep 2009 17:40:23 Z2009-09-26T12:26:14Zhttp://social.msdn.microsoft.com/Forums/en-US/vbpowerpacks/thread/d81a60eb-b277-4a92-971e-e4cab7bd6dcbhttp://social.msdn.microsoft.com/Forums/en-US/vbpowerpacks/thread/d81a60eb-b277-4a92-971e-e4cab7bd6dcbBeth62http://social.msdn.microsoft.com/Profile/en-US/?user=Beth62Is there any sample code available for the DataRepeater?Is there any sample code available for the DataRepeater?  It would be great to have the code for the weather forecast example.Wed, 23 Sep 2009 12:49:46 Z2009-09-28T01:25:40Z