Software Development Network Logo
  • SQL Server
  • Visual FoxPro
  • Windows Forms
  • SharePoint Products
  • Game Technologies
  • IE Development
  • Visual Basic
  • Audio and Video
  • Microsoft ISV
  • Smart Devicet
  • Visual Studio
  • Visual C#
  • Windows Vista
  • Visual C++
  • .NET Development

Software Development Network >> Jacob Pettersson's Q&A profile

Jacob Pettersson

Member List

mscherotter
GangaIndu
RBChallenger
DamsDev2007
gregaug
The Continental
MattWoberts
Nilavu
BrentB
Michael BBB
Isabel_ve
Kim Brandt Jensen
Laser2020
Whoisit
TA123
Josh Smith
hrubesh
BobInIndy
Ehsan Enaloo
John.Doe
Only Title

Jacob Pettersson's Q&A profile

  • Visual C# Copy file to folder

    string cpath = listBox2.SelectedIndex.ToString(); string cpath2 = cpath + "temp"; if (cpath.Substring(cpath.Length-3,3).ToLower() == "xml") { File.Copy(cpath, cpath2); } I have a listbox of folders and when i click a folder the files appear in my listbox2...i want to select one the files click by button and that file is copied to my c:\\temp folder.....I am getting the exception that my start index must be less than zero....any help...thanks! I have two listboxes one list files and another just list the c:\\temp directory...what i want to do is copy the file i select in the first listbox to the c:\\temp direcotry which is in the second listbox by clicking my button1....where ...Show All

  • Visual C# Beware my nasty code! - how can I simplify this?

    Hi have the following switch statement that tests for a value and then loads up its relating Form. switch (objQuestion.m_objQuestionType.m_strCustomForm) { case "FormInspectionAnswerCustomLocation": frm = new FormInspectionAnswerCustomLocation(ref objQuestion); break; case "FormInspectionAnswerCustomCause": frm = new FormInspectionAnswerCustomCause(ref objQuestion); break; case "FormInspectionAnswerCustomProduct": frm = new FormInspectionAnswerCustomProduct(ref objQuestion); break; case "FormInspectionAnswerCustomSupplier": frm = new FormInspectionAnswerCustomSupplier(re ...Show All

  • Smart Device Development UPDATE MICROSOFT VISUAL STUDIO 8

    WHERE AND HOW DO YOU GET A MICROSOFT VISUAL STUDIO 8 UPDATE i select "visual c++", i choose,"smart device", i choose any template. i wait 30 seconds and i get small window that says "microsoft visual studio" "ok". thats it. this happens on all the templates i had a beta test installed. i used the beta test uninstall to remove it. i removed all the files on the remove list. i tried to used the beta uninstall now, and it does not see any removable files i like to believe the idea that the VS 2005 beta still has a file on the disk. i just reloaded vs 2005 twice and i have to same problem. ive reloaded before 15 times and i have the same problem i sometimes get the message"zl18xx plat ...Show All

  • .NET Development Failed to access IIS metabase, VS2005 RC

    I am developing a webservice in Visual Studio RC. I have just got a new pc and my problem is that I am not able to access this webservice. I have created a virtual directory in IIS, but if I try to browse there, I get a "Failed to acces IIS metabase" error message. Does anybody know how I can resolve this problem i face the same problem , but i have installed the .net framework after the iis , and by the way , the time tracker sample is working very good and without any problem ! ...Show All

  • SQL Server The script threw an exception: Exception of type 'System.OutOfMemoryException' was thrown.

    Hi, I got an strange problem with one of my packages. When running the package in VisualStudio it runs properly, but if I let this package run as part of an SQL-Server Agent job, I got the message "The script threw an exception: Exception of type 'System.OutOfMemoryException' was thrown." on my log and the package ends up with an error. Both times it is exactly the same package on the same server, so I don't know how the debug or even if there is anything I need to debug Regards, Jan Really you need more detail, what is the actual code operation that raises this exception. It is easy enough to write code that consumes too much memory, so you need to examine why and address the ...Show All

  • .NET Development Javascript menu appears back of Dropdown list box web server control

    Hi, In my project i m using javascript menu. While running the application, the javascript menu appears back of dropdown listbox. How to make it to appear above the dropdown list control Is this possible (I m using IE 6 browser, whether is this browser problem ) I really not able to find the problem...can any1 please help me... I m in urgent need...!!!! Thankfully, jm This is an old problem that relates to how IE displays drop-down boxes. The easiest way to fix the problem is to upgrade to Internet Exporer 7. It should work just fine. All of the IE browsers before version 7 use a different mechanism to display drop-down boxes. The only way to get it to not show over the top of your HTML tags is to temporarily turn the yourSpecific ...Show All

  • Visual Studio Multiple projects or multiple database???

    We have many different applications. Should I create separate sourcesafe databases for each application or should I create one database with multiple projects The advantages of the latter are obvious in that all code can be seen at once. Our company uses contractors on a regular basis however and it would be nice to only give them access to the application they are working on. What are people's thoughts on this Thanks. Hi Yes, you highlighted two of the main concerns. Ease access by have a central database and security in limiting access to contractors. You should try to keep the database under 5 gig in size so if combining applications into one database will make your database start to app ...Show All

  • Windows Forms KeyPress is handled before KeyDown?

    I thought that the KeyDown event was handled before the KeyPress event, but it looked like I was wrong. Can someone please confirm that KeyPress is handled before KeyDown By the way, why the Delete key doesn't get trapped in the KeyPress event (it does get trap in KeyUp/Down events though). Thanks. Hi Under the covers KeyDown is analogous to the WM_KEYDOWN message, KeyUp is the WM_KEYUP message. Key Press is a .net event that's fired after the key comes up. The easiest way to figure this out is to over-ride WndProc in your form with a few Debug.WriteLine / Print statements to see what is happening. Something along these lines: protected override void WndProc( ref Message m) ...Show All

  • .NET Development how to download a file ?

    Sir, I want to know that how to download a file from URL using C#.NET. I do a coding for the application about Download Manager,but at the time of downloading a file ie to save the file, the file is saved at its specified location ,but all files are corrupted. So tell me that what type of coding i can do in C#.NET. 1) I develope the application for download manager on a PC, on which XP Service Pack2 is installed. Sir the coding for the download manager i used is as follows private void button1_Click(object sender, EventArgs e) { WebClient client = new WebClient(); string name1 = saveFileDialog1.FileName; this.saveFileDialog1.InitialDirectory = System.Reflection.Assembly.GetExecutingAssembly().Location; this.sav ...Show All

  • Visual C# Adding text to a listbox

    I am trying to add text to a listbox by using a string type variable. During debug I noticed that the variable had the text I wished to add to the listbox, but the listBox1.Items.Add(s_Text); didnt' do anything. Is there a different way your supposed to do this ok the problem is simple. The user creates another main form instance in the other form "Add Items" and adds items to this new main form instance - this will not work. It will continue to operate but since the original existing main form is "alive", you are not dealing/handling with it but creating a new instance (another instance) of the main form. You need to reference the main form into this "Add Items" form and ...Show All

  • Visual Studio Express Editions Open/Close Forms

    Hello, Seven Forms. The first one is a MenuForm with 5 Buttons. Each Buttons on this Forms opens one other Form. The MenuForm is always open, and there should be no more than one other Form open at the time. (Form3 opens from inside of Form2). Private Sub Button2_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click         Dim myForm As New Form4        If Form4.Visible = True Then             Form4.Refresh()        Else             Form4.Show()     &nbs ...Show All

  • Software Development for Windows Vista Displaying Media from an IStream - is Directshow what I should use

    Warning - I'm a complete beginner at DirectShow. I need to come up with a solution to play audio and video in our application. However there are several gotchas in the requirements, that are making it difficult for me to know where to begin - I think Direct~Show is the answer, but am not sure how to proceed. The first gotcha is that the media does not exist as files on the users machine - they are downloaded from remote machines and need to be played as they are downloaded. I can provide an IStream interface to the data. The second gotcha is that I do not know what format the data is in ahead of time. I do receive the filename of the data on the remote machine and I can seek to any position in the file and read a block of data. ...Show All

  • Visual Studio 2008 (Pre-release) Problem with Listview, XAML and hover

    Hi, I have a program that is done in XAML with C# code behind. I have a ListView that is employing the GridView layout. I need to be able to detect the ListViewItem over which the mouse is hovering so that I can make another form pop up (similar to a ToolTip) displaying information relevant to the user contained in that item. The ListView is instantiated in XAML, so the GetItemAt event only allows me one argument, index. I would like to be able to use mousePoint.X and mousePoint.Y to get the item that the mouse it currently over. I tried this event handler: grdUsers.AddHandler(ListViewItem.MouseEnterEvent, new MouseEventHandler(Tip_Opening)); however, it doesn't give me the ListViewItem as the sender, but, instead, gives me the ListView it ...Show All

  • Visual Studio Help to use Sandcastle

    Hi, I am new bee for using Sandcastle. 1. I am downloaded Septerber version of Sandcastle, and I want o use for VS2005. 2. What are the steps to follow to produce documentation (Chm) of C#2005 files. Please help me, thanks in advance. Regards Rama Gudimetla Hi Anand, I need one more help, 1. Whenever we need the documentation, Is relavatn fiels need to be placed under the Subcastle folder or we can try from anywhere 2. While converting process we need to take command propt from windows-run or . Net command prompt Please provide me the answers, thanks in advance. Regards Rama gudimetla ...Show All

  • .NET Development MSXML 6

    Is there a merge module available yet for the new MSXML 6 If not, why Thanks If they haven't yet, it is probably not going to be done. I install MSXML6 using my bootstrap program (using the .msi) rather than through the merge module. ...Show All

©2008 Software Development Network