Swapna.N's Q&A profile
Smart Device Development Connection to SQL Server 2000
Hi, I am trying to connect to an SQL Server 2000 database using VB.NET 2005 CF. When I run the application (code below), I get the following error: An unhandled exception of type 'System.Data.SqlClient.SqlException' occurred in System.Data.SqlClient.dll Additional information: SqlException Can anyone help me solve this problem When I use the same code in a windows application from, it works fine, but it doesn't when I run it on my device. Imports System Imports System.Windows.Forms Imports System.Data Imports System.Data.Common Imports System.Data.SqlClient Public Class Form1 Inhe ...Show All
Windows Forms Attaching a form to a button
I have button which opens a form. I'm setting location of the form just beneath this button using .Top and .Left properties. What I'd like to do is change the location of the form when the location of the button changes (like when maximizing the window the button is in), aka attaching it to the button. Could you give me any ideas on this ...Show All
Visual Studio Team System MSF for CMMI in Beta 3?
Can someone within MSFT please confirm that TFS Beta 3 will contain the complete MSF for CMMI template If not, should we expect it sometime this year or not until the actual TFS RTM Thanks Rob. I know that this is slightly off topic, but my understanding from other posts is that TFS Beta 3 should be available around mid September for PDC. Can you confirm that Beta 3 and MSF for CMMI will be available this month ...Show All
Windows Forms Prerequisites and ClickOnce Application
Hi All, I deployed ClickOnce application with prerequisites(.Net FrameWork,Sql Express etc..). The application is working fine. In the long run if I have to upgrade my application and if it needs some other prerequisites, is there any way to include prerequisites with application updates Plz suggest any solution for these scenario. Thanks in advance Srinivas Hi Srinivas, Unfortunately there is no way to have ClickOnce auto-install updated prerequisites with update of application. This is something that is on our radar for future releases. ClickOnce app updates are meant to be isolated, per-user, non-impactful updat ...Show All
Visual C# Security exception unhandled when using DirectoryServices
I've recelty started writing c# code so I'm still kinda new at this. Anyway here is the problem. I installed visual studio 2005 and I'm trying to do an active directory bind statement. Here is my code for the bind: DirectoryEntry entry = new DirectoryEntry ( LDAP://mtmercy.edu ); But when this segment of code executes I get the debug error below: Here is the error: Request for the permission of type 'System.DirectoryServices.DirectoryServicesPermission, System.DirectoryServices, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' failed. The odd thing is that I tried this same bind code in visual studio 2003 ...Show All
.NET Development Mass mailing in C#.
How can we send mails by bypassing SMTP relay server in c# Will it speed up the process of sending mails or not If anybody have knowlege regarding this plz reply ASAP. The only real challenge will be resolving DNS MX records (which contain DNS data on the SMTP server(s) that receive mail for a particular email address). The .net Dns class doesn't seem to provide support for querying MX records. So you'll have to do this in a non-dot-net language. Doing DNS through raw TCP isn't something you want to do. Native Winsock DNS APIs are a bit of a pain to use (but no worse or better than the unix equivalents). That will be the bulk of the ...Show All
Software Development for Windows Vista IfElse Activity in a While Activity
Is there any reason that I shouldn't be able to drag an IfElse activity into a While activity I'm unable to do so. I'm running Workflow Foundation beta 2. Thank you in advance... While activity can have only one child activity. You can add Ifelse directly to while or add a sequence and then add other activities to that sequence ...Show All
Visual C++ Using classes from dynamically linked DLL
I am attempting to use classes that are defined in my custom written DLLs. I am dynamically loading the DLLs using LoadLibrary. I already know how to access functions using GetProcAddress. Is it possible to do something similar for classes No! You can not use class exports via this way with LoadLibrary. A simple approach is to create interfaces like COM interfaces and return only pointers to those interfaces from the DLL. This is alaso a very flexible aproach and you hide the implementation details fully. ...Show All
Visual Studio Crystal Reports Deployment in VS 2005 Using Setup Kit
Having followed the instructions in "Thanh T. To."'s post (thanks), I am now receiving a warning about the lack of a "homesite" for Crystal Reports. It appears that the prerequisites allow me to download the (presumably latest) version of the Crystal Reports redist from the vendor's site -- except that the vendor's site is apparently blank right now. Since I can also manually enter a site, does anyone know which site I should use so my setup kit users will download the latest version of Crystal Reports 2.0 Or, does Crystal just not support this right now I had two diffrent apps. complete and ready to deploy when ...Show All
Windows Forms type Q??
Hi all, i'm just starting programming in .net and got the folowing Question Somebody can explain why this is not valide Function Something(ByVal Expr As Object, ByVal somType As Type) As Type ...... ....... ........ Return CType(Expr, somType) End Function Regard Remco Are you trying to write a function whereby the type of the object returned is ...Show All
Windows Forms Borderless Form -- Right Click Menu of Taskbar
Hi, this is silly but no right click menu (maximise, restore, close, etc) comes up, when i right click on the icon of the borderless form in the taskbar. i have set showInTaskbar to true for the borderless form and border to none. Also how can we change the right click menu of the taskbar for our programs, say add another item (always on top) under the close option. thanks in advance. Ok Mick, thank you, I was also thinking about a way of letting WS_THICKFRAME but forcing the system border not to be drawn. Your solution seems good, yet it's true it's a problem if it doesn't work on Vista. I'll ...Show All
Visual Studio 2008 (Pre-release) Error at element 'StaticExtension' in markup file '' : Binary format of the specified custom attribute was invalid..
I'm getting the above error in my WinFX Windows Apps (including XAMLPad when it tries to start - I've never succeeded in opening it, so it can't be badly formed XAML) at line 51: return app.Run(args); in MyApp.g.cs Stack trace is given as follows: " at System.Reflection.CustomAttributeEncodedArgument.ParseAttributeArguments(IntPtr pCa, Int32 cCa, CustomAttributeCtorParameter[]& CustomAttributeCtorParameters, CustomAttributeNamedParameter[]& CustomAttributeTypedArgument, IntPtr assembly)\r\n at System.Reflection.CustomAttributeEncodedArgument.ParseAttributeArguments(ConstArray attributeBlob, CustomAttributeCtor ...Show All
.NET Development When(why) use DataSet?
I have a very simple Access database which consists of only one table and an auto number field (ID) has been used as the primary key for the records. All the columns are directly mapped to a object's properties except the ID property of the object is set to 0 initially. I only use OleDbCommand object to execute sql statement but is there any way to get the value of the ID column of a just inserted row (I want to update the ID property of the object after it's been added to the database) I know there's a RowUpdated event that I can use to get the data when DataAdapter and DataSet ...Show All
Game Technologies: DirectX, XNA, XACT, etc. rendering meshes in c#
hi! i've made a mesh picture_1: http://toomaniac.com/kopi/blender/object_mode _solid .gif even on actually flat faces there are a lot of triangles i.e. many different faces picture_2: http://toomaniac.com/kopi/blender/edit_mode.gif when i view the mesh in the meshview - that one that comes with the sdk - it looks like that picture_3: http://toomaniac.com/kopi/blender/directx.gif and when i load the mesh to my device it looks like that too why does the mesh don't look like on the first picture are there any parameters or renderstates settings i've to make here you can find my code: http://toomaniac.com/kopi/blende ...Show All
Windows Forms How to reference an active form in design time
My question is: I have to change status of controls, i.e text of a textbox, on the startup form of my application. I just don't know how to make a reference to the form to do that. As you may know, the form is created automatically when application starts and creating a new instance of the form is obviously not the way. edi ...Show All
