User Profile

Collapse

Profile Sidebar

Collapse
user033088
user033088
Last Activity: Sep 20 '13, 12:03 AM
Joined: Mar 12 '13
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • user033088
    started a topic Legal Question regarding Copyright policy

    Legal Question regarding Copyright policy

    The reason I am asking this is because I am new to programming and would want to know what is right or wrong before it is too late.
    We have a software and are looking to make a few changes so that it works as we want it to.
    The software consists of all the DLL s but does not have source code(atleast I could not find it).
    Now after a lot of research I am confused and I am guessing it can be cleared after knowing the clauses in...
    See more | Go to post

  • user033088
    started a topic There was an error reflecting type ????

    There was an error reflecting type ????

    Hello,

    I have been looking online for help with this error but it is a little complicated in my case. To begin with I am very new to C# and the second thing is.. I have the exact code in 2 different Solutions it works absolutely fine in one and in other it just wont.

    So the difference between 2 solutions is:
    One is an application with all the tabs in Windows Form and the other one is same application with all the tabs...
    See more | Go to post
    Last edited by user033088; Jul 31 '13, 09:31 PM. Reason: More Info if that helps:

  • Calling RunWorkerCompletedEventArgs method from one form to another?

    I have defined a method in Form1 which uses the RunWorkerComple tedEventArgs as follows

    Code:
     public void CallFun(object sender, RunWorkerCompletedEventArgs e)
            {
                this.Status("Adding measurement ...");
                if (!e.Cancelled)
                {
                    if (e.Error == null)
                    {
                        string[] dirs = Directory.GetDirectories(this.RootPath,
    ...
    See more | Go to post

  • Is it possible to create a new COM Driver interface specifically IDispatch interface?

    I have a particular application which requires me to use the COM Driver interface. But the interface does not exist in the library folder which I got with the application. I have no clue where to start from. I can see the Interop Assemblies (e.g CHR.CHRLCD.Inte rop dll) and I added them as reference in the project but then it is asking me to add some Libraries. Can anyone explain where do I start from?
    Thank you
    See more | Go to post

  • I got the Solution
    Code:
    int i = 100;
                int j = 0;
                foreach (string f in Directory.GetFiles(@"C:\Users\pdf"))
                {
                    
                    j = j + 100;
                    xlWorkSheet.Shapes.AddOLEObject(Filename: f, Link: true, DisplayAsIcon: true, IconFileName: "pdf", IconIndex: 1, IconLabel: "pdf1", Left : i, Top: j, Width: 5, Height: 5);
    ...
    See more | Go to post

    Leave a comment:


  • I was just trying. I am very very new to coding.

    Also, this works but now all the 20 pdf files are piled up on one another in the first column of excel sheet. How can I have them separated. In the sense, how can I have them at different cells or places in the Excel sheet?
    See more | Go to post

    Leave a comment:


  • Tht is the part of code where I need some help. I am hoping to have some "for loop" for that particular pdf folder (@"C:\Users\pdf "), which has all the 20 pdf files.
    Does this make any sense?
    See more | Go to post

    Leave a comment:


  • Adding multiple pdf files into EXCEL using OLEObject??

    I have the following code which allows me to add the pdf files if I give the exact name and path of the file. But I have multiple pdf files in a folder which I want to add to each cell in the first column. I am having trouble thinking of the logic to have a for loop for a folder which contains the pdf files.
    Code:
     private void button1_Click(object sender, EventArgs e)
            {
                
                Excel.Application
    ...
    See more | Go to post

  • Is it possible to program the text import wizard of Excel using C#?

    I have a requirement where I have to import a lot of text files into excel. Up till now I can import the text files using visual studio C# but after importing the format is not exactly the way I want (mostly the delimiters). So I have to manually use the text import wizard and make the changes. I was just wondering if there is any way to program all of it.
    Delimiting the spaces, specifying the column widths, eliminating a few rows and columns....
    See more | Go to post

  • user033088
    replied to Opening a File by using the extension?
    Now, what I do is, Click on Browse ( E:\\New Files\\Folder1) then I click on the ABC.log file in that path.
    Instead is there a way I could just get E:\\New Files\\Folder1\ \ABC.log without having to browse and click on the file? Here the Folder1 will keep on changing. It could be Folder2 and so on.
    Thank You for replying !!
    See more | Go to post

    Leave a comment:


  • user033088
    started a topic Opening a File by using the extension?

    Opening a File by using the extension?

    The code below is used to return a file path.
    Code:
     private string BrowseJournalFile(string startRelativePath)
            {
                string str = "Journal files (*.log)|*.log|All files (*.*)|*.*";
                return PathTools.BrowseFile(startRelativePath, str, this.RootPath);
    
    
            }
    So once I click browse I get something like "E:\\New Files"
    But there is this...
    See more | Go to post

  • user033088
    started a topic Controlling software without source code?

    Controlling software without source code?

    I am aware that we cannot make any changes in a particular software if we do not have the source code. But I am still hoping there is some way around it(legally). I was wondering if there is anyway possible to control a software (especially when it involves a lot of windows operations). I mean integrating the front end operations with the software. For instance I can create directories/check connections by creating new forms but is there a way to...
    See more | Go to post

  • Is it possible to use switch case for the ListView items?

    I have a listView which has 4 items and respectively 4 subItems. What I am thinking of is if I can use a switch case for each of the item. Like case 1 for item1. case2 for item2 and so on. Each item will be checking for something different so I want them to be static. Well so far I could think of :
    Code:
     private void listView1_DoubleClick(object sender, EventArgs e)
            {
                if (listView1.SelectedItems.Count == 1)
    ...
    See more | Go to post
    Last edited by user033088; Apr 15 '13, 04:35 PM. Reason: Solved

  • The first code here is used to create the directories. So basically it creates E:\New Files\N-TYPE4 and its sub directories after I double click on N-TYPE4. Now the second code is a part of code for the main application which is used for measurements of electrical components. Its a huge code so cannot post here but the main part where is I make change in the part where it is
    Code:
    Settings.Default.RootPath = "E:\\New Files";
    if I...
    See more | Go to post

    Leave a comment:


  • Yes both are different applications (Forms) I have another question posted asking for the same thing and you replied to that too. It is basically continuity of this part only. They are 2 different applications but I want the output (i.e the selected item path) to be used in form2.
    See more | Go to post

    Leave a comment:


  • So with the code that I wrote till now, I get output as a path of whatever item is selected. For example if I Double click on N-TYPE4, firstly E:\New Files will be created and then E:\New Files\N-TYPE4. And, then the sub directories. What I am mainly interested is in the selected item path which is E:\New Files\N-TYPE4. Now, I have an application which basically is used for measurements of electrical components. This application once started has...
    See more | Go to post

    Leave a comment:


  • Passing the listBox1.SelectedItem value from one form to another?

    The output for the listBox1.Select edItem in Form1 is a path (eg: "E:\\New Files")
    Now Form2 basically contains the code for an application. I want to use the output of this selectedItem in Form2.
    Please help me as I am very new to C#.
    Thank you in advance
    See more | Go to post

  • I am sorry but could you please clear this for me. When you say "After creating the directory copy and paste your application (with all the supporting files) which you want to start from directory."
    Does this mean after I create the E:\\New Files\\ directory I should paste the application .exe file here? Because what I am looking for is basically changing the user control and am not sure how that is possible. Once the application...
    See more | Go to post

    Leave a comment:


  • How to set rootpath of application which is the path of a selected item in listbox?

    I want to set the rootpath of an executable application. This rootpath should be the same as the path of an item that I select from a ListBox. The code for selecting the item is as follows.
    Code:
    namespace Menu
    {
        public partial class Form1 : Form
        {
    
            private Button button;
            private ListBox listBox1;
            private string selecteditem;
    
            public Form1()
    ...
    See more | Go to post

  • Thank You sooo much. Its exactly what I was looking for!!!
    Thanks.!!
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...