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

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

wencey

Member List

jerrykur
yanyee
TSteadman
briggins5
Alastair Q
Viren Kapadia
Eric Delaune
Taitt
Chuck Turner
DennisS
briendjf
Dave Waterworth
Madix_t
Weavor
Tadwick
Ash Sid
r6rider
SpoonsJTD
Trish
prozac11
Only Title

wencey's Q&A profile

  • Microsoft ISV Community Center Forums Refer to another module

    I have a small problem with a macro. I have two different moduls in my code. In module1 i have the code for some buttons and so and in module2 i have the code for what happens if i press the buttons. However my code has trouble finding the different modules and I need help on how to write this properly. Code in module1: Sub Create_Menu() Dim MyBar As CommandBar Dim MyPopup As CommandBarPopup Dim button1 As CommandBarButton ..... Set button1 = .Controls.Add(Type:=msoControlButton) With button1 .Caption = "Button!" .BeginGroup = True .OnAction = "button1_Click" and in modul2: Sub button1_Click() Dim objChart As ChartObject Now I need help with how to refer to the sub. My code is quite mes ...Show All

  • Visual Studio 2008 (Pre-release) Using the First and Single methods

    I am using the LINQ to Entities (I call it ELINQ as opposed to SLINQ, LINQ Tto SQL) and I am successfully creating and adding entities to the database using code like the following:                 NorthwindModel.Orders newOrder = new NorthwindModel.Orders();                 newOrder.OrderDate = DateTime.Today;                 orm.AddObject(newOrder);                 int x = orm.SaveChanges(); However, I also want to set the Customer objec ...Show All

  • Visual Studio Tools for Office Adding a macro to excel using C# in asp.net

    I am creating a customized excel report for my company using a webpage. Part of the excel file is a macro to handle printing though, and I can't seem to get it to work correctly. The code works... The page building the report impersonates a user that has access to Excel. Excel files can be created but, when I attempt to add the print macro I recieve this error: Programmatic access to Visual Basic Project is not trusted The user being impersonated has the security setting in excel set to: Trust access to Visual Basic Project I discovered on accident that if the impersonated user is actually logged in on the server that the code executes as expected, every time. If you have any idea how to correct this problem please let me ...Show All

  • Visual Studio Express Editions .NET framework...

    If I uncheck the "enable application framework" in the "My Project" tab in a solution, and then build the program, will it run on non-.NET PC's .NET framework is not part of OS service packs but is available as an optional download on the windows Update. Its freely available and most apps will install the appropriate version of the framework when you try to install them on you machine if you dont already have it installed - so its pretty easy for the framework to make its way to you machine. ...Show All

  • Visual Basic not legal form error

    Hello, I have written a small applicaiton for a class that opens and displays an image file, however when I get the open file dialog box the app crashes and states the path is not in a legal form. Has anyone ever run into something like this Here is the code I am using to select the file and pass it to the Picture Box If ofdOpen.ShowDialog = Dialog.Result.OK Then End If picBox.Image = Image.FromFile(ofdOpen.FileName) Thisi is the error I get when I compile the app and the cause the error to occurr System.ArgumentException was unhandled Message="The path is not of a legal form." Source="mscorlib" StackTrace: at System.IO.Path.NormalizePathFast(String path, Boolean fullCheck) at System.IO. ...Show All

  • SQL Server Regarding Installation of SQL Reporting Service

    Dear Friends,            This is narendran. I want to install the SQL Reporting Service. I am facing some problem. Here Microsoft SQL Server 2000 Enterprice edition installed one server. I am trying to installed the Reporting Service another one system. During the Installation I am facing the following errors. During the Installation: Installer ask some options... that are SQL Server Instance name:...........                 that in combo box First problem:- Combo box is empty, Here I am gave the database server system name assume "kersql" Name :................. text box.... what am i suppose to do here ...Show All

  • Visual Studio 2008 (Pre-release) Providing alternate styles for a control

    involved_Mike_Brown wrote (at http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=490249&SiteID=1 ): "What you want to do is create two named styles within your control's generic.xaml. After your control is initialized, set its template to one of the styles. If you want to change the style, load it from the resource dictionary and set the control's template to the new style."   Hi Mike, Could you explain this step a little more fully Practically all of the examples I have seen relate to themes rather than skins. The only skin example I have seen is the format outlined in the  Programming Windows Presentation Foundation book, but it seems like having default visuals and multiple skins for a custom control ...Show All

  • Visual Studio Vss data store

    When Vss will use sql server like data store If you have Visual SourceSafe installed, you just need to switch the source control provider in Visual Studio. Start VS2005 Do Tools->Options->Source Control On the Plug-In Selection tab, choose Microsoft Visual SourceSafe Now, any projects you put under source control with use VSS on the back end. -Brad ...Show All

  • Windows Forms Cannot implicitly convert type 'PocketVision.DataSetTasks' to 'PocketVision.DataAccess.DataSetTasks'

    I'm using VS 2005 to compile the c# version of PocketVision. Clean install and compile it works fine. Any change like editing the url in the Web References causes a whole heap of similar errors like: Cannot implicitly convert type 'PocketVision.DataSetTasks' to 'PocketVision.DataAccess.DataSetTasks'. Error 6 The best overloaded method match for 'System.Data.UniqueConstraint.UniqueConstraint(string, string[], bool)' has some invalid arguments Error 13 Argument '2': cannot convert from 'System.Data.DataColumn[]' to 'string[]' I don't understand what has happened to the namespaces it's really wierd. Any help appreciated James Yep, thanks that is useful. After I posted this, I read in th ...Show All

  • Visual Studio Team System How to run run new tests in an existing team build?

    Hi All,   Been searching for a article or knowledge on how to run tests in a new test projects.  The new test project was created afterwards and has been added to an existing solution that has an existing Team Build already created.  I changed the team build property to "true" in the TFSBuild.proj file and ran the build, but no tests were run. < RunTest > true </ RunTest > The team build is not running the tests and completes successfully.  What am I missing   Thanks   Mike You can also run tests without using a test list (instead, you point the test tools task at the assemblies which contain the unit tests) using the sample ...Show All

  • Windows Forms inheritance at runtime

    hi , how do i make this form inherit another form at runtime Dim selectInvoice As New Form it should inherit from 'template' - my base form. base form is called template which has standard exit buttons. i have some forms to create on the fly, and they should all inherits the base form. therefore: it should have been at design time: class form1 inherits template but now if the same thing at run time pseudo : dim form1 as new form inherits template i want the same functionality as above that we all do at design time, . me want to know how to do it run time. ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. DirectX and Remote Desktop

    Hi All, why a DirectX application fails in Remote Desktop Mode I suspect that remote desktop, like virtual PC, does not emulate a powerful enough graphics card to run your application. However, I though that a windowed DirectX app should run just very very slowly as it will have to transfer the entire windows content as bitmap every time. FullScreen I doubt you will see anything. ...Show All

  • Visual Studio Express Editions reading wav files, extract the sub-chunk with data, play wav

    Hi there, I'm a newby, and so I need your help. It's more like a big help I'm looking for. I have searched for a way to do this: open a *.wav file start reading the sub-chunk containing the wave data generate some data using this chunk play that chunk print a graphic using GDI+ go to next chunk etc.. it's, ofcourse, a wave form graphics application. I am using the wavefile class (I have found many alternatives), and I have these problems: I don't know where exactly is stored the "current"(at some point) data chunk; how can I read what's in the buffer containing this chunk from another .dll (a class witch a function that processes this data) I know that there are 2 buffers when playi ...Show All

  • Visual Basic Can you digitaly sign your program?

    hey i was wondering can you digitaly sign your program and also make to be able to install into C:\Program Files is this possible thank you. And I think that with ClickOnce deployments they will deploy to a users local folder and not to a location like c:\program files\xxxx I think you may need to create a windows installer package to achieve this. But it can definately be done. ...Show All

  • Microsoft ISV Community Center Forums Hide/unhide

    I have a button that when the user presses the button the program will search an ordered column for values equal to 0 and hide the rows that has values equal to zero. If the rows already are hidden then they shall be revealed by pressing the button. My code is: Sub showHideButton_Klicka() Dim relativCell As Range Dim i As Integer, j As Integer, k As Integer Dim blnFirstFound As Boolean, blnLastFound As Boolean, blnIsHidden As Boolean Set relativCell = Worksheets("Berakning").Cells.Find("Rel.", LookIn:=xlValues) 'hittar forsta och sista cell med varde 0 Do Until IsEmpty(relativCell.Offset(i, 0)) = True Or blnLastFound = True If blnFirstFound = False Then If relativCell.Offset(i, 0) = 0 Then blnFirstFound = True k = i ...Show All

©2008 Software Development Network