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

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

JOshLewis

Member List

RankoNS
ChristopheGo
is98
davidg12
Malmer
Belias
DiamonDogX
amygal
djshades2004
Leigh Moore
angjbs
Alfredo Martinez
Fogel
Lucas Carroll
SmileSmita
Sathish Alagirisamy
José Antonio Farias - MVP
pauley
KillerKryptos
Solitaire
Only Title

JOshLewis's Q&A profile

  • Internet Explorer Development Toolbar Button Handling

    I've added a button to the toolbars. I've implemented it as a COM object. It works. (enough showing off) I'm able to get IShellBrowser and IShellView Interfaces - but they don't really help. ref: http://msdn.microsoft.com/library/default.asp url=/workshop/browser/ext/tutorials/button.asp If your COM object needs to access the Dynamic HTML (DHTML) Object Model of the page that Internet Explorer is currently displaying, you must implement IObjectWithSite . I want to access the html source and the url being displayed. Where can I access this info Check out http://msdn.microsoft.com/library/default.asp url=/library/en-us/dnwebgen/html/bho.asp It shows how to get the html sour ...Show All

  • Smart Device Development How to detect if a Smartphone application is put in the background?!

    Hi there! Following problem: I have a Smartphone application which has main window which consists of a single (docked) TreeView. I need to perform certain tasks when the application is put in the background. That is when the Escape/Back key (KeyCode 27) is pressed. However it looks like and TreeView / ListView eats up that KeyCode. I tried a number of things but i simply can't get the escape key event. This is probably because the escape key might also be used to collapse tree nodes. So how on earth can the application figure out, when it is put in the background when neither the TreeView nor the Form fires the KeyUp event for the Escape/Back key Do i have to do some dodgy constructs with the OnDeactivate / OnMinimise event ...Show All

  • Visual C# Terminating a process using WMI

    Hi, I have been told that this is possible but I can't seem to find any sample code anywhere. Anyone know how to do this Thanks. pretty much how Sven posted, either doing it this way: Process[] theList = Process.GetProcesses(" machineName ") foreach(Process curProcess in theList) {    if (curProcess.ProcessName.Equals(" ProcessName "))    {       curProcess.Kill();    } }   or this way:   Process[] theList = Process.GetProcessesByName(" machineName ", "ProcessName " ) foreach(Process curProcess in theList) {    curProcess.Kill(); } ...Show All

  • Visual C# How to delete a control during runtime?

    Hi, I would like to know how to delete a control when the user presses the Delete key on the keyboard (For example, there is a label in the form, and the user clicks on it and presses Delete). I was trying to use the KeyEventArgs but it always gives me an error message stating that it is not set to an instance of an object.. pretty much in the same steps for implementing the keydown events - just go into the events property of the control and scroll down to "PreviewKeyDown" and double click it to create the event ...Show All

  • SQL Server XML validation

    Is it possible to write a XML schema to validate the XML similar to the following XML, but the field name could be any string value, and the target type has variable fields, min 1. <Mapping> <DataSource>Sample</DataSource> <Target type="Sample AddressBook" configurable="yes"> <FirstName map="First" display="First Name"/> <LastName map="Last" display="Last Name"/> <EmailAddress map="Email" display="Email Address" /> <PhoneNumber map="Phone" display="Phone Number" /> </Target> </Mapping&g ...Show All

  • .NET Development .NET Framwwork 2.0 installation problems!

    Hi all, I recently tried to uninstall NET FW 2.0 because I am having problems with it, I have tried to re-install the program but have not been sucessfull. This is the error message that I am getting, any ideas "Patch package coul not be opened. Verify that the patch package exist and that you can access it, or cntact the application vendor to verify that this is a valid Windows Installer patch pakage".                                                       &nbs ...Show All

  • Visual J# help im a first time user

    i feel really stupid in asking but im getting real frustrated... how do i compile my code do i need a seprate program or is it in the options can you tell me how goto microsoft web site and download the express version of Visual J#.NET 2005 and start developing with J#. Enjoy it!!! ...Show All

  • .NET Development SyncLock: Any benefit or downside to using a ReadOnly Shared Var as lockobject?

    Public NotInheritable Class Foo Private Shared ReadOnly _LockMe As New Object() Private _MyObject as MyObject Public Sub Run() Me._MyObject = New MyObject() SyncLock _LockMe Me._MyObject.MyProperty = 3 End SyncLock End Sub End Class Given the above example, are the any benefits, downsides, gotchas to using a ReadOnly Shared var as a lockobject Or will it act exactly the same as a non-read only Thanks! Whether it is ReadOnly or not makes no difference to how it affects the locking, however it is good practice to declare it this way so you don't accidentally write code that swaps the object for another one. However declaring it as Shared makes a big difference. ...Show All

  • Windows Forms copy file from a server using internet

    Hi I need a program that copys x number of files from a server using internet. files that need to bee copyed is in a list and the program are going tru the list one by one. program is checking if a file is local if found -> do not copy. if file not found locally do copy from a server. Where can I get some more information for this problem. hi Maybe this came out wrong (no response) but Can anyone point me a direction, maybe what DLL supports this kind of traffic on internet, wininet.dll ...Show All

  • Visual Basic Communication to LPT1 and Com ports

    I'm relativly new to visual Studio .net and have not had a lot of expereince with programming applications to read and send data to Com ports or LPT1 ports. I am contemplating rewritting an application currently written in Access to track data that comes from a scale. The LTP port receives prompts from the scale signifying that there is data that is going to be transfered. That in turn opens Com port 1 and the scale sends a string to the PC, the PC evaluates the string and pulls out the data location that contains the weight and the operator and then returns the subtracted weight out Com port 3 to the scale to be posted on the display. How would I open the Com ports and establish this communication to send and recieve the data, and ...Show All

  • SQL Server Reporting Services Hardware Requirements

    Does any person know if this is acceptable I have reporting services on a virtual server.  On this virtual server I also have running, SQL 2005 and Analysis Services 2005.  I have about 45 GB or HD 21 GB of the 45GB free and I have 1 GB of memory. Is this good Hi All, Can any body help me in sizing the Hardware Capacity Planning for MS Reporting Service 2005. I need to know the exact H/W & S/W requirement to start this Project. Its a new installation. Any direction on this will be really appriciated. Thanks in Advance!!! Requirement Users - About 800-1000 Reports – about 800 Reporting tool – MS Reporting Services 2005 ...Show All

  • Visual C++ Class object Creation

    hi , i have a doubt . when does the object of a class created.. is it created after the call to one of the constructor. or before the call to constructor. i think that object is created before the constructor . and initialization of those objects during constructor execution.. plz reply, manish It depends on what you call "created". The memory for the class object is allocated by the new operator. But it isn't yet fully ready to be used until the constructor has finished executing so that the object is properly initialized. The very last thing that happens in the constructor code is execution of a bit of code that the C++ compiler generates that puts the true v-table in pl ...Show All

  • Windows Forms Hide cell error in a DataGridView once the error is corrected?

    I have a DataGridView displaying rows imported from a text file which have errors so they can be corrected. If I correct a certain cell, the red exclamation mark stays when I move to the next row. Is it possible to hide the exclamation once the cell in question has been corrected I tried doing that in the cells validated event, but it doesn't work. Do I have to specify validation code for every column What I really want is this to be automatic - e.g. if the dataset specifies a column cannot be null, a column with a null value appears with an exclamation mark. If the user then types something in said column, I want to exclamation mark to disappear. ...Show All

  • Visual Studio Express Editions Does Edit and Continue work in VS2005?

    Hi all, I imported a VC6 project into VS2005, and I cannot get E&C to work - whenever I hit a breakpoint, the menu option is always greyed out. I have the following compiler settings: /Od /D "_DEBUG" /D "_WIN32_WINNT=0x0500" /D "WINVER=0x0500" /D "WIN32" /D "_WINDOWS" /D "_VC80_UPGRADE=0x0600" /D "_AFXDLL" /D "_MBCS" /Gm /EHsc /RTC1 /MDd /Gy /Yu"stdafx.h" /W3 /nologo /c /ZI /TP /GR /errorReport:prompt and linker settings: /NOLOGO /MANIFEST:NO /DEBUG /SUBSYSTEM:WINDOWS /MACHINE:X86 /ERRORREPORT:PROMPT WS2_32.lib Version.lib Winspool.lib Kernel32.lib and, Tools->Options->Debugging: Edit and Continue -> Enabled. ...Show All

  • SQL Server error in report builder

    I am trying to create a filter in the report builder on reporting services. When I try to filter I get a yellow triangle with an exclamation point and cannot get a list. When i put my cursor over the yellow triangle, I get the error "the requested list could not be retrived because the query is not valid or a connection could not be made to the data source. Any idea how this can be fixed so I can get a list of values I am not sure if you found a solution to this problem, but I also ran into the same problem recently. Currently, I am using a folder structure like: Home>Dept>App>(Model, Datasource, Reports) I found that by granting "View folders" at the home level to the g ...Show All

©2008 Software Development Network