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
R

Rick Beideman

@Rick Beideman
About
Posts
18
Topics
5
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • The Creation Museum
    R Rick Beideman

    Thank you for your rational response. You bring up a difficult point that I have often wondered about myself and is extremely difficult to answer. The following link discusses the question of light from distant stars from a creationist perspective http://www.answersingenesis.org/docs/405.asp[^] I think the underlying question is what is the basis of truth. As a Christian, if there appears to be a conflict between what I believe the Bible teaches and scientific theories, I should examine both critically. Scientists have been wrong, and Bible interpreters have been wrong.

    The Back Room html

  • The Creation Museum
    R Rick Beideman

    Actually, according to the Bible Noah's ark was 450 feet long, 75 feet wide, and 45 feet high. I would not call that a tiny little boat. All I have seen in this thread is straw man arguments and name calling.

    The Back Room html

  • Code profiler
    R Rick Beideman

    We are looking at purchasing a code profiler, particularly for finding performance bottlenecks. We were looking at ANTS profiler from RedGate. Any recommendations?

    The Lounge performance question

  • Soft Boiled Eggs - A question for programmers
    R Rick Beideman

    try searching fair to middling, you will find results. Here is one: http://www.worldwidewords.org/qa/qa-fai4.htm[^]

    The Lounge question css com help code-review

  • DataGrid sorting causes rows to be out of sync with bound DataTable
    R Rick Beideman

    That helped. I had to tinker with it a bit more, but it is working now. Thanks

    C# algorithms question

  • DataGrid sorting causes rows to be out of sync with bound DataTable
    R Rick Beideman

    I have bound a DataTable to a DataGrid: _ds = new System.Data.DataSet("ResultsDataSet"); _resultsTable = new System.Data.DataTable( "ResultsTable" ); _ds.Tables.Add( _resultsTable ); dataGridResults.SetDataBinding(_ds,"ResultsTable"); When the user clicks on a row, I want to get information about that row: System.Data.DataRow currRow = _resultsTable.Rows[dataGridResults.CurrentRowIndex]; This works fine until I sort the DataGrid by clicking on the column headers. Now the dataGridResults.CurrentRowIndex is out of sync with the _resultsTable. I either need to have the DataTable sort with the DataGrid, or be able to get information directly from the DataGrid. Am I doing something wrong, or do I need to add something?

    C# algorithms question

  • What screen resolution do you use?
    R Rick Beideman

    1024 x 768 Easier on the eyes

    The Lounge question

  • call a method on a parent form
    R Rick Beideman

    Raise a message in the control that the parent form handles.

    C# question hardware

  • Drawing over a picturebox
    R Rick Beideman

    Here is some code used in a paint event. If it is not in an event with PaintEventArgs you will need to get a Graphics object in another way. private void Image_Paint(object sender, System.Windows.Forms.PaintEventArgs e) { Rectangle selRect = new Rectangle(0,0,0,0); Graphics selGraphics = null; int lineThickness = 2; selGraphics = e.Graphics; selRect.X = 10; selRect.Y = 10; selRect.Width=50; selRect.Height=50; Pen selPen = new Pen(Color.Black, lineThickness); selGraphics.DrawRectangle(selPen, selRect); }

    C# tutorial csharp graphics xml help

  • PasteSpecial into Word
    R Rick Beideman

    I am trying to copy a metafile into a Word document, and then set its location on the page. It pastes it alright, but I get an error that the "object is not valid" when I try to change the location. I think I am not properly getting ahold of the shape that has been pasted, but I do not know where the problem is. Here is the code: object oEnd = "\\endofdoc"; oRange = oDoc.Bookmarks.Item(ref oEnd).Range; object pasteDataType = Word.WdPasteDataType.wdPasteMetafilePicture; oRange.PasteSpecial(ref oMissing,ref oFalse,ref oMissing, ref oFalse, ref pasteDataType, ref oMissing, ref oMissing); oRange = oWord.Selection.Range; oShapeRange = oRange.ShapeRange; oShapeRange.Left = xLoc; oShapeRange.Top = yLoc; oShapeRange.Width = xSize; oShapeRange.Height = ySize;

    C# help

  • Survey: Know anyone using Win9x/ME?
    R Rick Beideman

    I am ashamed to say that my home pc still is running Win98.

    The Lounge com tools question

  • Whats your Favourite Music? :)
    R Rick Beideman

    Some of my favorites are Steeleye Span, Van Morrison, Daniel Amos, Bruce Cockburn, Over the Rhine, the Innocence Mission, and Elvis Costello. But my FAVORITE is Frank Sinatra.

    The Lounge question

  • How to create a Bitmap from a DataGrid
    R Rick Beideman

    I need to create a Bitmap of a datagrid. Is there a way to do this?

    C# graphics tutorial question

  • Let him that is without sin cast the first stone
    R Rick Beideman

    This quote by Jesus is telling us how to interact with people, it is not telling us how the government should enforce laws. I can forgive someone who commits a crime against me, and they can still go to jail. One has to do with my relationship with that person.. how I think about them and treat them, the other has to do with how society maintains order.

    The Back Room question

  • give a name to a dialog box
    R Rick Beideman

    When you do MessageBox.Show, the first parameter is the text to display in the box, the second parameter can be a string that will display as the name. Is that what you are looking for?

    C# question help

  • Releasing bitmap file after open
    R Rick Beideman

    Closing the stream is working for me. Thanks

    C# graphics help announcement

  • Releasing bitmap file after open
    R Rick Beideman

    I tried using the Filestream and closing it after creating the bitmap. It is working. Why must the stream remain open?

    C# graphics help announcement

  • Releasing bitmap file after open
    R Rick Beideman

    I read a bitmap from file with the following code: Bitmap tempBitmap = new Bitmap(bitmapFileName); Later I want to save an updated version of the bitmap with this code: if (System.IO.File.Exists(bitmapFileName) System.IO.File.Delete(bitmapFileName); tempBitmap.Save(bitmapFileName); Unfortunately, when it gets to the delete, I get the following error: "System.IO.IOException: The process cannot access the file "filename.bmp" because it is being used by another process." The creation of the bitmap from file is holding on to the connection. I tried cloning and copying to the clipboard, but the only way I have been able to get this to work is by copying all my bitmaps to temp files and opening from the temp file. Then the file I delete and save to is a different file. I am hoping there is a better way.

    C# graphics help announcement
  • Login

  • Don't have an account? Register

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