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

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

masmith

Member List

Beetle54
Arran Siu
Voodoo45
Ankith
USJOHN
dakerson
Grantcv1
shohom67
Rajesh Kumar J
BRCEWANE
RoryM
Martin Schmidt
kennm
gregmlucas
Chas T
Ralph Trickey
KevinBurton
sascue
Alex Mujar
Pierce28
Only Title

masmith's Q&A profile

  • Visual Studio Express Editions How to save and open projects

    I started learning Visual Basic Express Edition yesterday and can't work out how to open projects once i've saved them. i can't find the answer in the lessons. i can see where the files are but when i tell it to open them nothing appears. am i being really stupid they run when i press f5 but i can't see the design form . ...Show All

  • Software Development for Windows Vista Building a "long process" WF runtime

    So I'm going to be implementing a set of workflows triggered by application events. Now, sometimes there will be a long wait between one activity and the next. Is WF designed to just "wait around" constantly running or should the different workflow instances be persisted in SQL Server until they need to continue Sorry for such an intro question but I can't buy a book on beta software! :-) I spent some time this morning with persisting workflow instances to SQL Server. That works very nicely. Considering WF is a runtime that needs a host, has there been a lot of discussion on building a robust host application for workflow instances I see my workflow instances being initialized, delayed, and restarted numerous times before ...Show All

  • Microsoft ISV Community Center Forums View users who are logged in to access database

    Hi - I have an access database and i have multiple users who log in and based on their login information they can then complete certain functions within the database. Their login is stored in a global variable (loginname), which remains with them throughout their session until they log out. What i would like to do is have a form within the database application that i can open that shows which users are currently logged in Can this be done Using VBA is there a way of accessing the usernames that are stored in the 'loginname' global variable Or can this information be gathered from the record locking file Many thanks, Rhys. Hi Rhys Not sure if the above can be done. But, if you are controli ...Show All

  • Windows Forms Error Code: 0x80070643

    I have tried to install Windows and Office updates utilizing the Automatic installation tool; but, the initialization takes place and none of the updates are intalled. I ran WinDoctor and I am told that I am missing file "ORUN32.exe" and it cannot access "learn32.dll" and "pctree32.dll". I have searched my computer and found the orun32 and pctree32 files but not the learn32 file. I don't know how it got deleted and not sure how to get it back in place to use the automatic update. What do I do to get my Automatic updates to run again Please help me! Office Source Engine bull *** solution does not work...no matter how many times you restart this service. This problem was most likely created ...Show All

  • Windows Forms Draw on top of Image

    Hello. I have a custom control that loads a large image and displays it on screen (using scrollbars). The problem is that I want to draw on the visible part of the image (the part that is currently on screen) and I want to be able to modify the things that I'm drawing (i.e. if I draw a line on top of the image, I want to be able to remove that line later). I did something like this, with the help of this forum: (where Image image = Image.FromFile("picture.jpg"); ) protected override void OnPaint( PaintEventArgs e) {    e.Graphics.SmoothingMode = SmoothingMode .AntiAlias;    Rectangle src = new Rectangle (-AutoScrollPosition.X, -AutoScrollPosition.Y, this .Width, this .Height);    Rect ...Show All

  • Visual Studio 2008 (Pre-release) HorizontalAlignment on DataTemplate in GridView (bug?)

    We have a ListView with a GridView, witch has a DataTemplate on the columns. The DataTemplate consist of a border with a TextBox. In May CTP the HorizontalAlignment=Stretch on the Border and TextBox worked fine, but this doesn’t seem to be the case in June CTP Best regards,   Thomas Andersen   Aha, I got the right solution from Microsoft: <snipped from Connect> This change is a result of a bug fix where ListViewItem was not respecting the default value of its HorizontalContentAlignment property. The default property value is Left so your TextBoxes should have appeared left aligned in the columns but because of that bug, ListView was stretching them. To get stretching beha ...Show All

  • Windows Forms split view application

    I've been looking around for how to do a split view application. Much like Outlook the application I'm trying to create has buttons you click on the left hand pane and then another view in the right hand page which changes depending which button you click. I have added a splitContainer with the thought that maybe I could add and remove user controls from the right panel. I can't see any immediately obvious way of doing that though. I would be interested to know how any else has gone about implementing this. Thanks for any help or pointers. Take a look at "Outlook 2003 Look And Feel' at this link - http://www.windowsforms.com/Default.aspx tabindex=4&tabid=49#User%20Interface Very useful ...Show All

  • Visual Studio VS .NET 2003 debug broken with windows XP SP2/VS2005

    I have recently installed windows XP service pack 2 and a trial demo of VS2005/VSTS on my PC. Now I can't debug in VS .NET 2003. I get:- "Access denied. Verify that you are an administrator or a member of the 'Debugger Users' group on the machine you are trying to debug. After being added to the 'Debugger Users' group, you must log off and log back on for the setting to apply". My MDM isn't running and when I try and start it I get:- "The Machine Debug Manager on Local Computer started and then stopped. Some services stop automatically if they have no work to do, for example, the Performance Logs and Alerts service." I have looked through all microsoft articles I can find and tried everthing they sugge ...Show All

  • SQL Server SR 2005 - Code works in preview, but not when deployed.

    SSRS Version: 2005 I've created a report that has a simple function that cycles through a multi-value parameter list array and returns a string value of each list item that was selected seperated by a comma. I use this so I can display in a textbox which items were selected. The code works when you preview the report in the designer; however, once it's deployed onto the server, the textbox that calls the code displays: #Error. I've been researching this problem in other forums, but the only thing I've come across talks about security permission when running a custom assembly. I'm not using any custom assemblies. Can anyone help me out with this problem and let me know how to resolve this issue Below is a copy of the code I'm using. ...Show All

  • Visual Basic Debugging

    Deploying PDB file with application helps to find name of souce code file and line where is error. But, when I handle errors in Try... Catch statement, how to read that information All I have is ex object but I can't find there what is souce code file name and line of error. Is it possible to read that information (from PDB file or whatever) while error handling There's not much you can programmaticaly do with the stack trace, not that I think you'd really want to. If you view it in the debugger, you can see what file/line# (and the entire call graph) caused/threw the exception. What more do you need ...Show All

  • Visual Basic Workbooks.Open(fileName): Cannot fix Overload Resolution Error

    Okay, I have searched and searched, read and read, and every solution I have found is simply not working. Here is the problem: I have assigned an Excel File name to the variable 'fileName' (as String). Everytime I utilize the following code, I get an error. ___CODE FOLLOWS___ Dim xl As New Microsoft.Office.Interop.Excel.Application Dim xlWkbk As Microsoft.Office.Interop.Excel.Workbook xlWkbk = xl.Workbooks.Open(fileName) ___END CODE___ The error is "Overload Resolution failed because no accessible 'Open' is most specific for these arguments..." I have loaded the Excel Object Library, added it to my project, and as far as I can tell, I have done everything right, but no matter what I try, I keep getting ...Show All

  • SQL Server osql batch command does not return any records when executed using Scheduled Tasks

    I've read a similar post but there was no solution It seems a bit weird.  I created a batch file which runs osql which runs a very simple SELECT statement - no parameters, simple WHERE clause, etc.  When I execute the batch file, it generates a file which contains the results of the query.  But when I run the same batch file using Scheduled Tasks, it does not return any record at all.  The account that I use to execute the batch file and execute the query is a member of the sysadmin role.  Am I missing something out ...Show All

  • Smart Device Development CImage::GetBits() leads to segfault with CImage::LoadFromResource()

    The following code doesn't work: CImage *image = new CImage(); if (!image) return -1; HINSTANCE inst = GetModuleHandle(NULL); image->LoadFromResource(inst, IDB_BITMAP1); if (image->GetBPP() != 24) return -1; LPBYTE UNALIGNED bits = (LPBYTE) image->GetBits(); if (!bits) return -1; *bits = 0; Last operation causes a segmentation fault. The bitmap was succesfully loaded and image->Draw() works fine. Value of bits was 128. This code works: image->Create(32, 32, 24, 0); LPBYTE UNALIGNED bits = (LPBYTE) image->GetBits(); *bits = 0; Any ideas You seem to know a lot more about it all than me, I guess you've been on it for a while now haha. I know you said 1 ...Show All

  • Windows Forms Finding a the related row position in a datatable form a dataview

    Hi All, Sorry about the complexity of the following. I have a DataSet containing a number of tables, one table SLAWarnings is shown in a DataGrid through the DataView dvWarnings. Attached to the table is a BindingManagerBase bmWarnings which is used to fire the PoistionChanged event. On this event I set up a temp relationship within the dataset to another table. I then use the .Position of the bmWarnings to GetChildRows of the related table and loop through them adding the rows and other stuff to a tree view. The problem I have is if the DataGrid has been sorted, the .Position then applies to the DataGrid row and NOT the DataTable row needed for the relationship. Can anyone give me some help/advice on how to get the underlyi ...Show All

  • Visual C# C# Book Recommendations

    This sticky here will be used for people to post their C# book recommendations. It will help us keep the forum a bit cleaner than making several topics about book recommendations and also helps everything to be in 1 "spot" and alot of people can see the book recommendations that you have given everyone else in this topic. So please, feel free to post your book recommendations here for developing in C#! :-) If possible, include any links where the person would be able to obtain the book from, and it's ISBN number which would be a big help to everyone! My favoriate C# specific book would have to be Effective C# by Bill Wagner, he goes through 50 mostly-short examples of ways to improve your C# code and the reasoning behind it. I ...Show All

©2008 Software Development Network