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

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

Kushu

Member List

TomJ72
Shepherd
oompa_l
WaaZ
mattdawg
BrettDerry
ravi.velu
vikram vilasagaram
vipix
Terence Curd
Chase Mosher
Nick P
ninam
fields098
BIG S
asilter
Sergey Zwezdin
sean_kirkpatrick
Kavi
Driescox
Only Title

Kushu's Q&A profile

  • Software Development for Windows Vista Context Menu and Admin Privileges

    I am registering an item so that it appears in the Windows Explorer right-click context menu. All of the functionality for this takes place in a DLL and some of it requires that the user have Admin privileges. Unfortunately, since it is a DLL, I cannot provide a manifest to request the heightened privileges and thus the execution fails. What I'd like to know is if there is a way to register a dll or context menu "item" in such a way that it will be called (via Windows Explorer or otherwise) with those heightened privileges. Do I need to somehow wedge this into a com object so that I can call CoCreateInstanceAsAdmin (even though it is Windows Explorer that is invoking the DLL, technically) Any sort of help on this would be ...Show All

  • Visual Studio Express Editions region expand/close shortcut

    Is there a short-cut key to close/open regions defined in a class/module Sometimes when all the regions are expanded, it is very hard to navigate to the right one quickly. Tigerwood2006, There is a shor-cut key to close/open regions defined in a class/module. Firstly, put your cursor on the class/module you would like to operate: Ctrl + M then Ctrl + O : Collapse your code region; Ctrl + M then Ctrl + L : Expand your code region ...Show All

  • Visual Basic Drag & Drop icons from Desktop onto control

    Hi all, I have written a menu app which I have to browse for files, to tell it the file name / path. I would like to Drag & Drop icons onto the form / control from the windows desktop. I have a basic understanding on how to drag/drop from 1 control to another (both on the form ofcourse), but when i try to drag an item from the desktop the mouse pointer changes to a circle with a line through it. I am assuming that Vb only lets you drag items from the form onto iteself. Is this correct Code sample would be appreciated. Thanks in advance. You might want to check out this free app I have used before called AppPackager: http://www.atma-software.com/apppackager/index.html That will embed the exe and all dll's and res ...Show All

  • Visual Studio 2008 (Pre-release) How to determine message size that goes over wire?

    Hi , I need to determine System.ServiceModel.Channels. Message size that goes over wire. I have intercepted message in public void AfterReceiveReply( ref System.ServiceModel.Channels. Message reply, object correlationState) method of IClientMessageInspector interface. In quick watch reply message was formatted and when I saved it in txt file, file size was 105K. Then, I tried to serialize it in file in AfterReceiveReply method with: System.IO. Stream str = new System.IO. FileStream ( @"c:\file" , System.IO. FileMode .Create); System.ServiceModel.Channels. MessageBuffer mb = reply.CreateBufferedCopy(maxBufferSize); mb.WriteMessage(str); and file size was 70K. Is any of these two va ...Show All

  • SQL Server Permit user to select columns for a report: why not use Dynamic SQL?

    I certainly have read lots of negative comments about using Dynamic SQL. And I have read some of the excellent web pages on the subject, such as http://www.sommarskog.se/dynamic_sql.html I have learned much from those discussions. But I still find myself faced with a problem for which Dynamic SQL seems like the only reasonable solution: letting a user select the columns to include in a report, and the sort order for the output data. In the application of concern, there are maybe seven columns that one might want to have in a report. If the user can choose any combination of these seven columns, and the order in which they are displayed (as well as the SORT order), it would be necessary to write something like 7! (7-factorial = ...Show All

  • Visual C# Difference Between selectionchanged and selectionchangecommitted?

    What is the difference between selectionchanged and selectionchangecommitted in a combobox Hi, SelectionChangeCommited event is fired only when user changes the selected item (through UI), while SelectedIndexChanged and SelectedValueChanged can also be fired when currently displayed item is changed from code. Comes in handy when you need to track user changes only and ignore changes you're doing through code. Andrej ...Show All

  • Smart Device Development Synchronize pxl and excel

    How can I automaticly import data from a pocket excel file to an excel file Is there a way to do this easily Thx Best way to go would be to copy file to desktop using, say RAPI (or wireless network or WS or whatever else can transfer files), and synchronize it on desktop using desktop APIs. Please post to relevant desktop forum if you have questions on that. ...Show All

  • SQL Server Does anyone have sql2005 EE running on 64 bit Itanium server?

    I don't think mine is using all of the memory it could on the server. I've read that the Task Manager does not give you an accurate measure of the memory usage but 130 MB max does not seem right on a 12 GB server. I've set the minimum to 2 GB in SSMS. The account that is running sqlservice has Lock Pages in Memory privileges . I've turned on AWE in SSMS just to be safe. We are experiencing high CPU usage and my theory is that it is caused my unnecessary I/O due to not being able to cache. The serve has Windows 2003 sp1. The SQL2005 Buffer Manager AWE Lookup maps\sec, stolen maps\sec, unmap calls/sec, unmap pages/sec, write maps/sec are all 0. Any help would be appreciated. Below is the out from DBCC MEMORYSTATUS. This server also ha ...Show All

  • Visual C# Heap or Stack

    Hi everyone, I have a doubt about some allocation region. object obj = 3; At the above, is the "3" struct object are stored in the heap or stack In my opinion, since it is a struct , it must be stored in the stack. However, while reading a tutorial about this, it claims that "3" is stored in the heap. So I would like to ask why Menawhile, the passage from the tutorial; <quote> Boxing and Unboxing Value types (int, struct, enum) are also compatible with object! Boxing The assignment object obj = 3; wraps up the value 3 into a heap object </quote> No you can tell by just looking at the code and knowing if you're dealing with a value type or reference type. This article covers all the details http:/ ...Show All

  • Visual Studio Where's "what's new" on August 2006 MSDN Library?

    I installed the Aug 2006 MSDN library, but it no longer comes up with a link to the list of new articles on the library. Talk about wasting my time trying to find just the new stuff to read! Is such a list still there If so, how do I find it If not, can someone please put it back ! The whats new topic has been missing from Libraries based on Visual Studio 2005. We will revisit having a what's new topic in future releases. ...Show All

  • Visual Studio Team System Sharing a class library within same TFS Project

    We have a TFS project that represents a single product. This product has two possible installations, one web based and the other windows client based each with different installers. The two installations share the same class library. We're trying to determine the best way to structure the source control in TFS with respect to the class library so that it can be managed and built as efficiently as possible without having to create a separate TFS project to do so. Any suggestions I think you can create two installer projects in one build solution . or else you can go with two solutions (ie web-installer and WIN-Installer)which include all the class liberaries and only one installer project . you can keep bo ...Show All

  • Visual Studio 2008 (Pre-release) Updating custom control

    I am working on an WPF media player control (for various reasons I cannot use MediaControl). I have the video up and running now, but I am in doubt if I am doing the right thing when it comes to updating the control. Currently I am calling InvalidateVisual on the control and then doing the drawing in OnRender, but I seem to remember that invalidate is very expensive. So, how should it be done No I am not using MediaElement or MediaPlayer, since I am developing my own video player library (preliminary work for a TV viewing app). I have not found any way of getting MediaElement / MediaPlayer to show anything beyond already existing video files. ...Show All

  • Software Development for Windows Vista File share problem

    Hi Everyone, Got 2 questions need some advice, First, I opened a file in generic read & write mode plus the share for read. According to my own view of the share logic, the 2nd open to the same file should be generic_read + share_read, however this is incorrect. My sample code is attached for review, LRESULT CMainDlg::OnClickBtnTest(WORD /*wNotifyCode*/, WORD /*wID*/, HWND /*hWndCtl*/, BOOL& /*bHandled*/) { TCHAR buf[512]; HANDLE h1, h2; DWORD dwErr; if (INVALID_HANDLE_VALUE == (h1 = CreateFile(_T("abc.abc"), GENERIC_READ|GENERIC_WRITE, FILE_SHARE_READ, NULL, OPEN_EXISTING, 0, NULL))) { dwErr = GetLastError(); _stprintf(buf, _T("1st open: dwErr = %u. "), dwErr); MessageBox(buf, _T("Msg") ...Show All

  • Windows Forms problem regarding keyDown Event handler

    I want when I press “ A ” button “B” is printed, and when I press “ B ” button “C” is printed, and so on ….. I did by handling keyDown event handler as following switch (e.KeyCode.ToString().ToLower()) { case "a" : textBox1.Text += " b " ; break ; case "b" : textBox1.Text += "c" ; break ; case "c" : textBox1.Text += "d"; . . . . . . . . case "z" : . . . . } textBox1.Selectio ...Show All

  • Visual Studio Express Editions Comboboxes in DataGrids and values from a TXT?

    Hi all, I am newbie in VB 2005 and still feeling the differences to my previous VB 5.0 To learn it, and as a hobby, I am trying to redo a small program I developed some time ago, with a better interface. My question is: to a friendlier visual, some data I desire to show in a DataGrid. Until this point, everything OK. The problem is a field I'd like to be changeable in it, by a Combobox field, once the valid values are only few of them and these possible values are read by a TXT file. For example, the TXT could have this format: ValueA ValueB ValueC ValueD No problem to read them and put in an array, but how can I list these values in the combobox field (how to transport items from an array to a combobox field ...Show All

©2008 Software Development Network