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

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

mableu

Member List

David Sakhelashvili
ricky1980
Rocinante8
Shamirza
Kumaran S
Rik Dodsworth
AndrewAus
Chicken Leg Willy
LeoXue
CamPeck
crowesql
kumarangopi
Petrus
RhysDavies
Tdar
Andre's
Matt Lin
Kryor
Filip S
stak32
Only Title

mableu's Q&A profile

  • Visual Basic disable code?

    I made a if statment, now if that statment is true, then what would i put to disable all the code below it In code, if you put something in the IF Clause - it will run it the expression is true. It sounds as though you dont want to run something when the condition is true. You could put code in the code in the else clause or change the code to if <expression> = False but you cant disable statements - you can merely choose to execute them or not at runtime. Another option maybe conditional compile conditions - this way certain code may be included when you set certain compile flags - but these flags are set in the project and used when the code is compiled up. This way you can exclude certain code from being compiled. ...Show All

  • Internet Explorer Development javascript

    I am using javascript to change the source of an image. if I address the image by document. image_name .src=' new address '. IE7 reports an error saying. document. image_name is nul of not an object. If I address the omage by using image_name .src=' new address ' IE7 changes the address. I have had this problem in IE6 as well all elements would not accept having document added in front of them. I had to leave the document section off. But this is a problem as the page needs to work in all browse and other browse insist on having the document section appended to the front. I have tired using the document.getElementById() method but this never fetches the element. Is this a problem that other people find, since I have seen from other ...Show All

  • Smart Device Development Close the message box just by touching screen

    Hi, I am using VB.net and Visual Studio 2005 to compile a program. Some messages have to appear on screen in order to tell users what the program completed, such as, "Update Succeed", "Item Was Not Found", etc. However, in order to close these message box, users have to use pen to click the "ok" on the right upper corner of the message box. What I want is: instead of clicking the "ok", users can close these message box just by touching screen. How can I do that Thanks a lot. Can you dim a boolean as "Dim touchToQuit = False" When the application pops up that message, set the touchToQuit = True. In the Form_Click event, type something as below: If touchToQuit = True Then ...Show All

  • Smart Device Development Changing the timezone

    Is it possible to incorporate a mechanism in a programme to change the time zone of a device When setting the clock with a time retrieved via NTP the time of the device is updated (the ntpTime is UTC) but continues to display the offset defined in the timezone dialogue - i.e. around 8 hours behind local time when in the default PST. Ideally I would like to be able to set the time zone to match that defined in the normal control panel for "GMT London,Dublin" (even better would be a way to list all those in a drop down defaulting to "GMT London, Dublin"). Is this possible, preferably within the .net framework, or else using the API's If not, is it possible to launch the existing dialogue screen to allow the user to chan ...Show All

  • .NET Development cannot connect to configuration database

    Hi friends, I have a web method (Web Service) that returns an url of a sharepoint site. When I build it (F5) every thing goes well. but when i browse to it, it generates following error. Microsoft .SharePoint.SPException: Cannot connect to the configuration database . For tips .... I have search very much and worked on it many KB articles but nothing has helped. here is the code. [WebMethod] public String GetMyContactsForSmartTag() { try { Guid MySiteGuid = new Guid("5E9EAB1B-F653-43A9-B2F6-751D443E7B5F"); SPSite IgnitoSite = new SPSite(MySiteGuid); return IgnitoSite.Url; } catch(Exception ex) { return ex.ToString(); } } ...Show All

  • Visual Studio 2008 (Pre-release) SOAP authentication failed

    Hi, I have browsed this forum, and I found similar question, but none of the solutions have worked for me, so maybe I am doing something silly. However, let me try to describe what I am doing (I am fairly new to wcf programming). I managed to reproduce this same problem with the selfhost application (an example on the SDK, with the ICalculator). The problem manifests itself only when the client and the service aren't running in the same domain. If they are in the same domain (on different machines), everything runs fine. If I try to run the service inside a specific domain, and the client outside (say, just logged in locally into the machine), I get the following: An unhandled exception of type 'System.ServiceModel.Security.Sec ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. New XNA wargame : StrikeZone

    Hello I am doing a wargame engine. You can see video here : http://pitil.blog.mongenie.com/ The engine will be open for every one ! Thank you Yes Mercury help me a lot :) why make what is already made :D If you want my change just ask me, it is for the scrolling background and depth problem :) ...Show All

  • Visual C# Using Enum as Index

    If I have an enum such as public enum Test { One = 1, Two, Three } I want to be able to add a value based on the enumerated type such as: MyValue[Test.One] = 17; I would also like to keep ot strongly typesd so MyValue[1] = 17; is invalid. Is this possible within C# OK if I had public enum Test { One = 1, Two = 2, Hundred = 100 } The array would be 3 elements so I could not use MyValues[(int)Test.Hundred] = 17; It also is not strongly typed, I could still implement MyValues[2] = 17; which I want to disallow or at least check ...Show All

  • Visual Studio Express Editions short cut activation over network not allowed

    Hi, I installed one vbe express project(which creates some excel file) in server. I am trying to access that vbe express edition project exe file from server to terminal system. But i can't. That exe file working fine in server. Error message is: short cut activation over network not allowed what is the problem. Any suggestions please Thanks details: PLATFORM VERSION INFO Windows : 5.2.3790.60051 (Win32NT) Common Language Runtime : 2.0.200.42 System.Deployment.dll : 2.0.200.42 (RTM.0500-4200) mscorwks.dll : 2.0.200.42 (RTM.0500-4200) dfdll.dll : 2.0.200.42 (RTM.0500-4200) SOURCES Deployment url : file://server/tspolicies$/officeuser/StartMenu/Programs/Range.exe.appref-ms ERROR SUMMARY Below is a ...Show All

  • Visual C++ Help with making a AntiCrash Program

    HI, I am a new VC++ user and im now taking on my first project. I am working on making a Anticrash Applications. I have a form that has a start program, stop program button to launch and start the application. The application is a cmd prompt server app. I need to be able to start the app monitor it in case it crashed and restarts it if it has crashed. Otherwise I can use the stop button to shutdown the app. I have tinkered with System::Diagnostics::Process methods but havn't had much luck nor found a detail resource on how to use it or if its even the correct one to use. If anyone can point me in the right directions to find what im looking for or even a very simple example would be great. All I have found so far by searching was abou ...Show All

  • Visual Basic keeping current Date

    I am writing to a file, and on the file name I would like to have the date that it was created like fileName3/3/2005 how would i go about doing that when i do Private const File_Name = "C:\FileCreated" Dim runningDate As Date = Date.Now Using writer As Streamwriter = File.CreateText(File_Name + runningDate) writer.WriteLine("_______Hello___________") writer.Close() End Using i get a invalid path name exception.....any help on how to fix this Replace does not exist as a method of a DateTime instance but instead a string instance... so to make his example work you'd need to modify the last bit to: runningDate.ToString().Replace("/","") To give us a string that can ...Show All

  • .NET Development XSD in multiple versions

    Hi, I consider using XML serialization/deserialization to create an own file format. But what if the file format changes E.g. a elements or attributes could be added or removed. How do i handle such changes Thanks in advance! Hi, XSD versioning is a common problem nowadays. There are different approaches to solve the problem, but none of them can be considered as the best one. Tim Ewald wrote a great post about this topic on his blog, http://pluralsight.com/blogs/tewald/archive/2006/04/14/21733.aspx You can certainly add optional elements or attributes to a XSD schema, o mark other elements as optionals (So they can be ommited), but you have to consider changes that don't break existing client appl ...Show All

  • SQL Server Problem with MSAccess and executing a DTS package via VBA - returns column headings only

    I wonder if anyone can help with this. I have searched around and not found much on the topic which can resolve my problem. History on the reason for using VBA and not C# or VB or VB.net etc. Whn I arrived at this company, there were no development tools so had to resort to Access and VBA. Of course, the routines I wrote are now set in production and I haven't had much time to convert them to c# and ASP.NET (which I have learnt over the past couple of years). Anyway the problem is that I found on the SQLDTS.com site that I could in fact create and execute DTS packages within VB and followed the examples and got this working in VBA. Of course I created the DTS first and then saved it as VB, then used the resulting code with the VBA pr ...Show All

  • .NET Development DoEvents not working?

    This code doesn't seem to be working right. What I need to do is watch for left and mouse downs, and when both are down at the same time, show a window. This class should do it, but isn't working. The processMessage variable tells the mousehook to send the message to the appropriate window or to consume it. Public Class mouseComboWatcher Private WithEvents mh As WickedOrange.MouseHook Public Event ComboPressed() Public Event ComboReleased() Sub New () Me .mh = New WickedOrange.MouseHook End Sub Private leftMouseDown As Boolean = False Private rightMouseDown As Boolean = False Private comboDown As Boolean = False Private Sub mh_Mouse ...Show All

  • Windows Forms ListView Items Question

    Hi folks, I'm wondering how to get a ListViewItem with just it's index. Can anyone tell me the method for this   -Zero Strange, but the code you folks quoted above doesn't seem to work: listViewFilters->Items[0]; Produces the compiler error, " c:\Documents and Settings\Zero\My Documents\My Visual Projects\LogCopy\dlgFilterList.h(268) : error C2845: '[' : cannot perform pointer arithmetic on __gc pointer 'System::Windows::Forms::ListView::ListViewItemCollection __gc *'" The project is in Managed C++ under Visual Studio 2003. ...Show All

©2008 Software Development Network