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

Software Development Network >> Nikhil Vaghela's Q&A profile

Nikhil Vaghela

Member List

Wouterd
David Krmpotic
kennm
Samyag1
levins
Jonathan MacCollum
fahadabdulaziz
Hsoros
Fahd
Speakafreaka
cmwith
Faraz_Ahmed
A__alex10
Troy Lundin
james_m
Sequel2k5
dotnetwiz
Boulderdude
Ramesh_Kumar_02a072
Batikit
Only Title

Nikhil Vaghela's Q&A profile

  • .NET Development How to protect a private string from decompilation without obfuscation?

    I have a number of mashups in my application, all of which have secret keys that are required to access them. These keys im currently using like this: public class Mashup { private string key = "secret_key"; private WebMashup _WebMashup; public Mashup() { _WebMashup = new WebMashup(key); } } My problem is that using .NET Reflector I can look into the dll and see the value for the key string, something which I want only my application to be capable of knowing. Is there any way of preventing this property from being visible in a decompiler I would prefer not to use an obfuscator as there is some reflection within my dll that will break and I'm not entirely sure it would actually solve this particula ...Show All

  • Visual Studio Tools for Office Getting/Importing Email Accounts Setting from Outlook

    Hi I want to import Email Account Settings from Outlook using C# . Is it possible to workaound with Microsoft.Office.Interop.Outlook . I have retrieved Email Messages from the folders but unable to retrieve account information . How should i proceed , any poointer will be highly appreciated. Thanks in advance Muhammad Tabish Sarwar. Muhammad, This question will be better served in the Office Development newsgroup. I've included the link below. http://msdn.microsoft.com/newsgroups/default.aspx dg=microsoft.public.officedev&lang=en&cr=US Thanks Roger ...Show All

  • SQL Server Cannot Connect Remotely to HTTP EndPoint

    Dear all, I appologise that incarnations of this topic have been posted several times on this forum, however I cannot find a scenario that is the same as my own so I've resorted to starting a new thread. I can successfully create and connect remotely to an HTTP EndPoint on my Windows 2003 machine using Integrated security, the administrator username and password via my static IP address. I have read that Windows XP SP2 supports HTTP EndPoints, and it would be much more convenient for me to be able to create EndPoints in XP, and connect remotely. I have created the endpoint like so... CREATE ENDPOINT sql_tvr10 STATE = STARTED AS HTTP( PATH = '/sql/tvr10', AUTHENTICATION = (INTEGRATED), PORTS = (CLEAR)) FOR SOAP ( WEBMETHOD 'Stor ...Show All

  • Windows Forms Windows Themes and Appearance settings are causing Forms appearance to behave abnormally.

    hi I have written a form in C#, The problem we are facing is that whenever the XP theme is set to Silver etc.. it changes the appearance of the form. I would like the form to not be affected by theme settings. Is there an easy way to do this Thanks. Dwight Hi, you will have to set the forms backcolor and other properties to explicit colour vales, rather than the Control colour or ControlText colours they are set to by default. Mark ...Show All

  • SQL Server I cannot debug inside VS 2005 Developer Edition

    Two questions... 1. I saw that you must have the Professional Edition and above to debug stored procedures. Is this available in the Developer Edition. 2. If #1 is okay, why do i not have the menu item, "Step Into Procedure" or whatever it's called Thank you, Brian That means a problem with the current that doesn't have the Administrator privileges, check that out. http://msdn2.microsoft.com/en-us/library/5hs4b7a6(VS.80).aspx fyi. ...Show All

  • Windows Forms Put a glass panel over form while processing?

    Dear all What i would like to achieve is placing something like a glass panel over the form while is doing some processing and show a proress bar. Little something like that , which would informa the user that something is happening:) Any ideas or advice Is there any code examples Cheers Oh, I know that it's not meant as an interactive control. What I meant was, the first time I make it visible, I clearly redraws itself about 5 or 6 times before it settles down. After that, subsequent Visible = true calls are fine. It seems to have alot to do with the alpha blending. The lower the alpha, the greater its apparent need to redraw. ...Show All

  • Windows Forms Controls Collection

    In VB6 when a control was part of the Controls collection of the form, even if the control was on another container (eg. a Tab control, picturebox etc.). In WindowsForms a control is part of the Controls collection of its direct container.So in order to iterate through all controls on a form you have to make a recursive method. However, a UserControl also has a Controls collection and exposes all controls contained in it. Is it possible to discern the controls that was added directly on a form, even on a seperate container, from the controls that are part of custom UserControls no. they will not appear in the Controls collection of the form. They will appear in the Control collection of their container, which might be a GroupBox, ...Show All

  • .NET Development single key, multiple values - any data structure / class ?

    Hi friends, Happy New Year to all ! I have a file (similar to an INI file) wherein I have some configuration data stored in the following format: [Section 1] line 1 line 2 [Section 2] line 1 line 2 I need to be able to read this file into a data structure at application startup and subsequently be able to match some other data against the contents of this file. This is like a "single key-multiple values" structure. I've looked around for various collections classes, dictionaries, data structures but can't seem to find an appropriate one for my purpose. Can anyone suggest me what class/data structure can I use Or maybe some other way of achieving what I want to. Thanks n Regards, Kunal ...Show All

  • SQL Server sql server express loses ability to write to database

    After a period of use (typically 1-2 hours), an application using SQL Server Express stops writing to the database, whilst still continuing to read from it. As far as I can tell, no error message is generated by any operation. The application is written in VB Express and is executed on several machines, with SQL Server Express on a central machine. Re-starting the application on the affected machine restores normal operation. The problem on one machine does not cause a similar problem elsewhere at the same time (hence it appears to be an issue with the relationship between the application and SQL Server) This does not appear to relate to the response to Q asked by sgcook on 9 may as we are not using user instances, but only a ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. using C++ libraries with C# and 360...

    Hey Guys, Up until now, all of my projects have been written in cpp. I had a pretty descent game engine written based upon Ogre3D and several other libraries but I kinda abandond the project when xna was released. Anyway though, Im currently still in the process of learning c# however, as soon as I have the language down pretty well, I want to go ahead and start recreating my game engine using xna instead. The only problem is, well, honestly, I'm just not good enough with my 3D maths and physics yet to create my own C# physics engine so I was hoping I could use the Novodex physics engine with C# although it's written in C++. Is this possible Can you #include the headers into your c# code Does the compiler still support c++ And last but no ...Show All

  • SQL Server cross-column & cross-row consistency Sql server 2005 sp2.

    (The previous edition of this post has some written errors which can make what I say unclear .Now those written errors are correctd.) [cross-column & cross-row consistency] Transaction Consistency In Sql server 2005 sp2. How are cross-column and cross-row consistency in SQL SERVER 2000/2005 Now there is a table named T,and its structure is as follow: T(value , twice_value), which means [twice_value] is twice of [value]. I filled it with some rows ,then it looks as follow: -------------------------- value |twice_value -------------------------- 1 |2 32 |64 78 |156 -------------------------- Then I run the statement: ---------------------------------- Update T set [value] = [value] * 2 , [twice_value] = [twice_value] ...Show All

  • Visual Studio 2008 (Pre-release) New XBAP and Code @ xamlXaml.com: ScrollingCanvas

    New XBAP with Code example up at xamlXaml.com: http://xamlxaml.com/2006/09/27/scroll-text-and-almost-anything-else-with-the-scrollingcanvas-container/ This example creates a custom user control based on the Canvas container. This ScrollingCanvas allows you to scroll any FrameworkElement: text, video, shapes, or even whole scenes. Moreover, you can scroll multiple FrameworkElement objects at the same time in a single scroll container. Both speed and direction of the scroll is controllable via dependency properties. Simply drop the ScrollingCanvas control on the design surface or add it in XAML, add any FrameworkElements you want to scroll to the ScrollingCanvas container and call the ScrollBegin() method. All object scrolling is ha ...Show All

  • Visual FoxPro System time - synchronizing, displaying

    Hi experts. Does anybody know how to get the real time from internet. I want to have the real updated time in my application. Second task is to changing the system time. How can I do that Third task is how to display time in form for example in textbox. I know the way with timer but if there is any other way I will be glad to know it. But the consequence is in the order I have written. Mainly the getting real time from internet. Thanks > how can I change the time zone of the source, I mean how can I > gather for example Central Europe Time without adding some > hours (+9hours) Don't know, sorry. This will set the system time though: * typedef struct _SYSTEMTIME { * WORD wYear; * WOR ...Show All

  • Visual Basic External visual basic EXE !

    I have oneVisual Basic EXE ( this is not activex exe ) running in box1. From box2 using VB, i want to check where vb.exe in box1 is running or not How to proceed this to check to see if its running on another computer, specify the computer name in the 2nd parameter: Dim theProcesses() as Process = Process.GetProcessesByName(" ProcessName ", " computerName ") does this help ...Show All

  • .NET Development How do I set mouse cursor across applications (globally)

    I need to set the mouse cursor until a certain method is complete. The cursor should be the same for the whole OS, ie: even if the user hovers over other windows. SetCursor API doesn't seem to be doing anything. Thanks to select a window an application Window if you want to select an application Window and active it, use the FindWindow and SetForegroundWindow API's: http://www.pinvoke.net/default.aspx/user32/SetForegroundWindow.html http://www.pinvoke.net/default.aspx/user32/FindWindow.html ...Show All

©2008 Software Development Network