vavtnen's Q&A profile
Software Development for Windows Vista System.Transactions and MSDTC
I've recently tried using System.Transactions.TransactionScope to handle my transactions. Although it's very handy and simple to use in my business layer, i cannot get the code to run unless the Distributed Transaction Coordinator service is running on my pc. (SQL Server 2005 is running locally so i can test on a local version of our database) My question is: why does this service need to run if all i'm trying to do should only require a standard Transaction, not a distributed one Is my transaction being promoted (and thus suffering a perf hit) This is the codeblock where i'm using the scope: Dim scope As Transactions.TransactionScope = New Transactions.TransactionScope Dim newname, oldname As String Dim sjabloon ...Show All
Windows Forms i want to clear the datagrid and then load again how can i do this
when the form load the datagrid load i want to load the very firt datagrid again and again how can i do this check in this coding when i add the data the same datagrid columns are added.....there must be only 2 columns... thanks a lot Private Sub AddNewHeadOfAccount_Load( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase .Load Me .LoadDataGrid() End Sub --------------------- Private Sub btnAdd_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnAdd.Click If objDataBase.Insert("INSERT INTO ChartofAccounts (Code, HeadOfAccount, IsDeleted) VALUES (" & txtCode.Text & "," & "'" & txtHOA. ...Show All
Visual Studio Team System ALTER TABLE: Deploying changes new column's position
Created new database with one table. Created new project and solution. Using Schema Compare, brought in the new database schema. Added to new source control database Checked out table definition In the project, added a column to the table. Added it in the second positition, right after the first column. Checked in table. Schema Compare project to target database and wrote updates. Now, when looking at the target database, the column I added while in the project is there, but its in a different position within the table than where I added it. Is this correct I try to have an "order" to the columns in my tables for the sake of readability. If the system is just going to place them at the end of th ...Show All
.NET Development How to set a description for a Windows Service (VB .NET)
I'm talking about the description available from Service Manager when you do clik above. TIA Oh. A different issue then. Thanks for the pointer on .NET ServiceController. Wonder if it's related to the problem caused by ServiceInstaller on upgrade. ...Show All
Visual Basic Font Style
I have a button on my form that when clicked shows all of the fonts on my system in a listbox. My question is can I get the name of the fonts shown in the listbox to be displayed in there own style. Or do I need to click on one of the fonts in the listbox and have it's style shown in another control. You Have to handle this through an OwnerDraw Event Private Sub LoadListBox() ListBox1.DrawMode = DrawMode.OwnerDrawFixed ListBox1.Items.Add("Arial") ListBox1.Items.Add("Courier New") End Sub Private Sub ListBox1_DrawItem( ByVal sender As Object , ByVal e As System.Windows.Forms.DrawItemEventArgs) Handles ListBox1.DrawItem Dim fontName As ...Show All
.NET Development Which Method is Better for Transferring Large Datasets/Tables
Here is the application: There's database server that has a database that has "a lot" of data in it. i.e. There are about 30K+ Customers, 15K+ suppliers (Of course growing) and I want to be able to access the data from the various table and display(listboxes, comboxes) and query(by entering ids/strings etc) from mobile application on PPC 2003 WLAN Powered Handheld Devices. For eg . the customer name will be loaded in combooxes and when customer is chosen the customer info is shown. As it stands now loading all of the customers in the combox takes a long time (few loong seconds). The autocomplete feature is also very slow is there anyway I can do this that it doesn't take a long time as this deem the application not very ...Show All
SQL Server Thoughts on asynchronous Operations with SLQ Ce
I noticed that the current SLQCe driver does not offer support for the APM(Asynchronous Programming Model). Are there any plans to do this in the future In light of the lack of APM functionality doe anyone have any ideas or thoughts on how async operations could be done, or if they are even needed in the context of applications that use SQL Ce Any operation becomes asynchronous if you do it on the thread (code not verified): Thread worker = new Thread(new ThreadStart( WorkerProc)); worker.Start(); ... // Execution continues… void WorkerProc() { ... // Do whatever here and fire event as soon as you're done if needed. } Whatever it’s needed or not – it depends on your application. ...Show All
Visual Studio Tools for Office range into array? subscript out of range vba excel
I have the following code using this array works: myArr = Array("test", "3", "5") but when i try this: myArr = Range("a1:a3").Value it doesnt work. This code fails then and it says:subscript out of range: Set Rng = blad3.range("A:A").Find(What:=myArr(I), _ After:=range("A" & Rows.Count), _ LookIn:=xlFormulas, _ LookAt:=xlWhole, _   ...Show All
Visual Studio 2008 (Pre-release) Working with WCF Service
I am trying to use the Entity Framework with a WCF service. It is giving me the following exception: System.ArgumentException was unhandled by user code Message="The default entity container name 'eKnowledgeSpaceDBModel.eKnowledgeSpaceDB' is invalid. The required mapping and metadata information could not be found.\r\nParameter name: defaultContainerName" Source="System.Data.Entity" ParamName="defaultContainerName" StackTrace: at System.Data.Objects.ObjectContext.CreateMapConnection(String connectionString, String defaultContainerName) at System.Data.Objects.ObjectContext..ctor(String connectionString, String defaultContainerName) at eKnowledgeSpaceDBModel.eKnowledgeSpaceDB..ctor(String connect ...Show All
Visual Studio Express Editions Several simple questions from a beginner
hi there: I am a beginner in the visual c++ 2005 and in visual c++ 6.0, and i would like some help in the following questions: 1.- If in the express edition of visual c++ 2005 you don't have support for MFC,ATL. Then how do you work with databases . In the program you can connect to access and sql database. Then what about the other drivers like dBase,VisualFox,Text files etc. that in the ODBC Administrator of may machine I have . How can i use them 2.- I see that the Tool Box has the Masked Edit Control. Does anybody knows how to make this control behave like a calculator . What i mean is that in the calculator you click the numbers and display from rigth to left; until that point no problem, next in the calculator, you click th ...Show All
SQL Server Sql Server Mobile error 25123 - missing dll
Hi, in my app I connect to and read from a Sql Mobile database numerous times. Eventually and inconsistently my app will no longer be able to access the database and a SqlCeException is returned with native error 25123. This error translates to: "A SQL Mobile DLL could not be loaded. Reinstall SQL Mobile. [ DLL Name = sqlceqp30.dll ]". I've seen similar (and unsolved) problems involving RDA/replication, but I am not using any of that in my program. It simply connects to database, queries and retrieves data, then closes the connection. I am properly disposing of all SqlCE objects. I'm not sure what the error really means. Once the program gets this error it is never able to access the database again until the program is restarted ...Show All
Visual Studio Tools for Office Outlook Add-in Not Loaded :runtime error HELP HELP
Deall ALL, I installed the following in the client machine Office 2003 SP2 framework 2.0 office tools runtime MS PIA the Patch KB908002 lockbackRegKey.msi extensibilityMSM.msi office2003-kb907417sfxcab-ENU.exe all did all of the above and no luck to get my Outlook- add in working in the destination machine BUT IT WORKING PEFECTLY in my DEVELOPMENT MACHINE plzzzzzzzzzzz help HELP I did the CAS but still the same. THE Add-in works smooth in My development machine. I meant if i start Addin in outlook (development machine) it will start up normally!! Its more than a week for this small project plzzzz help ...Show All
Visual Studio Team System Strange Results From a Smoke Test
Hello Everyone, I have a little problem that is puzzling me, and I have turned to the superior minds here for help ! I have only just started working with VSTS and am setting up a load test for a website being created by my company. One of the first things I wanted to do was to smoke test VSTS with a very short "mock-up" test against a very small "mock-up site". In particular I was interested to find out how many users I could simulate on a single machine before I maxed out either the processor or memory. So........ I set up a load test starting at 10 users, and adding 10 users every 10 seconds all the way up to 2000 users. Thinking that a very long way before that point I would exceed the resources availabl ...Show All
Smart Device Development How to use SmsSetMessageNotification
Hello - Can any one help me how to use SmsSetMessageNotification for to invoke my application (or a dll) to process SMS message to see the content type (like simple text or binary). Thanks, Ramana This forum is primarily monitored by Visual Studio for devices group. Please check this link for more appropriate forum for this type of queries. http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=286724&SiteID=1 Thanks Srikanth Bogadapati: ...Show All
Game Technologies: DirectX, XNA, XACT, etc. VertexBuffers and IndexBuffers
Hi All! I am very new to the XNA framework, I have experience with DirectX and thought that XNA would be an easy challenge. I was wrong - I obviously lack something here. I have been able to create a VertexBuffer with several (repeated) vertices and put it on the screen. Although I have not yet been able to do perspective or lighting*, this is not my main concern. I wish to use an IndexBuffer object to store the list of vertices in the order that I want them rendered. I cannot figure out the method of doing this. I realise there are other ways of loading meshes, but this is the way I want to do it. I am reading a .off file (I don't want to convert it to a .x file -- I think there are tools out there, but no no no!!!), but currently I am j ...Show All
