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
V

velkropie

@velkropie
About
Posts
12
Topics
4
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Example DataGridView like Outlook...
    V velkropie

    here is you drag and drop to get you started void grdCampaigns_MouseDown(object sender, MouseEventArgs e) { if (e.Button == MouseButtons.Right) { DataGridView.HitTestInfo info = grdCampaigns.HitTest(e.X, e.Y); if (info.RowIndex >= 0) { DataRowView view = (DataRowView) grdCampaigns.Rows[info.RowIndex].DataBoundItem; if (view != null) grdCampaigns.DoDragDrop(view, DragDropEffects.Copy); } } } void lstCategories_DragEnter(object sender, DragEventArgs e) { e.Effect = DragDropEffects.Copy; } Collapse void lstCategories_DragDrop(object sender, DragEventArgs e) { if (e.Data.GetDataPresent(typeof(DataRowView))) { // Determine which category the item was draged to Point p = lstCategories.PointToClient(new Point(e.X,e.Y)); int index = lstCategories.IndexFromPoint(p); if (index >= 0) { // Get references to the category and campaign DataRowView category = (DataRowView)lstCategories.Items[index]; DataRowView campaign = (DataRowView) e.Data.GetData(typeof(DataRowView)); // Get the old and new category ids int newID = (int)category[0]; int oldID = (int)campaign[1]; // Make sure the two do not match if (oldID != newID) { campaign.BeginEdit(); campaign[1] = newID; campaign.EndEdit(); } } } }

    The Devil Lives in all of us, It's up to you to let HIM/HER out!!!!!

    C# tutorial help question

  • Example DataGridView like Outlook...
    V velkropie

    how about you start programming it and we can guide you from there?

    The Devil Lives in all of us, It's up to you to let HIM/HER out!!!!!

    C# tutorial help question

  • Help with reading XML [modified]
    V velkropie

    ok, i'm using this, but the code is only loading one node to my combobox, can someone help me with this? XmlDocument doc = new XmlDocument(); doc.Load("ComboItemName.xml"); XmlNodeList Nodes = doc.GetElementsByTagName("NAME"); foreach (XmlNode node in Nodes) { NewNameLoad = node.InnerText.ToString(); } XmlNodeList NodesA = doc.GetElementsByTagName("URL"); foreach (XmlNode node in NodesA) { NewUrlLoad = node.InnerText.ToString(); } comboChannels.Items.Add(new RSSChannel(NewNameLoad, NewUrlLoad)); // And select the first one comboChannels.SelectedIndex = 0; -- modified at 13:49 Wednesday 11th July, 2007

    The Devil Lives in all of us, It's up to you to let HIM/HER out!!!!!

    C# xml help tutorial

  • Help with reading XML [modified]
    V velkropie

    hey, thanks for your response, how can i load the list of names, urls to a combobox based on your code? thanks again

    The Devil Lives in all of us, It's up to you to let HIM/HER out!!!!!

    C# xml help tutorial

  • how to sort datagridview ? (a numeric field)
    V velkropie

    here is a bubble sort for you... for (i=0; iThe Devil Lives in all of us, It's up to you to let HIM/HER out!!!!!

    C# tutorial algorithms question

  • Help with reading XML [modified]
    V velkropie

    Hello, i would like to have a windows form combo box populated from an xml file, here is the format of the xml file //i had to add quotes to the tags to display, there is no quotes in real code..thanks "<"ITEMS">" "<"NAME">""<"/"NAME">" "<"URL">""<"/"URL>" "<"/"ITEMS">" i want to take these two items and assign them as variables NewName; NewUrl; which i will then populate the combo box with... and read them with this code // Declare a variable of type XmlTextReader //XmlTextReader xtr = null; //// Declare a string that holds the name of the file //string fileName = "ConboItems.xml"; //try //{ // // Initialize the XmlTextReader variable with the name of the file // xtr = new XmlTextReader(fileName); // xtr.WhitespaceHandling = WhitespaceHandling.None; // // Scan the XML file // while (xtr.Read()) // { // // every time you find an element, find out what type it is // switch (xtr.NodeType) // { // case XmlNodeType.Text: // // If you find text, put it in the combo box' list // // this.comboChannels.Items.Add(xtr.Value); // break; // } // } // // For this example, select the first item // this.comboChannels.SelectedIndex = 0; //} //finally //{ // // Close the XmlTextReader // if (xtr != null) // xtr.Close(); //} -- modified at 15:46 Monday 9th July, 2007

    The Devil Lives in all of us, It's up to you to let HIM/HER out!!!!!

    C# xml help tutorial

  • How to Read patterns from a pool of numbers
    V velkropie

    ok, fair enough... all i want to do is to have a table or grid with about 100 to 200 numbers, have a user input any number from 1-100...have the program read a pattern if any and display it and if possible based on that pattern found, predict numbers that a user may place in the grid or table.... can that be done? Thanks:-D

    The Devil Lives in all of us, It's up to you to let HIM/HER out!!!!!

    C# tutorial

  • How to Read patterns from a pool of numbers
    V velkropie

    Hello, I want to write a program that detects patterns from a pool of numbers imputed... Thanks,

    The Devil Lives in all of us, It's up to you to let HIM/HER out!!!!!

    C# tutorial

  • Text/Log Files
    V velkropie

    Michel Prévost wrote:

    A good started could be string[] logFields = logLine.Split(',');

    this is what i have showing in a text box... how will your line fit here... private void btnOpenFile_Click(object sender, EventArgs e) { OpenFileDialog dlg = new OpenFileDialog(); dlg.Title = "Open File"; dlg.InitialDirectory = @"c:\"; dlg.Filter = "Text Files (*.txt) | *.txt |Log Files (*.log) | *.log | All Files (*.*) | *.*"; if (dlg.ShowDialog() == DialogResult.OK) { StreamReader sr = File.OpenText(dlg.FileName); string s = sr.ReadLine(); StringBuilder sb = new StringBuilder(); while (s != null) { sb.Append(s); s = sr.ReadLine(); } sr.Close(); txtContent.Text = sb.ToString(); } The Devil Lives in all of us, It's up to you to let HIM/HER out!!!!!

    C# csharp sysadmin windows-admin help tutorial

  • Text/Log Files
    V velkropie

    Hello, I was looking at the log files for IIS, and want to display them in a windows form using c#. I already know how to just display them inside a textbox, but the content is not display in a friendly manner. what i need help with, is displaying each section or part before the comma in its own textbox or control. 193.1*.7*.*, WebUser, 3/28/2006, 0:00:04, MSFTPSVC1, SERVER, 1*.1*.1.1*, 0, 0, 0, 331, 0, [57]USER, WebUser, -, as you can see the log file is comma delimited... i hope you understand my question... thanks The Devil Lives in all of us, It's up to you to let HIM/HER out!!!!!

    C# csharp sysadmin windows-admin help tutorial

  • asp button
    V velkropie

    // C# private void SetDefault(Button myDefaultBtn) { this.AcceptButton = myDefaultBtn; } The Devil Lives in all of us, It's up to you to let HIM/HER out!!!!!

    Web Development question

  • Synchronizer
    V velkropie

    has anyone here ever developed a synchronizer or file transfer program... i want to develop a file transfer type program to tranfer photos from my phone to my pc... can anyone here share some web links to code so i can reference something similar, it would be great... i also plan to give out...once developed... thanks The Devil Lives in all of us, It's up to you to let HIM/HER out!!!!!

    C#
  • Login

  • Don't have an account? Register

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