secovel's Q&A profile
Visual Basic Runtime controls (controling textbox)
Hi, I have a question about controling textboxes created runtime. Is there any way of accessing directly to particular textbox created runtime (ex. textbox3) now i'm going trough all controls on panel (textbox is on it) and searching for particular control name. That way i get contorl index. code i'm using for creating them: While items < i index = New TextBox With index .Name = "index" & (items + 1).ToString .Font = New System.Drawing.Font("Arial", 8.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(238, Byte)) .ReadOnly = False .Size = New ...Show All
.NET Development Data Encryption
Hello all; I want to encrypt a string for example a password and then save it into database(SQL Server). And also when I retrieve encrypted data from database, I should be able to decrypt it. Is there any way can I do that Simple code snippet would be truly appreciated. Thanks for your time spending. If you want encryption DO NOT use the above algorithm, example or not it is not encryption and will not protect the data. Don't ever create your own algorithm, they will never be as good as the ones that have already been developed. If you are using .NET 2.0, there is a ...Show All
SQL Server How to convert SDF to XML?
Hi All, Did anyone know or can tell me how I can convert SDF to XML and XML to SDF Is there are tools or any code for me can use My boss don't want to use Merge Replication/RDA to push data from PDA to PC because sometimes got error when he want to replicate data. There is no support today for working with XML in SQL Mobile, although this is a feature we are talking about adding to SQL Everhwere in the future. What you can do however, is use the XML support in the .NET Compact Framework to load your SQL Mobile database tables into a DataSet and then use the XmlTextWriter to serialize that DataSet into ...Show All
SQL Server DMX Tutorials for AdventureWorks
Can anybody help me find a comprehensive tutorial on DMX executed against the AdventureWorks database on Analysis Services on SQL Server 2005 We don't have a dedicated DMX tutorial available currently but the DMX reference in Books Online as well as the Tips & Tricks section at www.sqlserverdatamining.com would be good resources to start with. ...Show All
Windows Search Technologies Problems searching with German IMEs
I have found that when using a German language keyboard, I sometimes receive no search results for terms that yield several results if the keyboard language is U.S. English, or anything else for that matter. For example, a search for the term "ipass" yields 623 results on my machine with English as the keyboard, but 0 results when the keyboard is switched to German (Germany). A search for "ipas" returns the expected set of results. I have tried the latest version of WDS Enterprise, and also the current 2.6.5 beta. With the current release version, the term "telekonferenz" would return no results, but "te ...Show All
Software Development for Windows Vista How can an activity close itself?
This might be a little bit of a naive question. I want to have an activity terminate itself after some activity-determined event. As an example, I tried just using a timer (the real code will be looking for other events besides time). I created the following code (as part of an activity) and can’t figure out how to finish up in the MyTimer_Elapsed. I know my example is wrong and can’t work… the ActivityExecutionContext can’t be saved and used later, but I think using it incorrectly shows better what I’m trying to achieve. Timer MyTimer = null ; ActivityExecutionContext MyContext; protected override S ...Show All
Windows Forms textbox databinding problems
Hi @ all. Im trying to bind some textbox of my form with some records of a database through a textbox in a toolstripTextBox(txtFind) and a toolStripMenuItem(GoToItemMenu). textBox on form is called txtFinder. Here's the code: [code] private void GoToItemMenu(object sender, Eventargs e) { try { cn = new MySqlDataAdapter("Database = mydb;Data Source = localhost;User ID=myId;password=myPassword"); myAdapter = new MySqlDataAdapter("SELECT LastName FROM Customers WHERE LastName = ...Show All
Visual Basic Help: Convert HEX to Unsigned?
i have searched all over the help and tryed all the convert examples but they never convert hex values to the right number, it always leaves them as integer. this is what i want convert 9C to Unsigned -100 i tryed Convert.UInt16(9C) and it just says cannot convert and System.BitConverter if anyone knows a command to easily do this please tell ^_^ I don't know what version of VB you are running but in vs2005 this works: Dim b As Byte = &H9C Dim c As UShort = Convert.ToUInt16(b) There is no Convert.UInt16(b) ...Show All
SQL Server SSIS error message when trying to open MSDB in management studio
Hi all, I get this error when trying to open folder MSDB in management studio. I'm running Win 2003, SQL server 2005 64 bit on AMD with two instances of SQL. Any one that have a solution I havent found any thing that works. If I enable VIA in SQL Server I can't start SQL Service TITLE: Microsoft SQL Server Management Studio ------------------------------ Failed to retrieve data for this request. (Microsoft.SqlServer.SmoEnum) For help, click: http://go.microsoft.com/fwlink ProdName=Microsoft+SQL+Server&LinkId=20476 ------------------------------ ADDITIONAL INFORMATION: Login timeout expired An error has occurred while e ...Show All
Visual Basic list all User accounts
Does any one know how to return a list of all the users accounts. here is a link to a C# component wrapper for the windows DsObjectPicker there is a sample app written in VB that is using it. as configured in the app, it is set for picking computers. IMPORTANT!!! build the solution before you open the test form or it will error loading in the designer. if you forget and open the form before compiling, jiust close the form and build the solution then open again. set the filters to user (both downlevel and uplevel) and set the computer name to the computer you want to browse(or ...Show All
SQL Server Can Enterprise Evalution Edition be installed on Windows XP SP2 Home Edition now?
Thanks. I don't believe so, enterprise edition required advanced server. You can install developer edition which has the same functionality as enterprise edition. ...Show All
Visual Studio Visual Studio Debugger Crashes after Exception Thrown
While in debug mode in a particular ASP project, Visual Studio will hang after any exception is thrown. This happens if the error is handled or not handled. The above stated problem won’t occur on a new ASP project. The problem project has approx 40 aspx files. Business classes are maintained in a separate class project. To shut down VS I need to “End Process” from Task Manager. Note: VS is usually using 85%+ CPU at that point. The project will even hang when I throw an error. t hrow new Exception(“dang”); The Exception window pops up with the correct error but I can't close it ...Show All
Windows Forms Dynamic loading of UI controls
Are there any good articles out there on packaging up UI into control library and dynamically loading them into a main shell. With the main windows being a .NET executable and the UI library a dll. Thanks Pat JCasa - It will probably be more work to do the merging yourself - as I believe you'll have to add/remove items, but it hopef ...Show All
SQL Server Using Custom Classes
Hi ! Currently we have over 500 reports working with reportserver. We're planning to add on our report hyperlink to some pages of our web application. What i want is to have a classe with a function that will return a string for the action to do on the "Jump to URL" function. The reason why i need to use a classe is because if we change the name of a page we dont want to modify all the report one by one. Also we have some client that prefer to not have link in their report so i want to be able to disable this quickly. This function will allow me to do all that. So using Visual studio i've done a classe and i've put the .d ...Show All
Visual C# Is C# the best language to learn/know?
Hello, I am currently studying C#. I presumed that C# is much better than VB.NET and so started studying it. But it seems to me that most everyone related to microsoft is always pushing for VB.NET and not having much to say about C#, so what is going on Id Est; - I now regularly catch the Dot NET Rocks radio show, which seems to be based, or at least biased toward VB.NET. - I stumbled upon the VB.NET PDC05 disk online at http://msdn.microsoft.com/vbasic/pdc05/default.aspx which I was quite impressed with, so I thought I'd find the C# equivalent, to no avail. Please let me know if there is one availa ...Show All
