Ezira's Q&A profile
Visual C# global 2-D array of strings
I need to store a 2-D string array for periodic use in my Windows Form app. I also need this array to be of variable size (length). Expanding on posts by Frank Boyne http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=631948&SiteID=1 and others I have designed this function which I included in the class Globals. private static string[,] ArrayOfData = new string[1, 2]; public static string[,] globArr2D { get { return ArrayOfData; } set { ArrayOfData = value; } } Then in the main form I build a local array symbAndNamesArr which is 2-dimensional and then I copy this array to my global array. I use ConstrainedCopy as well as CopyTo () methods. I get the same System.ArgumentException which seems to indicate tha ...Show All
Visual C# What should I do? ---help...
when I'm doing a MDI application, I have to catch the event : when the child window is closed by click the control box. that means I have to do something before dispose the child. as : mdiParent is form1, the child window is cld. should I add event process and How thank you!! Add a FormClosing event: this .FormClosing += new EventHandler(Form1_FormClosing); private void Form1_FormClosing( object sender, FormClosingEventArgs e) { e.Cancel = true ; } ...Show All
Smart Device Development How to put the application into the device?
Hi, newbie needs help ... I have developed a helloworld application written in C# and it runs well in the Windows Mobile 5.0 Pocket PC Emulator. If I want to put this application on my mobile, what will be my next step I have changed the Solution Configurations to "Release" and have found the "Hello.exe" & "Hello.pdb" in the "\bin\release\" folder. When I use the USB cable to put these files into the mobile (with activesync activated), they cannot be run. In fact, I just want to create an application which can be run under "Programs"... Do I need to create .cab file What steps should I do Pls help. Thanks. Hi, Make sure that the Co ...Show All
Visual Basic for loop to cycle trough objects ?
How can I automate this. I have 81 imageboxes and they are all enumerated like this. Pict1,Pict2 ,...,Pict81 Is there a way to do something like this for i=1 to 81 pict[ i ].creategraphics Next So that I can automate a lot instead of making over 3 times 81 lines of code for nothing Thanks in advance For ix As Integer = 1 to 81 Dim pic As PictureBox = Me.Controls("Pict" + CStr(ix)) If pic IsNot Nothing Then ... End If Next ...Show All
Smart Device Development sending message
hi, i want to create device application,that client(device) send a data(msg) to the server and invoke the webservice.The server get the data via clientwebservice.Any sample code related to this send me for me and the rest to understand, you wish to invoke a webservice method from client - is this correct If so, just add a web reference to the webservice in your project, then simply create an instance of it and invoke the methods you like, once invoked, the webservice will then take care of the processing for you, just as if you were writing and executing a normal C# class file. is this what you are after if not - can you explain a bit more in depth ...Show All
Visual C++ CreateDispatch and Class ID
Hi.. my problem is very simple: I have used this before _Application app; // app is the Excel _Application object app.CreateDispatch("Excel.Application") without any problems... But now I am using the type library of a program called nxview And I REALLY don't know what to put in CreateDispatch, because I don't know the class ID... the truth is that I don't know well how to use CreateDispatch, and I only did it with excel because there is a million of examples on the web, but with nxview there is none... Somebody know how to do this It won't be used in a webpage... Ok, I have two libraries nxviewruntime and nxviewplayer on the first, y looked for the clsid on regedit like w ...Show All
Visual C# SELECT-INTO query problem
Hi I have a SELECT-INTO query which I wish to add some additional columns to the destination table. I can create the table and add the columns after it, but I wonder how is it possible to add that columns directly with the SELECT query. Thanks in advance, farshad Isn't this more a question for the SQL Server T-SQL forum http://forums.microsoft.com/MSDN/ShowForum.aspx ForumID=85&SiteID=1 ...Show All
SQL Server Java App Connecting to SQL Server 2005 Express Database
Hey All, I am having a problem connecting to a database I have with a java app I am creating for my senior project. I am using the latest MS JDBC for connecting to the SQL Server. Below is the code I am trying to run: try { ds.setIntegratedSecurity(true); ds.setServerName("localhost\\SQLEXPRESS"); ds.setDatabaseName("*databasename*"); con =ds.getConnection(); } catch (Exception ex) { ex.printStackTrace(); } The ds and con variables are declared and initialized correctly. The error I am getting now is this: com.microsoft.sqlserver.jdbc.SQLServerException: Cannot open database "*databasename*" requested by the login. The login failed. Any suggestions on what I could be doing wrong ...Show All
SQL Server Design/load question
Hi. I am redesigning a database to be more normalized. There are 4 columns that appear in many of the tables that I plan to add to a new table. Here is what the database looks like now: table1 uniquecolumn1 uniquecolumn2 uniquecolumn3 samecolumn1 samecolumn2 samecolumn3 samecolumn4 uniquecolumn4 etc. table2 uniquecolumn1 uniquecolumn2 uniquecolumn3 samecolumn1 samecolumn2 samecolumn3 samecolumn4 uniquecolumn4 etc. table3 uniquecolumn1 uniquecolumn2 uniquecolumn3 samecolumn1 samecolumn2 samecolumn3 samecolumn4 uniquecolumn4 etc. If I add a 4th table with the columns that are the same in each of the tables, I'd have this: table1 uniquecolumn1 uniquecolumn2 uniquecolumn3 uniq ...Show All
.NET Development Remoting/Pipes/Events: Chicken and Egg
Hi Everyone, Visual Studio 2005; SQL Server Express 2005; Enterprise Data Access Application Block; Single computer hosts all elements and applications. GOAL: To have one application nudge another one on the same computer so it will update its view of data in a shared database. I have a GUI application in a namespace called "guispace". This namespace also contains a class hierarchy for doing all data access operations (my Data Access Layer (DAL) for this application). There is also a non-GUI application that runs in the Scheduler and exists in its own namespace, "noguispace". These two applications share a SQL Express 2005 database file, which is using DAAB. The nonGUI application ...Show All
Visual Studio Team System Refactoring Commands Unavailable?
I upgraded by VS.Net 2005 Pro to Team Edition for Developers when I came aboard a new project at my company, only to find that Team Explorer was not available on the install disc. Great disappoint! We were able to track down a copy of Team Explorer on the Premier Partner Edition disc, which after install has apparently eaten my refactoring tools. When I hit CTRL+R CTRL+R to rename I get a message down in the status bar that '&Rename is currently unavailable'. What's up with that If I manually rename the field I still get the prompt to rename all instances, which is fine, but why are the refactoring commands unavailable Is this a known bug and is there a fix Thanks in advance! Maurice If I ...Show All
Visual Studio 2008 (Pre-release) An error occurred when verifying security for the message
How can a .Net program access a WCF Service Can someone provide with with an example please check this SDK sample http://windowssdk.msdn.microsoft.com/en-us/library/ms751433.aspx ...Show All
Visual Studio Express Editions Im a noob !HELP! plz
So anyway it has been a while since i have fooled around with VB. Just wondering if anyone would be willing to help me a little. So my idea is basic im sure. I want to make a simple program that has two buttons, two text boxes, a calander, and a print button. It will keep track of the time i work. a clock in and out button and two textboxes for them. heres the problem i dont know how to save the date and the time in the txtboxes to notepad or how to print that document. I also thought maybe i could eliminate the text boxes and just when i press clock in save the date and time to notpad. Any suggestions. Any help please. Thanks. Files are saved in the MyDocuments folder, named like so: In_10-20-2006 ...Show All
Smart Device Development I want to have a button navigating to My Documents
I want to have Buttons in a VB Form navigating to places like,My Documents, Network Places, My Pictures etc. Does anone know code for me to be able to do this... Thanks And it promised to " take you to the folder " Could you please post help URL ...Show All
SQL Server Error in Transacitonal Replication - SQL Server 2005
Hi, I'm deploying tran repln between 2 SQL Server 2005 databases and when viewing the 'Distributor to Subscription History' see a error message: Incorrect syntax near the keyword 'where'. (Source: MSSQLServer, Error number: 156) On the subscriber, I don't see the snapshot being generated....Please advice. There are a couple of known issues related to the generation of reconciliation procedures for concurrent snapshot that will lead to the kind of error that you are seeing. These issues can be classified by the following scenarios: 1) You are publishing a table with only timestamp as the primary key column, and the article is configured to replicate timestamp as timestamp on the subscriber (def ...Show All
