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

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

JLarkin

Member List

SivaS
CraigC
spelger
fuongptit-kodomo
winprock
Sparklight
Jon Watte
learningdba
Brad Roberts
Marcus Rodrigues
philcart
thomp89
Thomas Hirte
Kent Boogaart
Ayooya
Black-Pear
iSerg
brian_tsim
Can-Ann
gracias
Only Title

JLarkin's Q&A profile

  • Software Development for Windows Vista Vista Menu Gutter

    This may seem like a very strange request, but without using owner drawn menus, is there anyway to simply hide the left hand side menu gutter area ( where the check marks & icons are shown ). We have a situation where some older code that does not use checks or marks is required to run under vista, and the left hand space will not be used. Thanks in advance. This is not a strange request and it is easy to accomplish: Call SetMenuInfo on your hmenu and use the MNS_NOCHECK flag, something like this: MENUINFO mi = { sizeof(MENUINFO) }; mi.fMask = MIM_STYLE; // do (MIM_STYLE | MIM_APPLYTOSUBMENUS) if you want to affect submenus. GetMenuInfo(hmenu, &mi); mi.dwStyle = (mi.dwStyle & ...Show All

  • Smart Device Development Changing Skin

    Is it possible to change the smartphone skin when programming in VS2005 I am working with a cingular 8125 and I was wondering if I could change the skin to that. Jim P I believe you are talking of Device Emulator. Yes you can do that. From VS, Tools->Options->Device tools->Devices-><Emulator Name>->Properties->Emulator options->Display tab or in DE, Files->Options->Display tab. ...Show All

  • SQL Server How to Assign Identity Key values in Replication

    This is a very basic question on replication. I'm having a central Server with SQL Server 2005 Standard Edition and Other sites with Sql Express Server 2005. Other sites will also be adding New records and data will be replicated to Central server and from there it will be distributed to all sites. Question is that if Other sites are also adding Records how i can assing Identity values in those databases. There are few restricitons on this :- 1. I don't want to use GUID. 2. Numbers should be sequential that is after 1000, 1001, 1002 etc. should come. i thought of adding Negative Values in the primary key on other sites and then when data is replicated on central server then replace it with sequential key but i'm not clear ...Show All

  • .NET Development Stopping/Killing a windows service

    I'm writting a watchdog application that will test a windows service on the same server. If the service does not respond with updated information I want to stop and start the service(this seems to take care of our problem); however, the service does not always stop in a decent manner and it seems that I need to kill the process. I have tried to implement process.kill(), but that doesn't seem to be doing the trick either. Is there another way in c# to kill/terminate this process Yes, I'm creating a servicecontroller object, calling the stop method, then calling waitforstatus with a 30 second timeout. Often the service doesn't stop within the 30 seconds, so I've been trying to kill the process. ...Show All

  • Visual Studio how can I disable the debugger?

    Every time a program crashes or do something wrong it pops up a window that ask me what debugger I want to use. Its annoying... I causes me to exit from this game I'm playing - "Titan Quest" and I don't want it to pop up anymore... I have turned off the debugger options in Visual Studio 2005 Pro and also deleted the registry key mentioned in the referenced article ... but i still get the "unhandled exceptions" warning messages. How do I get rid of them. ...Show All

  • .NET Development Can't debug Native x64 Dll - invoked from Managed x64 Exe (URGENT)

    My whole team is impacted (severely slowed) by this one. Currently we are debugging via trace output, which is obviously sub-optimal. We are developing some Native x64 DLLs that are plugged into an x64 Managed application. We really need to be able to debug the Native DLL in Visual Studio 2005. However, when specifying the managed Exe as the Debug Command for the project, I encounter the following error message.    Unhandled exception at 0x78d4dd30 in Managed.exe: 0xC06D007E: Module not found. It appears the managed application is no being launched properly. Please advise as to what is going wrong here. Thanks NIK  Note: I understand that full Mixed Mode x64 debugging isn't yet suppor ...Show All

  • Visual Studio Tools for Office Get the current / active worksheet

    I'd like to ask how I can get an instance of the active worksheet in order to use the AddListObject method Currently, I used: Globals.Sheet1.Controls.AddListObject... But I want to add the listobject to the active worksheet instead of hardcoding to Sheet1. (If a user create a new worksheet, then my code will not work anymore) Thanks, If you do not need to use any of the databinding capabilities then just use what Excel OM What's OM Moreover, if I don't need databinding capability, then I won't use ListObject, which is supposed to be the best control introduced in VSTO 2.0 for databinding use. So, your assumption is wrong and the fact is I need to create ListObject dynamically, bind dataset to it a ...Show All

  • SQL Server Help on one colum

    Hi, I have a column in SQL that needs to be created. This column needs to start with 10 zero's. If I add a number, say 135 the column needs to read : 0000000135. Is this possible If it is how do I need to go about to do this. If I need to create a view or something like that I do not mind. I am open to all suggestions and appreciate the help. Use the following query.. Select Replicate('0',10-len(Convert(Varchar,ColumnName))) + Convert(Varchar,ColumnName) From TableName ...Show All

  • Visual Basic Rounding Help

    Hello, I'm new to the forums, so if I have placed this message in the wrong subject, I apologize. But, I'm hoping someone might be able to help me. I am trying to compare two numbers in VB.net. I want to compare all the digits to the left of the decimal point and only the first digit to the right to see if they match. For example: 8.6 4 and and 8.6 9 would be a match because all that I'm concerned with is the first digit to the right of the decimal point. But, if I use the Math.Round , it would round 8.6 4 to 8.6 and 8.6 9 to 8.7 - and then they wouldn't match. I thought I could determine the length of the number and then trim the digits, but there could any number of digits to the left and/or right of the decimal poin ...Show All

  • SQL Server re-establishing mirror

    When witness and mirror were down, mirroring was removed at primary. Now when I try to re-establish mirroring I get the following error Msg 1456, Level 16, State 3, Line 1 The ALTER DATABASE command could not be sent to the remote server instance 'TCP://witness:5022'. The database mirroring configuration was not changed. Verify that the server is connected, and try again. On the witness server the following sql select * from sys.database_mirroring_witnesses returns 1 row with the previous mirroring information. How do I remove old information from witness server Thanks. Hi, I think i am having the same mirroring issues as you had.....in my case, server1 is the principal, server2 ...Show All

  • Visual FoxPro Grid and textbox Refresh issue.

    I'm having this problem with an application I’m writing. I have a Grid with a couple of text boxes next to it. When you select a record it updates the values in the textboxes with the values from that record. I also have a few command buttons that switch the tables viewed in the grid. Now here’s my problem... The text boxes stop updating after I change the tables a few times. Not sure what I am missing because I don't get any error messages and it does work for a little while. If you need more information let me know. Try changing _mainform to thisform. _MainForm is not guaranteed to be be thisform (public var, scx name both dangerous). ...Show All

  • Windows Forms Textbox input

    I'm collecting numerical data from users via a textbox by using the following code. double val=Convert::ToDouble(textBox1->Text); How can I make sure an exception is thrown when someon tries to input other text characters or other non numerical characters You could change the following line to include the current culture's decimal separator (may be a dot or a comma in different countries...): if (int::TryParse(character, number) == false && character != "\b" && character != System.Globalization. CultureInfo .CurrentCulture.NumberFormat.CurrencyDecimalSeparator ) Andrej ...Show All

  • Visual Studio Team System Deleted Folder still visible- Can't remove

    I deleted a folder. Other users can't see the folder but I can. I checked and unchecked show deleted items just to be sure. I did Get Latest and Get Specific version on the entire project (with force get). I did refresh on the tree. I restarted the IDE. Still shows the folder after that. Is the folder a Team Project If not, can you dump the history of that slot (tf history $/path/to/folder;X1234 /i /slotmode -- no /r) ...Show All

  • SQL Server Aggregation problem in Report Designer

    Hi!!! Please help me. I have the following table structure. -A (name) --B (name) --C (name, total) For example. A { Tom, Sam John } B {Mazda, Audi, Ford } C: { (Monitor, 100), (Telephone, 230), (Mouse, 370)} The corresponding sql select: select * from A left join B left join C Retrive obvios result: And now I have desing report with the following structure: 1) Create list element (A_List) and use detail group to grouping data by A.name in it. 2) Then I use 2 another lists and placed it in A. Now I want get the textbox = Sum(C.total) in the A_List area. It is obvious that ealier represented sql select make cartesian product (AxBxC) of A,B,C tables. And now I have multiple record for single row fo ...Show All

  • SQL Server value is null remotely - non null locally

    ok here is a WIERD issue. I've NEVER EVER had this issue, I have always done this and it works great both locally and remotely.   I have a table, which is a "customers" table. I have a stored procedure which takes in parameters (name, address, password etc...) and returns me back, via a parameter declared as output - the customer ID. I've always done this, and works great. Now, this works fine locally.   IF I try to run this/do the exact same execution of commands (create a customer) remotely (where the database is stored, so copying everything from local to "over there") it does not work. I get a DBNULL value back from the parameter, declared as an int output.   IF I copy and paste this Stor ...Show All

©2008 Software Development Network