Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
H

H is here

@H is here
About
Posts
48
Topics
7
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Bitmap.SelectActiveFrame
    H H is here

    Hi everyone, I would like to know if someone have experienced slow issues with Bitmap.SelectActiveFrame in a 64 bit system, or why is the method so much slower in a 64 bit system than in a 32 bit? Here is a sample code that I have used to test:

    Bitmap m_bmp = new Bitmap("C:\\01.tif");
    String m_Start = DateTime.Now.ToString("hh:mm:ss");
    System.Diagnostics.Debug.WriteLine("Started at: " + m_Start);
    for (Int32 a = 0; a < 22; a++)
    { m_bmp.SelectActiveFrame(FrameDimension.Page, a); }
    String m_Finish = DateTime.Now.ToString("hh:mm:ss");
    System.Diagnostics.Debug.WriteLine("Finished at: " + m_Finish.ToString());

    The 01.tif file is a black & white image with 1bpp and 23 pages with 300dpi. Test made with Windows7 VS2010 .NetFramework 4.0 32 bit: Less than 1 second. Test made with Windows7 VS2010 .NetFramework 4.0 64 bit: 6 seconds. This is really a lot. Can someone be kind to help me ? Thank you. Best regards.

    C# csharp css graphics debugging help

  • XML Reorder
    H H is here

    Scott Dorman wrote:

    Not to sound flippant

    Not at all, it is a old system, and probably they are processing the xml manually. X| Thanks again.

    C# xml help question announcement

  • XML Reorder
    H H is here

    Hi and thank you for your answer. Yes, your are right, for me it doesn't matter. It is mattering for the other system that am communicating with. I was only trying to check if there was a reason for that or if I could do something about it. Best regards for all. :)

    C# xml help question announcement

  • XML Reorder
    H H is here

    Hi again, Yes i know that. Even if you use the XmlWriteMode.WriteSchema with the xml, edit the schema with VS to match the order, read the edited file and save it again the result is the same. It simply doesn't maintain the order. Thanks ans best regards

    C# xml help question announcement

  • XML Reorder
    H H is here

    Hello and thank you for your answer. And what is more interesting is that I have a xsd file with this xml and it still reorder the xml. X| Humm!

    C# xml help question announcement

  • XML Reorder
    H H is here

    Hello everyone, I would like to know if someone has experienced this problem: I have a xml file:

    <?xml version="1.0" standalone="yes"?>
    <requests>
    <request>
    <idRequest>123</idRequest>
    <requestType>001AA</requestType>
    <subRequest>
    <name>Some Name</name>
    <birthDate>12-12-2007</birthDate>
    <isbirthDateComplete>true</isbirthDateComplete>
    </subRequest>
    <observations>Some Observations...</observations>
    <recordType>Insert</recordType>
    </resquest>
    </requests>

    If I read the xml:

    DataSet dsTest = new DataSet();
    dsTeste.ReadXml(Application.StartupPath + "\\Test.xml");

    and then write it back:

    dsTest.WriteXml(Application.StartupPath + "\\Test1.xml");

    it gives me:

    <?xml version="1.0" standalone="yes"?>
    <requests>
    <request>
    <idRequest>123</idRequest>
    <requestType>001AA</requestType>
    <observations>Some Observations...</observations>
    <recordType>Insert</recordType>
    <subRequest>
    <name>Some Name</name>
    <birthDate>12-12-2007</birthDate>
    <isbirthDateComplete>true</isbirthDateComplete>
    </subRequest>
    </resquest>
    </requests>

    It simply change the order of the nodes. Is there any reason for this? Thanks in advance.

    C# xml help question announcement

  • connect to password-protected access-file
    H H is here

    Hello In your connection string: dim MyConnection As String = "Provider= Microsoft.Jet.OLEDB.4.0; Data Source=MyDatabase.mdb;persist Security Info=False;Jet OLEDB:Database Password=sysadm" Where sysadm is your password. Tip: Don´t use that password :-D Regards

    Visual Basic csharp database tutorial question

  • withevents in vb.net
    H H is here

    Hello The withevents key word means that you can enable the catching of events in that object. If you are accessing a class with events you need to insert that keyword to catch them.If not you can still access the methods, properties... but you won´t catch events. 'Main Form Private WithEvents Catch_Event as new Test Private Sub Test_Result (ByVal Value as Integer) Handles Catch_Event.Test_Result End Sub 'Class Test Public Class Test Public Event Test_Result (ByVal Value as Integer) Public Function StartEvent() RaiseEvent Test_Result (10) End Function End Class Hope it Helps

    Visual Basic question csharp tools

  • list view
    H H is here

    Just do this: Private Sub ListView1_ColumnClick(ByVal sender As Object, ByVal e As System.Windows.Forms.ColumnClickEventArgs) Handles ListView1.ColumnClick ListView1.ListViewItemSorter = New CompareListViewItems(e.Column, ListView1) End Sub My mistake Sorry:)

    Visual Basic algorithms tutorial question

  • list view
    H H is here

    Here is a class to sort a listview. Just pass the index of the column and the listview when creating a new instance of the class. Public Class CompareListViewItems Implements IComparer Shared bSortDirection As Boolean = True Dim sRoutineToUse As String = "String" Dim lView As ListView 'the listview in question Dim iColumn As Integer 'the column to sort Dim lvCollection As ListView.ListViewItemCollection Dim bSafeToSort As Boolean = False Sub New(ByVal itemIndex As Integer, ByVal lvListView As ListView) iColumn = itemIndex lView = lvListView bSortDirection = Not bSortDirection lvCollection = New ListView.ListViewItemCollection(lvListView) determineType() End Sub Private Function determineType() As Boolean 'There needs to be at least 2 elements to sort -- If (lView.Items.Count < 2) Then bSafeToSort = False Return False End If 'If a value is Null, a subitem might not be added If (checkForNull() = True) Then bSafeToSort = False Return False End If 'If there are values in each element, lets determine the type If (isItADate() = True) Then sRoutineToUse = "Date" ElseIf (isItANumber() = True) Then sRoutineToUse = "Number" Else sRoutineToUse = "String" End If End Function Private Function checkForNull() As Boolean Dim lvTest As ListViewItem Dim sItemContents As String For Each lvTest In lvCollection Try If iColumn = 0 Then sItemContents = lvTest.Text Else sItemContents = lvTest.SubItems(iColumn).Text End If Catch Return True End Try Next bSafeToSort = True Return False 'we are good to go End Function Private Function isItADate() As Boolean '-- Is it a date? -- Dim lvTest As ListViewItem 'assigned a new row Dim oObjectToTest As Object 'recipient of the assignment Dim sItemContents As String 'contents of the element '-- Loop through each element For Each lvTest In lvCollection If iColumn = 0 Then sItemContents = lvTest.Text Else sItemContents = lvTest.SubItems(iCol

    Visual Basic algorithms tutorial question

  • Deleting bitmap files after loading
    H H is here

    Hello I Think you have to release the image. So try this: PictureBox1.Image.dispose PictureBox1.Image=Nothing Hope it helps

    Visual Basic graphics help question announcement

  • Starting a process from a Windows Service
    H H is here

    Hello You must allow your service to interact with the desktop. If you go to the properties of the service on the LogOn Tab you must check that item. Hope it helps

    Visual Basic winforms help question announcement

  • TreeView
    H H is here

    Hello Is there any way to get all the child nodes of a selected node? I just need a idea how to do this. Thanks you all

    Visual Basic tutorial question

  • image at runtime
    H H is here

    Hello You have to reference the System.Drawing library Then in top of your class insert: Imports System.Drawing That's it

    Visual Basic help

  • image at runtime
    H H is here

    Hello Dim pic_image As New Bitmap("c:\sample.jpg") MsgBox(pic_image.Size.Height & "---" & pic_image.Size.Width) Hope it helps

    Visual Basic help

  • Draw a rectange with the mouse - how?
    H H is here

    Hello Here is the code how to draw a rectangle on a picture box named picmain: Dim startX As Integer Dim StartY As Integer Private Sub picmain_MouseMove(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles picmain.MouseMove If e.Button = MouseButtons.Left Then picmain.Refresh() Dim g As Graphics = Graphics.FromHwnd(picmain.Handle) Dim myPen As Pen = New Pen(Color.Red) myPen.DashStyle = System.Drawing.Drawing2D.DashStyle.Dash g.DrawRectangle(myPen, startX, StartY, Math.Abs(startX - e.X), Math.Abs(StartY - e.Y)) End If End Sub Private Sub picmain_MouseDown(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles picmain.MouseDown startX = e.X StartY = e.Y End Sub The resizing will be up to you. Hope it helps

    Visual Basic graphics winforms adobe question

  • Row position in a Table
    H H is here

    Hello Is there any chance to get the row position in a table using a 'select' statement ? Thanks

    Visual Basic question

  • Is it possible to run a vb.net exe file on Windows'98 OS
    H H is here

    Hello Yes you can. Just install the .Net framework on the Windows 98 computer. I dont know what windows 98 the .Net framwork is supported, but I am sure that in windows 98 SE it works.

    Visual Basic csharp question

  • Write a .Net user control for VB6
    H H is here

    Hello You can get more information here: http://www.ondotnet.com/pub/a/dotnet/2003/01/20/winformshosting.html?page=last&x-showcontent=text[^]

    Visual Basic tutorial csharp com question

  • Sending info from Form1 to Form2
    H H is here

    The easy way is to create a public variable on Form2 and pass the txtusername.text to that variable Insert on the top of the class of Form2 Public UserName as String In the frmLogin: Dim SecondForm as new form2 SecondForm.UserName=txtusername.text SecondForm.show me.hide You can also use a property but... Hope it helps

    Visual Basic question
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups