Calvinator's Q&A profile
SQL Server Wheres the data?
Ok, this is driving me nuts. I create a SQL database and populate the fields. I can see the fields in the grid with the data, I tell it to update and it does, at least there is a delay while it does. Me .AddressesBindingSource.EndEdit() Numrecords = Me .AddressesTableAdapter.Update( Me .MyFirstDatabaseDataSet.Addresses) The value of Numrecords is the correct number of new fields. But, if I exit the program and come back in, the new records, or ones I deleted are not there. I was populating the table by reading information from a folder in my program. (The above statements are in the form1.closingform event.) So, I deci ...Show All
Visual Studio Creating a Crystal Report with VB.NET and SQL Server Express 2005
Hi there, I haven't received any replies to a question I posted, so I'll try a different approach. Can anyone point me to any resources (tutorial, walkthrough, articles) on creating a report in Crystal Reports, using VB.NET 2005 and SQL Server Express 2005. Specifically how to set up a connection to SQL that can change. The structure/data in the SQL views/tables won't change, but the string used to connect to SQL will. I test on my laptop. When I hook up to the network, I need to switch my connection to the network SQL Server. Thanks in advance! Amber I would refer to the following Kbase article ...Show All
Smart Device Development trying the send/receive messages with cemapi...
Hi all, I’m trying to make my application send and receive mail messages following some MSDN docs, but I’m facing the following problems: the piece of code is: ... LPSPropValue pRecVal = NULL; memset((void *)pRecList, 0, cbRecList); pRecList->cEntries = cRecipients; pRecList->aEntries[0].cValues = cRecProps; pRecVal = pRecList->aEntries[0].rgPropVals; pRecVal[0]->ulPropTag = PR_RECIPIENT_TYPE; pRecVal[0]->Value.ul = MAPI_TO; pRecVal[1]->ulPropTag = PR_ADDRTYPE; pRecVal[1]->Value.lpszW = L"SMTP"; pRecVal[2]->ulPropTag = PR_EMAIL_ADDRESS; pRe ...Show All
Visual Studio 2008 (Pre-release) DragDelta
Hello, I wonder why such useful future as DragDelta event is only supported by thumbs Many other FrameworkElements would benefit from having DragDelta, as otherwise we will need to implement same DargDelta as a facade on top of DragOver... Could someone shed a light on this, please Thanks. Thumb is designed to be used in the ControlTemplate of other Controls such as Slider, ScrollBar, or the ListView headers. Many controls do not use the DragDelta event and would not benefit from having it on FrameworkElement. If you need the drag events of Thumb, you should either create a new template fo ...Show All
.NET Development Best language for using Web Services
We are starting our first project using Web Services and I was wondering what's the best language to use and why Thanks Hello. Depends which language your key developer(s) masters. If you have experince in Visual Basic, I would prefer VB.NET, in any other case I would use C#. Except if you have senior C++ programmers or other diverse programmers, then I would allow any combination of VB, C++ and C# (and other languages, too). Many C programmers will be more productive with C#, I think, even if it means they need to learn something new. Entry-level programmers should in my opi ...Show All
Game Technologies: DirectX, XNA, XACT, etc. MDX Sample code doesn't work in my Visual Studio .NET 2005
Recently I got a new VS 2005, and downloaded DirectX SDK February 2006. I opened the DirectX Sample Browser, all the samples can be executed just fine. However after I installed these samples, let's say, EmptyProject(managed), I can build the sample code successfully, it just didn't work. And all the sample code using .NET Framework 1.1 failed to start up with this error messagebox: // .NET Framework 1.1 version Failed creating the Direct3D Device. System.NullReference Exception: Object reference not set to an instance of an object. at Microsoft.Samples.DirectX.UtilityToolKit.ResourceCache.OnResetDevice(Device device) in C:\CustomFolder\Empt ...Show All
Windows Forms Programmatically scrolling the TextBox / RichTextBox
Hi, Let's say that I have a TextBox or a RichTextBox on my windows form. I need to programmatically scroll it up or down, but I can't seem to find a way how to do it, the only method I have seen is scroll to caret. Is it possible at all, by a call to some method or by forwarding events from keyboard/mousewheel to the respective  ...Show All
Visual Studio How to check ASPX page language in 2005
I want to check for what programming language the current document in Visual Studio is in. I can get the currently running DTE (or technically the EnvDTE._DTE) but then cannot the language. I tried something like this: // works in Windows Forms 2005, not Web Forms 2005 EnvDTE._DTE dte = GetCurrentlyRunningDTE(); // function to retrieve current DTE from VS string programmingLanguage = dte.ActiveWindow.Project.CodeModel.Language; switch (programmingLanguage) { EnvDTE.CodeModelLanguageConstants.vsCMLanguageVB: // in VB! break; EnvDTE.CodeModelLanguageConstants.vsCMLanguageCSharp: // in C#! break; } In WebSites / Web F ...Show All
Visual Basic May i know what happen here??
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click PictureBox1.Image = "1.JPEG" Label1.Text = "what text" End Sub when i clck this button, the text "what text" will appear. but the picture stil can;t be display. the error showed is " value of type string cannot be converted to 'System.Drawing.Image'" May i know what happen> Assuming that 1.jpeg is a file that you're trying to load: Dim img as Image = Image.FromFile("1.jpg") something like that ( I don't do VB ). Then PictureBox1.Image = img is what ...Show All
Visual Studio 2008 (Pre-release) Longhorn Project Templates in VS 2005
I want to develop Avalon and Indigo applications in "Longhorn" Beta 1. I have the following configuration in my PC 1. Longhorn Beta 1 OS 2. VS 2005 "whidbey" Do we have an installer for Longhorn Project Templates in VS 2005. I don't believe the old bits (WinFX Beta 1, CLR Beta 2 etc.) are being maintained anymore. Is it possible for you to move to Windows Vista Feb CTP That way you can use Feb CTP versions of WinFX and the development tools for WinFX. The latter will provide project template support for WinFX applications. Windows Vista Feb CTP is available only to MSDN Subscribers, while the ...Show All
SQL Server Preview Error
Hi all, I am all the time receiving this arror message: TITLE: Microsoft Report Designer ------------------------------ A connection cannot be made to the database. Set and test the connection string. ------------------------------ ADDITIONAL INFORMATION: Login failed for user '(null)'. Reason: Not associated with a trusted SQL Server connection. (Microsoft SQL Server, Error: 18452) What should i do Thanks Hi, you are trying to logon with your datasource object as a SQL Server login, but your SQL Server doesn’t accept mixed (this includes SQL Server as well as Windows) authentication. So either switch your server ...Show All
SQL Server Linked Server from SQL Server 2005 (x64) to Sybase
Hi, We have been accessing databases on ASE 12.5 (on HPUX) from MS SQL Server 2000 (x32) successfully for years. We do this via linked servers we create on MS SQL Server. When creating the linked server, we would specify the Microsoft OLE Provider for ODBC as the provider, and the data source is the name of a DSN created with the Sybase ASE ODBC driver (4.20.00.67) that points the the HPUX box on which are the Sybase databases. We have also gotten this to work just fine on MS SQL Server 2005 (x32) Standard Edition SP1. However, we cannot seem to get this to work on MS SQL Server 2005 (x64) Enterprise Edition SP1. The Microsoft OLE D ...Show All
Visual Studio Team System Why does drop location have only the buildlog.txt file afterm Team Build builds a website successfully?
I'm using the Workgroup Edition of TFS in a Single Server configuration. I have VS team Suite with Team Explorer and Team Build on my client machine. I do not have the new template for ASP.NET Web Application which compiles the code of the website to single dll (VS 2003 Model). I then follow the exact process set here to create a single page website which displays "Hello, world" using a Label control the Text property of which is set to the literal string above in the page_load event handler. Now I build this project using 'F5' and "Hello, world" displays without any issue. I then create a BuildType in Team explore ...Show All
SQL Server Shared Datasources that use dynamic DB connection strings
Is it possible to create a shared datasource that uses a dynamic DB connection string I can't seem to get it to work. The db connection string is as such (server and DB names changed): ="Data Source=" & IIF(Hour(TimeValue(Today)) Mod 2, "FirstServer;Initial Catalog=exampleDB", "SecondServer;Initial Catalog=exampleDB") I can see why this wouldn't work as a shared datasource if I was using a report-specific parameter, but I'm just switching the server/DB based on the time. Anything special that I need to do to get this to work That's too bad... I have ~ 50 reports that need to switch between two serv ...Show All
SQL Server Problems with the VS2005 IDE
I have installed VS2005 MSDN-final, SQL2005, SQL2005 EXPRESS The problems I have are two 1. I can't add a new sql Database to my windows project due to an error about not being able to start a user instance 2. After I create a new database in SQLExpress, then the datasources window doesnot show the datasource I have created when if form designer view Any suggestions please SQLExpress instances must be referenced using its named instance localhost\SQLEXPRESS. If you are doing that then your ok. Also, make sure the sql services are started. The datasources window probably only shows you database informa ...Show All
