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

Software Development Network >> mikul's Q&A profile

mikul

Member List

Alex-MyRpg
Osiris43
Latso
R.Tutus
Joe Zott
Terry M
brnwdrng
bmnoorulameen
nioB
pardgr8
stswordman
manick312938
Ivan_Filho
John Woodiwiss
Johnny Ashcan
Jacco Mintjes
Mohamed Hassan Anver
puffzotty
ywz
Simone1
Only Title

mikul's Q&A profile

  • Visual Basic Opening files

    Can someone please tell me how can I open one file from one command button Thanks, Xico you can use a StreamReader to read the file contents, or you can also use My.Computer.FileSystem.ReadAllText. Example: Dim theFileContents as String = My.Computer.FileSystem.ReadAllText(" filename.txt ") this would read the entire file contents to a string variable. it depends on how you want to read the file, either in string or as raw bytes. to use a StreamReader, import the System.IO namespace then: Dim theStreamReader as new StreamReader(" FileName.txt ") Dim theFileContents as String = theStreamReader.ReadToEnd() theStreamReader.Close() both pretty ...Show All

  • Visual Studio Team System Create macro for editing a projects code analysis settings

    Hi everyone, I am working in a solution which contains numerous projects all of which need to adhere to the same code analysis settings. Instead of having to manually change the settings in each project which is obviously very time consuming, I would like to create a macro which when run, would get the selected project and update the code analysis settings which would be pre-defined inside the macro. This way all I need to manage is the macro functionality instead of each project individually, then when a setting needs to be changed I can update the macro then run it against each project. I have tried to record a macro which does this but it doesnt seem to be able to record the actual setting changes. It records the fact that I h ...Show All

  • Visual C# My enumerator is not returning the count??

    Hi, I have created a class using the KeyedCollection: public class RobotPartKeyedCollection<T> : System.Collections.ObjectModel.KeyedCollection<string, T>, System.Collections.Generic.IEnumerable<T> where T : RobotPart { private RobotPart partToSearch; internal RobotPartKeyedCollection() : base(null, 0) { } public RobotPartKeyedCollection(RobotPart robotPartToSearch) : base(null, 0) { partToSearch = robotPartToSearch; } protected override string GetKeyForItem(T item) { return item.Name; } internal void ChangeKey(T item, string newKey) { base.ChangeItemKey(item, newKey); } public new T this[string name] { get { ...Show All

  • .NET Development .Net 2.0 threading: calls to Join(), after calling stop(), nerver return.

    Hi, I have recently converted our .net 1.1 project to .Net 2.0. One big issue that I am running into, and still don't have a clue of, is the our code for terminating a thread is no longer work. We have code that starts a thread and then kills it later. When killing it, we just call stop() then join() and it worked fine under .net1.1. But now it is not, after converting to .net 2.0. The join() never return. The app is just hang. Currently, I am just skip the join() and just call stop(). I know this is not safe but I don't have an option. What should I do to make it right Thanks. Feng Use Thread.Abort() to kill off the thread. More cleanly (much more cleanly) is to signal the stop request with a ...Show All

  • Visual C++ CButton Events in MFC?

    Hello I just made a little simple app (because I just started last night) that has a button (CButton) with no events and a text box (or CEdit...) and a Static label (CStatic). Now, with that done and working, I'm content (remember, I started last night!) Anyways, my name for CButton is "cb", CEdit is "ce", and CStatic is "cs", all without quotes. Now, I would like so that when cb is pressed, cs will contain the string that was input from ce. How can that be done Please, explain step by step. If you don't want to explain the whole thing, just show me the code, I'll eventually find out. Thank You Keehun Nam Here is my current code: //hello.cpp #include <afxwin.h> // Declare the application class class CHel ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Game Math 101: Changing the magnitude of a vector?

    I find myself needing to change the magnitude of a vector quite often, and end up writing a lot of code that looks like: v1 = Vector2 .Multiply( Vector2 .Normalize(v2), 250.0F); Is there a better way That just seems awfully inefficient. It only gets worse when I want a particular magnitude vector in the opposite direction: v1 = Vector2 .Multiply( Vector2 .Normalize( Vector2 .Negate(v2)), 250.0F); Or inverting the Y-axis of the thumbsticks: acceleration = Vector2 .Multiply( Vector2 .Normalize( Vector2 .Multiply(gpt.Left, new Vector2 (1, -1))), 800.0F); Please, help a noob out... Matt exal is correct, it dawned on me later: Keep your direction and speed seperate, then multiply the ...Show All

  • .NET Development .net framework unable to serialize xml data

    hi folks, i want .net framework to xml serialize the below class, based on the type of data present in the second data member. but, only the first data member gets serialized and the second member is ignored. is this the way to implement what i am looking at that too, in .NET 1.1. http://xxx ")] public class MessageParams { [XmlElement("Credentials")] public Credential cred; [XmlElement("FirstMethodParm", typeof(FirstMethodDataType))] [XmlElement("ScndMethodParm",typeof(ScndMethodDataType))] public object Item; } TIA Sek ...Show All

  • Visual Studio 2008 (Pre-release) FlowDocumentPageViewer find text

    Hello I'm trying to found a text in a FlowDocumentPageViewer Control when a button fire event. I've a textbox, a button and a FlowDocumentPageViewer, and the idea is to complete a text, press the button and search that word in the FlowDocument. Any idea of how to do that Thanks a lot !!! you could traverse the visual tree and populate the search textbox and then get the FindNextButton. The search is then performed through code as follows. AutomationPeer ap = UIElementAutomationPeer.CreatePeerForElement(findNext); IInvokeProvider iip = (IInvokeProvider)ap.GetPattern(PatternInterface.Invoke); iip.Invoke(); HTH ...Show All

  • Visual C# How set printer to duplex when printing using ...InterOp.Word

    Hi, I have code that uses: Microsoft.Office.Interop.Word; and allows me to programmatically decide which printer tray to print page one and/or the rest of the document. However I am unable to set the whether the pages should be printed duplex (both the trays I am using allow this fnction). The pages always come out NON duplex This is my code: using WORD = Microsoft.Office.Interop.Word; ... public static void PrintDocTest() { object oMissing = ( object )System.Reflection. Missing .Value; object template = ( object ) @"[Path to template][Template].dot" ; object readOnly = ( object ) false ; object isVisible = ( object ) false ; object SaveChanges = ( object ) false ; o ...Show All

  • Audio and Video Development menu key

    Hello, How can I hide a div when the menu key is pressed thanks. No, unfortunatly but should get it eventually. From the hd dvd programming guide > AccessKey Data Type VK_0 VK_1 VK_2 VK_3 VK_4 VK_5 VK_6 VK_7 VK_8 VK_9 VK_A_BUTTON VK_ANGLE VK_AUDIO VK_B_BUTTON VK_BACK VK_C_BUTTON VK_CC VK_D_BUTTON VK_DOWN VK_E_BUTTON VK_ENTER VK_ESC VK_F_BUTTON VK_FF VK_FR VK_G_BUTTON VK_H_BUTTON VK_I_BUTTON VK_J_BUTTON VK_K_BUTTON VK_L_BUTTON VK_LEFT VK_LEFTDOWN VK_LEFTUP VK_MENU VK_MOUSE_1 VK_MOUSE_2 VK_MOUSE_3 VK_MOUSE_4 VK_MOUSE_5 VK_PAUSE VK_PLAY VK_RESUME VK_RIGHT VK_RIGHTDOWN VK_RIGHTUP VK_SF VK_SKIP_NEXT VK_SKIP_PREV VK_SR VK_STEP_NEXT VK_STEP_PREV VK_SUBTITLE VK_SUBTITLE_SWITCH VK_TAB VK_TOP_MEN ...Show All

  • Visual Studio Express Editions about array?

    hi there i have a problem regarding array....here's the situition i'm supposing to count a number of area... so i used select command count to count... i want is to compute all the number of area and put the result in textbox...(each result has seperate textbox)  txtbox1, txtbox2 and txtbox3... in my code below the dataset overwrite the result instead of to retaining and print the result of area(1) and area(2)...   dim conn as new oledb.oledbconnecion("connectionstring") dim area() as string = {"area1","area2","area3"} dim i as integer for i=0 to 2 dim sqlcom as new oledb.oledbcommand("select count(*) from table where area ' " & area(i) " ' ", connectionstring) dim ds as new dataset() 'whe ...Show All

  • Visual Studio Team System Advice needed: delete old builds using a Task(?)

    I have the following. A build type called "Nighly Build" that is scheduled to run every night. It will drop the output on a shared folder on a server in the following structure: \\server\drops\ProjectA\Nightly Builds\ However after a couple of weeks there will be a lot of nightly builds in this folder. I was wandering what would be a good practice to only keep the Nightly Builds of the last week and delete the ones older than one week Should I add this as a custom task to the "Nightly Build" Build Type Or should I use a batch file or script file and run it on scheduled intervals using the Windows Scheduler Any advice is appreciated or how do you guys deal with this Hello Jason, thanks for the fast reply. I w ...Show All

  • SQL Server Schema modification advice

    We have a production database (SQL 2005) that is being used by at least 20 different applications. Some of the tables need to be modified (column added). There is also a need to add new tables that will have referential integrity relationships with existing tables. Does anybody have a good way or best method of changing table schemas, objects, etc. while minimizing the impact on the current operations The key is minimal downtime if there is a need to have one. 1. Can the table schemas change while it is online 2. How would you account for all the applications that use stored procedures 3. Among the existing SQL 2005 tools, which one/s can handle the job there are 20 applications using the program an ...Show All

  • Software Development for Windows Vista OTP: I lost my Product key for windows vista beta 2

    I lost my Product key for windows vista beta 2 Can someone tell me how can i get it back. Thanks. Dante ...Show All

  • .NET Development Hot to log each method being executed?

    Hello, I Would like to attach to a thread and log each method i being executed. I'm guessing i should listen to the CLR activities to do so. I have access to the pdb files if needed. how can i do so Thanks, Eran. Hi, There are profilers for .NET out there which perform the action you need. The ones I know of are SpeedTrace, and in CompuWare's DevPartner they have a product that does it too. If you want a simple/free one - that's what I'm trying to create... I remember there is some example in MSDN magazine that includes a working tracing profiler, and also one is supposed to be included in the Visual Studio 2005 SDK. You can also try looking at the CLR Profiler examples in MSDN magazine, such as http ...Show All

©2008 Software Development Network