GvanderMerwe's Q&A profile
Visual C# Increasing an array dynamically
hey there, I want to declare a single dimentional array somewhere and then increase its size dynamically inside a foreach loop. e.g.: //declare array2 foreach int i in array1 { //increase size of array2 } About your question, here is a little example how to encrease the size of an array: Int32[] source = GetArraySource(); Int32[] dest = new Int32[]; foreach ( Int32 i in source ) { Int32[] temp = new Int32[ dest.Length + 1 ]; dest.CopyTo( temp, 0 ); temp[ temp.Length -1 ] = i; dest = temp; } ...Show All
SQL Server I want make table 4 like this one in SQL server 2005
I Have 3 table Like this: Table 1: Name = Tbl_Mian_code M_Code Master_Code Master_Name Main_Type Main_Gruop Main_Txt 1001 1001 Bank 01 01 1002 1002 Cash 01 02 1003 1003 Good's 02 01 Table 2: Name = Tbl_Mian_code Id_2 Main_Code Sub_Code Master_Code Master_Name Sub_Txt 1 1001 0001 1001 0001 Bank_Visa 4 1001 0002 1001 0002 Bank_234 5 1002 0001 1002 0001 Cash_1 6 1002 0002 1002 0002 Cash_2 7 1003 0001 1003 0001 Nokia 9 ...Show All
Visual C# Can I Mix languages in same project? C# and VB in Same project?
Ok, I have a C# project developed by a friend. I don't know much about C# and my friend does not know much about VB but I do. Now what we want to do is this. I have a VB blog application that we would like to add as a folder to his existing application. That is, all the codes and everything about the blog resides in a separate folder inside the C# application. Will this work Thanks Hi, You can manually delete it in the registry. Run "RegEdit" navigate to HKEY_CURRENT_USER->Software->Microsoft->VisualStudio->8.0->ProjectMRUList or FileMRUList listed there are the items displayed in the ...Show All
SQL Server Installing SQL Express 2005 - [Microsoft][SQL Native Client]Shared Memory Provider: No process is on the other end of the pi
Hi Everyone, I'm really in a desperate situation. I've tried installing Visual Web Developer including SQL Express 2005. I kept getting the error: [Microsoft][SQL Native Client]Shared Memory Provider: No process is on the other end of the pipe. I tried tinkering with the registry and that made things worse. I even re-installed Windows! I completely nuked my hard disk, formatting it totally. After re-installing Win XP Pro and the rest of my applications, I tried again. I got the SAME ERROR as before: [Microsoft][SQL Native Client]Shared Memory Provider: No process is on the other end of the pipe. Am I the only person who's getting this er ...Show All
Visual Studio Team System Compilation 1.1 and 2.0 framework compatible assemblies using MSBUILD
Hi All, I have large number of Solution and Project files developed in 2003. The project files use large common code base. I need to move to 2005 eventually, will there be any way to maintain the same code base ,solution files, project files which can be modified to build assemblies targettting .NET 1.1 and 2.0 framework. By using MSBUILD , Please let me know ow to manage solution and project files that need to work in both VS2003 and VS2005 . Is there a way of doing this using MSBUILD Thanks in Advance. V Hi Anutthara , Thanks for the information , I am looking into this . Adding one more link to this thr ...Show All
.NET Development A Question on GC
I have a MDI program in which user can open different document and edit it. After several user use it, they report that it becomes more and more slow. So I watch the memory usage of it carefully and found a problem : it seems the memory is never released after a document is closed. I watch the memory cost in Tesk Manager, and found that whenever a document is opened, the memory cost increases. However, after the document is closed, the memory cost does not drop. When another document is opened, it cost more memory. I later realize that since the document is opened for a while, the objects it allocated have been moved to Generation 2. So ...Show All
Visual Studio VsWebSite Documentation
Hi, You have introduced a new assembly VsWebSite.Interop.dll to support new website architecture in VS 2005. But it is not documented yet. So we have to imagine all the functionalities. You have launched the VS 2005 full release and I am using that. But still in the latest version of MSDN also it is not documented. So when I can expect the documentation of VsWebSite or it will not be published Please let me know your reply as soon as possible..... It is very urgent... Thanks! Rathish Finally Microsoft released the documentation of VsWebsite.dll http://msdn2.microsoft.com/en-us/library/vswebsite.aspx Thanks! Rathish P S. ...Show All
Windows Forms display checkbox in datagrid for database cols with Y/N values
Hi All, I am populating a datagrid from database. Some of the columns in table have Y/N values (varchar(1) ). Instead of displaying Y/N values in datagrid..I want to display checkboxes for these. I am using typed dataset to populate the datagrid. Any suggestions are welcomed. thx The DataGridView (new control in Visual Studio 2005) supports this, but the DataGrid doesn't have anything like this (you would have to create a custom column completly from scratch). For the DataGridView you can use a DataGridViewCheckBoxColumn and set the TrueValue and FalseValue to "Y" and "N". -mark DataGridView ...Show All
Visual Studio MSBuild Copy Task works intermittently
For some unknown reason, the Copy Task sometimes works, and sometimes doesn't. Does this happen to anyone else I'm running from the command prompt. Thanks for the tip, I'll keep it in mind for my test assemblies. For the recursive copy of my output, I'll stick with XCopy; Its simple and easily understood by others. ...Show All
Software Development for Windows Vista How can i get refference of Workflow Runtime in workflow
hi need a refference to a service for which in need the refference of the runtime. How can i get the reffernence to current runtime OR whats the equivalent code for WorkflowRuntime wr = WorkflowWebRequestContext.Current.WorkflowRuntime ......... in WF Also is there any way to set a state dynamically I tried SetState ss = new SetState("StateName") ss.TargetState = "ExistingStateName" but it doesnot work. do you mean how do you get a reference if it's not hosted in asp.net eg if it's hosted in a console app In that case, there won't be an extant runtime so you would do th ...Show All
Windows Forms displaying the content(files) of an existing directory with a button click vb.net2005
hi , i have a directory say "c:\root\sample" and i have some files inside this directory and i want to see the content of the directory with clicking a button in the program. how to do that many thanks if you dont mind, i would like to receive your messenger adress or e-mail so that we can talk about .Net anytime..i m just an undergraduate in comp. engineering...hope to finish school this month and will be a graduate next year :) greetings from Istanbul.. ...Show All
Windows Forms How to get the textbox of a combobox control?
I have a need to operate on the textbox of a combobox control. I looked thru MSDN doc but could not find a way. I wonder if it is totally possible... This is not possible. Contrary to popular belief (and common sense), the combo box does not contain a textbox control within it; the entire combobox is implemented by the operating system as a single control, not a combination of other controls. The only methods available to operating on the text portion of the control are what the combobox class provides. ...Show All
.NET Development Get connection string from app.config file
How do i read my connection string from app.config file I also know that connection string is saved in settings.settings, but i don't know how to get value from there either (I found info about this only for vb, not for c#) Here is the app.config file: < xml version="1.0" encoding="utf-8" > <configuration> <configSections> <sectionGroup name="userSettings" type="System.Configuration.UserSettingsGroup, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" > <section n ...Show All
.NET Development how to develop heavily access website?
Hello, I want to create website. This website will have heavily access and a huge number of transaction per day. I expect to have between 1500 to 2000 transaction per day. Can anyone help me in that Thanks Thanks a lot you for your help I found on msdn library a useful link i would like to share it with it also conation a book for performance issue this book is available for download. http://msdn.microsoft.com/library/default.asp url=/library/en-us/dnpag/html/scalenet.asp ...Show All
Visual Basic Status Strip Labels
Hi, If you have a Staus Strip with a couple of Status Labels defined within the Status Strip. Is there a way to evenly space them apart, or to space then to your liking Do you need to know the size of the form and then divide them equally using the width property or something like that. Thanks in Advance....Eric ...Show All
