leclerc9's Q&A profile
Windows Forms Run form over network
After building the windows form I put the .exe file on the server and want users that have access to the server through My Network to be able to run the file and use the windows form. But when I try to run an the application it gives me an error. It works fine when it is on the local computer been does not work when you try to access it over the network. I am guessing that it is because of some security issues but I don't know how to resolve this issue.The error is:test.exe has encountered a problem and needs to close. We are sorry for the inconvenience.and then it has the "tell Microsoft" text and buttons.TIA Check this blog post , it describes what most likely is the issue you are dealing with ...Show All
SQL Server Access DB2 on AS/400 using IBM OLE DB Provider
Hi, I am using the IBM OLE DB Provider (IBMDASQL) provided with Client Access (IBM) to access a DB2 database on an AS/400 (iSeries). Using an OLE DB Source in the data flow and Access Mode set to "OpenRowset" this works fine (even though I think it is quite slow). However, when I change the Access Mode to "SQL Command" my data flow fails at the OLE DB Source component - not giving me any meaningful error description (only the mysterious "... the error is specific to the component..."). Using and SQL Command to access the data is important to me, since I need to put a WHERE-statement on the rows returned from the source. /Michael PS: I am not able to use the MS OLE DB Provider for DB2 (as far as I know it is only shipped with HIS ). ...Show All
Visual C++ Can Anybody Help In VC++
Hi Friends, I like to do a project in VC++ on Analytic Heirarchy Process(AHP) for the Teachers Feedback for our college..... I have all the concept to be implemented in the project.... But still i need a person to assist me and help me in the Programming side.... Can anybody be a friend to me and assist me..... Waiting For the Replies of the Friends.... Allaudeen wrote: Hi Friends, I like to do a project in VC++ on Analytic Heirarchy Process(AHP) for the Teachers Feedback for our college..... I have all the concept to be implemented in the project.... But still i need a person to assist me and help me in the Programming side.... Can anybody be a friend to me and assist me..... Waiting ...Show All
Visual Basic Limits on Memory Use?
Hi all, I was testing the VB2005 Express and decided to create a large array in the IDE. My 32bit XP Pro machine has 3.5GB available and I thought I'd check to see how much I could use with VB. I understand that there is a 2GB process limit, but I thought I just check that out. My code: Class Form1 Private Sub CreateArrayToolStripMenuItem_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CreateDataTableToolStripMenuItem.Click Dim bigarray(1000000, 250) As Single End Sub Private Sub ExitToolStripMenuItem_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ExitToolStripMenuItem.Click End End Sub Private Sub Form1_L ...Show All
Windows Live Developer Forums Messenger problem
I recently installed the new version of Live Messenger. However I have been having problems since I got it. The messenger will not allow me to sign in and keeps saying there is a problem. I am not sure wat to do. I though that my firewall might be blocking it. I have Norton Virus and Spy ware installed. Would that be blocking it I cant figure out wats wrong if someone could please help me out and just tell me what to do. Someone please help me with my problem. im afraid these forums are the incorrect forums for your problem. These forums are for software development on Live Messenger, not technical support queries. I'm afraid I have to ask you to ask the tech support guys over at: http://support.liv ...Show All
SQL Server why not showing nulls?
Hi, I have two tbls joined via a varchar field.. which in tbl I have to use a CASE statement to format it correctly for the JOIN.. All works well.. however, if I add a WHERE clause to the statement, with the WHERE clause affecting only one of the JOINED tbls.. All the NULLS are not shown. I should get results like: Postcode Count tf4 0 tf5 23 tf6 15 tf7 0 etc Whereas, when I add the where clause, none of the "zeros" are shown, so I get: tf5 23 tf6 15 Why is this Here's the SQL: SELECT ISNULL(COUNT(CASE LEN(REPLACE(dbo.Customers_Trade.PostCode, ' ', '')) WHEN 5 THEN LEFT(REPLACE(dbo.Customers_Trade.PostCode, ' ', ''), 2) WHEN 6 THEN LEFT(REPLACE(dbo.Customers_Trade.PostCode, ' ', ''), 3) ELSE LEFT(REPLACE(dbo.Customers_Trade.Po ...Show All
Smart Device Development using my .h files in C# project
I would like to give a C# application access to constants/Structures and interfaces defined in C/C++ header files . They are use d by many other applications, and I do not want to redefine them in my C# code. How can i use my existing .h files in C# project.. I'm afraid that you will have to re-declare the types in C#... C++ and C# can be so different, that it's impossible to use C++ declarations directly in C#. You should look for P/Invoke tutorials to see, how data structures can be translated from C++ types to C# types. Here's couple: Here's introduction to Compact Framework P/Invoke, and some examples what C++ types maps directly to C# types (blittable types) http://msdn.microsoft.com/library/default.asp url=/library/en-us/dnne ...Show All
Visual Studio Express Editions Change properties from other forms
Topic says it all ... lets say i got x2 form ..and in form1 i got ritchtextbox how i change its txt or any other properties from from2 or other forms ... e.x in vb i used to do Form1.TextBox.text = ("w/e you want") Im protty much new in C# so i dont really understood it.. where does this code goes ..i putted it in forum2 and i want it to display the some value in the form1 richtextbox using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; using System.IO; using System.Net; namespace WindowsApplication1 { ...Show All
Windows Forms Changing the HEIGHT of a DateTimePicker
hey everyone How do I change the height of a DateTimePicker control. It seems to be locked onto 20. Perhaps I can overide something If so, what thanks Like the ComboBox, you can change the Font size to change the height of teh DateTimePicker control. Or you OwnerDraw the DateTimePicker to have full control over it's sizing and drawing. Regards, -chris ...Show All
Visual C++ Combo Box Question
hi I'm making my first 'simple' application to get me started. its the basic windows Form with just a combo box containg just 3 options ' a or b or c ' ok it works fine but how can i make it remember my last selection i mean when i run the application again it shows nothing and you have to select the option all over again. I haven't got a clue what might be wrong, please email me your project. Monkeytail = @. ...Show All
.NET Development membership provider: Cannot create user unless already logged in
I have an application where no buttons (or associated events) are firing unless I’m logged in. When I say not firing, I mean nothing happens, I hit “Next” on the createUserWizard NOTHING happens, no error, no events fire (CreatingUser, CreatedUser, NextButtonClick = nada). Again, PasswordRecovery control, write an event for submitButtonClick...nothing. However, as soon as I log in, everything works – just don’t ask me how I created the first login J … It must have stopped working at some point for some reason, although I have no clue why or what I did. To recap, the CreatUserWizard, PasswordRecovery and ChangePassword dialogues do not work unless I’m already logged in. (This is to be expected with the ChangePassword control, but it ...Show All
Software Development for Windows Vista Workflow aborted with SqlWorkflowPersistenceService
Hi, i'm testing workflow hosting and when I created a simple workflow (1 code activity that do nothing) and start, will completed with sucess. But when I addservice SqlWorkflowPersistenceService after start my workflow it was aborted. Why The problem is: System.Workflow.Runtime.Hosting.PersistenceException: MSDTC on server 'machine' 'is unavailable. ---> System.Data.SqlClient.SqlException: MSDTC on server 'machine' is unavailable. I'm using SQLServer 2000 on localhost. I solver stating "Distribuited Transaction Coordinador" on Enterprise Manager [ Console Root / Microsoft Sql Servers / (local) / Support Services ] ...Show All
Visual Studio 2008 (Pre-release) Accessing events of items rendered by HierarchicalDataTemplate?
I'm using HierarchicalDataTemplates to render a data structure into a TreeView: <HierarchicalDataTemplate DataType="{x:Type CS:ShaimContactGroup}" ItemsSource="{Binding Path=Contacts, Converter={StaticResource OfflineItems}}"> <TextBlock Style="{DynamicResource ContactListGroupName}" Text="{Binding Converter={StaticResource GroupNamer}}" /> </HierarchicalDataTemplate> I know that the rendered items will be TreeViewItems since the objects are always being inserted into a TreeView object. My question: I want to capture TreeViewItem events like Collapsed and Expanded. How can I accomplish this In your handler for the Expanded/ ...Show All
Windows Forms Heavy operation and Windows.Forms.Timer
Hello. I have a form that display time in seconds resolution in the status bar. The time is used for some calculations during GUI operations. I have "Load Run Data" action which does several communications and then setup and load received XMLs into DataSet object. I do it in the UI thread in order to block menu and mouse input. Sometimes the loading operation takes more than 1 second so the displayed time becomes invalid. I need to find a valid solution to do the loading without hurting timer. I tried to use Threading.Timer without effect. It continues working but hurted by the higher priority thread (UI thread), so the time is still incorrect. Any suggestions. I am interested to know what Microsoft's default approach for this ki ...Show All
SQL Server Sharing remotely
Can you use SQL Express remotely instead of locally. I have been told that I might be able to use SQL Express as my network server for sharing files. Is this possible, or do I need a different version of SQL to do this I have been reading the VBE forums and from what I gathered was that SQL Express is only for a local table only, is this true If not, what is the work around, and how do I go to another pc to find out if it is sharable I would hate to get several months in my app design and learn that I was headed in the wrong direction. Thanks David Mike, Is it possible to run a T-SQL script during deployment to enable the remote connection functionality I read the link and it mention ...Show All
