Click here to Skip to main content
15,887,746 members
Home / Discussions / C#
   

C#

 
GeneralRe: How do they do this when copying files? Pin
Pete O'Hanlon2-May-13 0:01
mvePete O'Hanlon2-May-13 0:01 
GeneralRe: How do they do this when copying files? Pin
Septimus Hedgehog2-May-13 0:57
Septimus Hedgehog2-May-13 0:57 
GeneralRe: How do they do this when copying files? Pin
Pete O'Hanlon2-May-13 1:00
mvePete O'Hanlon2-May-13 1:00 
GeneralRe: How do they do this when copying files? Pin
Septimus Hedgehog2-May-13 1:23
Septimus Hedgehog2-May-13 1:23 
AnswerRe: How do they do this when copying files? Pin
Abhinav S1-May-13 23:36
Abhinav S1-May-13 23:36 
Questionmodify C# 2008 desktop application Pin
classy_dog1-May-13 16:47
classy_dog1-May-13 16:47 
AnswerRe: modify C# 2008 desktop application Pin
Pete O'Hanlon1-May-13 18:54
mvePete O'Hanlon1-May-13 18:54 
Questionunexpected end of file Pin
miket2144123451-May-13 13:54
miket2144123451-May-13 13:54 
i am getting an error: unexpected end of file on the line that contains databaseKeyValue. Not sure why that is the case. Any help will be greatly appreciated.


C#
private static bool addItemsToDrawing(
    Visio.Page drawingPage)
{
    bool itemsAdded = false;


        // Add the shapes to the drawing page. The returned list contains
        // the shape IDs of the added shapes.
        Array shapeIDs;
        addShapesToDrawing(drawingPage, out shapeIDs);

        if (shapeIDs != null)
        {
            // Loop through each new shape, adding the shape to the map.
            for (int index = shapeIDs.GetLowerBound(0);
                index <= shapeIDs.GetUpperBound(0);
                index++)
            {
                // Get the shape.
                short shapeID = (short)(int)(shapeIDs.GetValue(index));
                Visio.Shape newShape = drawingPage.Shapes.get_ItemFromID(shapeID);

                // Add the shape to the map.
                // This is needed to connect the shapes.

                // The primary key in the database is used in the database
                // connection table, so we need to save the mapping from 
                // this database key to the corresponding shape. The 
                // database key value was placed into each shape's Prop.ID 
                // value when the database-linked shapes were added to the
                // drawing.
                int databaseKeyValue = newShape.get_Cells(_VisioPropCellPrefix + _IDColumn).get_ResultInt((short)Visio.VisUnitCodes.visNumber, 0);

                _ItemShapeIndexMap.Add(databaseKeyValue, newShape.Index);
            }

            itemsAdded = true;
        }
    

    return itemsAdded;
}

AnswerRe: unexpected end of file Pin
Freak301-May-13 22:26
Freak301-May-13 22:26 
AnswerRe: unexpected end of file Pin
Eddy Vluggen2-May-13 0:30
professionalEddy Vluggen2-May-13 0:30 
QuestionProblem while exporting a aspx page to pdf Pin
Member 1002163430-Apr-13 23:20
Member 1002163430-Apr-13 23:20 
AnswerRe: Problem while exporting a aspx page to pdf Pin
Jasmine25011-May-13 8:40
Jasmine25011-May-13 8:40 
QuestionBest practice to select and copy a file to a remote location? Pin
matleeds30-Apr-13 23:07
matleeds30-Apr-13 23:07 
AnswerRe: Best practice to select and copy a file to a remote location? Pin
Jasmine25011-May-13 8:37
Jasmine25011-May-13 8:37 
AnswerRe: Best practice to select and copy a file to a remote location? Pin
jschell1-May-13 8:41
jschell1-May-13 8:41 
Questionpassword creation in c# winform Pin
Member 1002123530-Apr-13 18:39
Member 1002123530-Apr-13 18:39 
AnswerRe: password creation in c# winform Pin
Richard MacCutchan30-Apr-13 21:42
mveRichard MacCutchan30-Apr-13 21:42 
AnswerRe: password creation in c# winform Pin
GuyThiebaut1-May-13 2:14
professionalGuyThiebaut1-May-13 2:14 
Questionhow to get the value of a control in a process which start with Process.start Pin
Edward_Zhao30-Apr-13 18:11
professionalEdward_Zhao30-Apr-13 18:11 
AnswerRe: how to get the value of a control in a process which start with Process.start Pin
Richard MacCutchan30-Apr-13 21:37
mveRichard MacCutchan30-Apr-13 21:37 
GeneralRe: how to get the value of a control in a process which start with Process.start Pin
Edward_Zhao1-May-13 14:33
professionalEdward_Zhao1-May-13 14:33 
GeneralRe: how to get the value of a control in a process which start with Process.start Pin
Richard MacCutchan1-May-13 21:02
mveRichard MacCutchan1-May-13 21:02 
QuestionSaving DrawLine to Image: SOLVED Pin
Member 792126830-Apr-13 3:34
Member 792126830-Apr-13 3:34 
AnswerRe: Saving DrawLine to Image Pin
Eddy Vluggen30-Apr-13 4:05
professionalEddy Vluggen30-Apr-13 4:05 
GeneralRe: Saving DrawLine to Image Pin
Member 792126830-Apr-13 5:11
Member 792126830-Apr-13 5:11 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.