dabd's Q&A profile
Visual Studio Express Editions Problems making a LabelArray
Hello all, I'm having trouble making a LabelArray in VB 2005 Express Edition. First of all, I can't find an Index property when I look at the label properties. Secondly I can't use the same name on different labels. It for use in a loop: For i As Long = 1 To 4 Label(i).Text = TextBox1.Text Next i or something like that. I need a LabelArray, but how to make it in VB 2005 Express Thanks so far. If I understand it correctly there are 2 ways to achieve this. Atm I like the second solution (with M.Controls) best, as I can use the VB enviroment to add the controls visually. I came across 1 other problem though. I also want to apply this for a series of ComboBoxes. They are all on 1 form and have all to be filled ...Show All
SQL Server Mirroring problem between pcs in different location (Witness Issue)
I am facing this problem here. Well , I did setup mirroring in LAN successfully (using certificates). Then I try to implement the same method for WAN. Here's the info : Principal : location A (111.222.333.444,1234:5022) Mirror : location B (444.555.666.777:5022) Witness : location A (111.222.333.444,5678:5022) For the mirror side, I didn't put any firewall settings at all; and both principal n witness , i did open the specific port for mirroring endpoint n sql. However, when I start mirroring , it shows 'The server network address "TCP://444.555.666:5022" can not be reached or does not exist. Check the network address name and that the ports for the local and remote endpoints are operational. (Microsoft SQL Se ...Show All
Visual Studio Express Editions i have a problem regarding database and textbox
i have a problem regarding database and textbox!!! the textbox should be bound to the database(like in tutorials) that we can see the items in the textbox and also to navigate in firstitem to lastitem.... in my code below only the 1st row is shown when i navigate using navigator... it's not working, but you can see the number of items here's my code.. Private Sub Form4_Load( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase .Load Dim asa As New OleDb.OleDbConnection( "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\Documents and Settings\Administrator\Desktop\testing.mdb;User Id=admin;Password=;" ) Dim asaness As New OleDb.OleDbCommand( "Select user from login ...Show All
Visual C# waveIn usage in .NET
I need to incorporate some recording functions, for example the ones that begin with "waveIn...", into a visual studio program written in C#, but adding "using System.Media" still does not allow them. I am talking about functions described in <ms-help://MS.VSCC.v80/MS.MSDN.v80/MS.WIN32COM.v10.en/multimed/htm/_win32_waveform_audio_reference.htm>. What do I need to do Those are Windows API functions, you'll need P/Invoke to call them. Visit www.pinvoke.com and see if you find the required declarations... ...Show All
Internet Explorer Development Customizing Toolbar in IE7
I am having a small problem. I have TWO search boxes on my browser.. One for Google toolbar, and the one that was originally there on IE7... I set my default to google. I cannot find how to get rid of the original search bar (to the right of the address bar) and just keep the google toolbar search box.. There is no option that I can find to just have the top row be an address bar..Any suggestions.. I cant even tell google toolbar to take away its search box, it is automatic.. It is ridiculous to have TWO search boxes on the toolbar.. Anyone know a way I've tried everything I know.. Thx JP If you ask me, you get less options with the new, and not being able to remove stupid features (search bar)  ...Show All
Visual Studio Team System Check Constraints ignored by the data generator
I am using VSDBPro to generate test data, my table has a check constraint defined in a column such as ( [Field1] = 'A' OR [Field1] = 'C' ), but it was ignored by the data generator and tried to populate some random values and terminated the entire process... Any workaround for that.... Henry, Thanks for the reply I couldn't see the regular expression in the generator properties for the char field. I have installed the trial version of Microsoft Visual Studio Team Edition for Database Professionals Version 2.0.50727.251. I imported the schema which has the check constraints on the column. But the data gererator ignored that... Is a the limitation of the trial version ... ...Show All
SQL Server Problems reading data from Adventureworks
hi there, I installed the Adventureworks sample database and can see it from the server managment studio express. I am doing now an tutorial from Microsoft to display the data in a grid view using Visual Web Developer 2005 Express. I am connecting to the DB with this connection string: "Data Source=STK-SASA-MX025\SQLEXPRESS;Initial Catalog=AdventureWorks;Integrated Security=True" and I can see all the tables of the database. When I try to select some fields from the database using the wizard, like: SELECT [Name] FROM [ProductCategory] I get the following error message: Invalid object name: ProductCategory, and to check the syntax and the types, but it seems to me quite standard SQL. Anybody could help me please ...Show All
Visual Basic Compression Issue - SharpZip - Please Help
Hello, I am using the SharpZipLib .dll (ICSharpCode.SharpZipLib.dll, version 0.81.0.1407) to create a compressed archive (password-protected) of 3 files. Zipping into the archive seems to work OK. The issue is when I decompress and extract the files out of the archive file. The first file in the archive decompresses and is extracted fine, but the other files are not being extracted. I captured an error that I am receiving - it is Err.Number = 5, Err.Description = "Wrong Local header signature: 0xB59E0488". I am guessing that something must be happening incorrectly during the compression of the files into the archive file, but I could be wrong. That is where I'm hoping someone can help. Here is the code that I am using to both zip ...Show All
Software Development for Windows Vista Args from WorkflowRuntime.CreateWorkflow
Where (in the workflow) can I reference the arguments passed in on the WorkflowRunTime.CreateWorkflow( Type, Dictionary<string,object>) ) Thanks, Clay Thanks Serge ! Geez, It's somewhat easier than I'd imagined. The runtime is reflectively setting the args into properties, eh I figured I'd have to get them and deal with them myself. I guess I was intent on a difficult solution ;-) Thanks again. Clay ...Show All
Visual Studio Express Editions Autocomplete Combobox
I'd like to mimic Access's autocomplete combobox with the NotInList event. User can start typing and if the text exists it will appear... if it does not and user hits enter, an error messagebox "does not exist" is shown. Please can someone help direct me to a solution in C# it shouldnt matter where you are binding it from, unbound or bound. Can you do one quick test and just do the same as above BUT dont bind the control instead, add your own custom entries (test, testy etc...) and see what happens remember there is an exclaimation mark just after the first opening bracket after "if" - it means "not" in case you didnt know ;-) if (!..........) { .. ...Show All
Windows Forms ClickOnce error
Installation on a client machine gives the error "The application is missing required files." The ClickOnce log is not where ClickOnce documentation says it is; indeed the log is nowhere to be found. How in blazes does one find out which files ClickOnce thinks are missing! ...Show All
Visual Studio 2008 (Pre-release) Loading data from the hard disk
Hello, I have got some questions about loading data from a hard disk: 1) How to load a text from a .txt file on the hard disk to the TextBlock control 2) How to load an image on the hard disk to the Image control Thanks in advance. 1. TextRange tr = new TextRange (rtb.Document.ContentStart, rtb.Document.ContentEnd); StreamReader sr = System.IO. File .OpenText( @"c:\dir.txt" ); tr.Text = sr.ReadToEnd(); sr.Close(); 2. ms-help://MS.MSSDK.1033/MS.NETFX30SDK.1033/cpref34/html/T_System_Windows_Media_Imaging_BitmapSource.htm ...Show All
.NET Development Reading a xml File from Intranet
Please help I am sure it is really simple! I am just learning C# and I am having the following problem: I am reading an xml file in my console application and the xml file name is a parameter. When I debug from Visual Studio it works fine. If I compile from the command line like: csc importFile csc i get a importFile.exe and it runs pretty well. The problem starts when I try to run the importFile.exe from the intranet. I mean copying the program to another computer and run it from my computer. I get a “System.Security.Oermision.FileIOPermision” Exception “The Zone of the assembly, Error ist: Intranet. How ever if I try to Compile from Visual Studio it generates a setup.exe and a importFile ...Show All
.NET Development Connection Pooling Issues
I've been getting an error that goes something like 'Cannot obtain a connection from the pool, maximum pool size has been reached' I had been using a max pool size of 300, and now i've increased to 10,000. Is this the right thing to do Is there a limit to the pool size that i can set So far i haven't had that error, but I would like to know if there is a better way to handle the issue Thanks Emeka Awagu Is your application explicitly closing the connection when it has finished using it What type of database are you working with ...Show All
Windows Forms Handle CRTL+A with a ListBox
I'd like to handle CTRL+A in my ListBox to select all the items. I check for Keys.A in the KeyDown event of the ListBox and then check if control was pressed. If so I select all the items in the list. This is working. However even though I'm setting e.Handled = true the key is bubbling up and then it selects the first item in my list that starts with the letter A thus unselecting everything else. private void lstImages_KeyDown(object sender, KeyEventArgs e) { switch (e.KeyCode) { ... other key checks removed ..... case Keys.A: if (e.Control) { SelectAll(); e.Handled = true; } break; } } Ok, got it. F ...Show All
