JIM.H.'s Q&A profile
Visual Basic How can we know what copy is currently going on?
As an administrator, i want to keep a track of which file the user is currently copying and from which location to which location, using API in VB6. I want to stop/interrupt the copy if the user is trying to copy any important data. Regards, Dinesh ...Show All
Visual Studio Team System TFS with Visual Foxpro 8
Can TFS be used with VFP 8.0 SP1 The list mentions only VFP9. I have been using VFP8 + VSS 6 for many years and need to change to something more reliable. ...Show All
Visual Studio Team System How to segregate multiple TeamBuild projects?
We are currently at a certain version (1.2) and have multiple solutions, all which need to be built separately. So I have a separate TeamBuild for each. But once we move to next version I will have to recreate the TeamBuild project files for each of these solutions. The TeamBuilds node in Team Explorer will be extremely cluttered with all these projects. Is there any way to create a folder beneath the 'Team Builds' node in Team Explorer so I can group my builds by version Also, how do I delete an existing TeamBuild project TIA! Hi DQM - Just to get more context into your scenario: 1. Why do you need to build each of the solutions separately Can we build these together but drop the binaries in separate folders 2. Would you c ...Show All
Visual Studio Tools for Office Problem creating folder in Outlook Add-In.
Hello, I developed an Outlook Add-In and his setup project. When in startup my tries to create a new folder: this ._tasks_folder = (Outlook. MAPIFolder ) this .ActiveExplorer().Session.GetDefaultFolder(Outlook. OlDefaultFolders .olFolderTasks); Outlook. MAPIFolder sent_folder = (Outlook. MAPIFolder ) this .ActiveExplorer().Session.GetDefaultFolder(Outlook. OlDefaultFolders .olFolderSentMail); string folder_name_sent_sms = "NEW FOLDER" ; try { sent_folder.Folders.Add(folder_name_sent_sms, Outlook. OlDefaultFolders .olFolderContacts); } catch {} In development machine every thing works fine. But, when I deploy to other machine the folder is not cr ...Show All
Software Development for Windows Vista is there anyway that i can use WWF in Web Developer 2005 Express?
i can not install the it into Web Developer 2005 Express. anybody can help me ...Show All
Visual C# Why BindingList is there
Why BindingList<> is being placed in System.ComponentModel instead of System.Collections.Generic while List<> is in System.Collections.Generic To expand on that, if BindingList were in System.Collections.Generic, that would probably encourage people to use it in inappropriate scenarios. Its databinding support has overheads, and is something you don't want in an awful lot of cases. It's not part of ordinary collection class behaviour. So it's in a different namespace to emphasize the fact that it's not for everyday collection usage. ...Show All
Visual Basic Is there any way to remove block of bytes from middel of binary file?
Is there any way to remove block of bytes from middel of binary file thanks.. this is the right code to merege many files in one archive file: Sub AppendFile(ByVal SourceFile As String, ByVal DestinationArchive As String) Dim w As Date = Now Dim fi As New IO.FileInfo(SourceFile) Dim fi2 As New IO.FileInfo(DestinationArchive) Dim fs As IO.FileStream = fi.OpenRead Dim fd As IO.FileStream = fi2.OpenWrite Dim startIndex As Long = 0 Dim retval As Long Dim nBytes As Integer = 100 Dim ByteArray(nBytes) As Byte Dim StartPos As Long If fi2.Exists = False Then StartPos = 0 Else StartPos = fi2.Length End If fd.Seek(StartPos, SeekOrigin.Begin) retval = fs.Read(ByteArray, 0, nB ...Show All
Visual C# How do you modify windows form control's properties from other classes?
I am trying to make it so when a button is clicked the text on that button will change to something else using a method from a different class. I can't quite get it. This is what I have so far: using System; using System.Windows.Forms; public class Form1 : Form { public Button button1; // Windows Form Designer generated code here... } private void button1_Click(object sender, EventArgs e) { // I want the method to be called here } And here is the class that I want the method in: using System; using System.Windows.Forms; public class Change { public void ChangeText() { // How would I be able to modify the button and its properties } } Can someone please help me with this Thanks. yo ...Show All
.NET Development Writing a hex value to a stream
Hello Everyone, I am trying to hex value to a stream. What is the easiest way of doing it I tried the following and a lot more but some reason I can not get it to work BinaryWriter bw = new BinaryWriter(fs); bw.Write("\uc080"); I want the c080 to appear exactly i.e it should be 0xc0 0x80. But the value seems to be getting converted to the dec value. So what would be the best way of doing this Thanks in advance Or this, if you don't want to risk encoding problems: FileStream fs = new FileStream(@"c:\temp\test.bin", FileMode.Create); fs.Write(BitConverter.GetBytes(0xC080), 0, 2); fs.Close(); Beware that output is little-endian so 0x80 appears first in the file... ...Show All
SQL Server Installed SQLServer 2005 TrialEdition
Hi Fellows, I am really in a fix.I have downloaded the trial version from MIcrosoft site and run setup with named instance. But I cannot find my management console link anywhere. Can anyone help me here . My site is : Windows XP Professional SP2 Installed : SQLServer 2005 180Day Trial Pack downloaded from Microsoft Network. I ran setup from : server directory and also from tools directory. In my programes menu I can only see Configuration Toolsunder which there are three options : 1) SQL Server Configuration Tool 2) SQL Server Surface Configuration Tool and 3) SQL Server Error and Usage Reporting Strange thing, I just started my ISO and it directly gives me the edition ...Show All
Visual Basic populating an Access database using visual basic 2005
I am trying to create a new employee application that gets input from a user in text boxes and then take that information and populate a database in Access that will later be pulled to the Track IT! database on SQLserver2005. How do i do it Thank you. IGiberson wrote: Also, it is a 3 form application... with different information on all forms... would it be easier to populate the database each time they go through the form or should i just have it get all the info at the end and populate it then it depends entirely on the database and how you want the application to run/how it should run. If the forms are for 3 different tables then I would do the operations on the table on each form, ...Show All
SQL Server Temporary Table
Dear all, I have two store procedures,sp1 and sp2 sp1 : some codes here SELECT * INTO ##A FROM ATABLE sp2 : some codes here SELECT * FROM BTABLE LEFT JOIN ##A ON BTABLE.a= ##A.b I use vb.net to call sp1 first and fill the data to dataset,then call sp2 and fill the data to dataset. So you find that sp2 is left join to ##A. ##A is a result from sp1. If I run sp1 first,sp1 can provide the data to dataset(VB.NET) and sp2. It can improve the perfermance. So I can not use local temporary table #A The problem is : When two or more users run the program at the same time. It give me an error message : ##A is exist at server. My question here : (1) I know ##A is a global variable. but users use differen ...Show All
Visual Studio Express Editions adding to a text file
I am using streamwriter to write lines of text to a text document as follows: Using sw As StreamWriter = New StreamWriter( "C:\Documents and Settings\User\My Documents\Doc.txt" ) My problem is that when I use this, text that was in the document is overwritten. Can I use streamwriter, or something else, to add additional lines of text to an existing document Thanks absolutely you can use this: My.Computer.FileSystem.WriteAllText( filename, text, true) or using theFileStream as new FileStream( path , FileMode.Appen, FileAccess.Write) using theStreamWriter as new StreamWriter(theFileStream) theStreamWriter ...Show All
.NET Development Threading and AppDomain
Hi all I am a little lost with Multithreading ... :-(( I have a application which is running different functionality, multithreaded. Somehow when one thread is having a problem, the whole application has also some problems ... Now I want to create the new threads in separate AppDomain's, I thinks this is better. Can somebody just give me a very small sample how to do this I need creation of a new AppDomain and than create a new thread in this new AppDomain. Thanks a lot for any help !! Best regards Frank Uray Hi, when you say when one thread has a problem the whole application has a problem, what do you mean exactly There may be another way to solve your problem wihtout trying to crea ...Show All
Architecture Finding bottle necks in Windows Server enviroment
Hello, I am looking for information about finding bottle necks in our server enviroment. We have the basic system, where in DMZ level we have web-servers and inside controlled network we have application servers and database servers. System was designed to endure much less users than we currently have. And now we are trying to find the spots that make our system run slower. Any good pointers how to begin this task. I'd but my money on the database servers. Also the communication between servers could use fiber optics. So if you have your own experience or you know good material to read please inform me. There are many stategies for addressing bottlenecks in a system: From a development code perspective you can run profiling ...Show All
