Xp3ll3d's Q&A profile
Windows Forms Region for title bar button addition?
I have a form. I want to add a button to the left of the minimize button. Are regions the answer Can I have my exsisting form as one region without changing it's normal current appearance - I dont want to change the shape of the form, I just want to draw a button "ontop" of it that is still part of it and keep ...Show All
.NET Development reading arabic text from mysql
hi, i have some text in arabic stored in a mysql archive. i inserted them using phpmyadmin and are shown fine. i'm trying to read them using odcbconnection and odbc driver, but if i try to read it i receive a string full of ' '. i have to make some settings to the connection to be able to read arabic text no, i wrote the text in the database using phpmyadmin, a php program to handle mysql databases, and the wrote row in shown correctly inside phpmyadmin ...Show All
SQL Server SQL Server Data Archiving
I am wondering if there is a quick simple method of archiving partial data from a sql server db Is the easiest method via scripting or is there another more direct method Yes I am new to DBA methods. Any help greatly appreciated. Look at the DELETE statement in Books Online. For example, if you have a date column in the table you can do: delete tbl where datecol < '2005-09-07' Note that DELETE removes the data from the table/database so you cannot retrieve it back without having a backup of the database. The command-line options for BCP utility is also present in Books ...Show All
SQL Server Foreach File Enumerator -
I am trying to use the Foreach File Enumerator and map it to a user variable. I select a folder in the colletion. I use *.* for file name. I left the default value for retrive file name. I assigned it to my user variable ( data type string) I am get the following error "The element cannot be found in a collection" I am sure that I have at lest 10 file in the folder. Can anyone tell me why I get the error I found out what my problem was I had to assign a value to the variable. The Foreach File Enumerator did not set the value when i mapped it to the variable. I had t ...Show All
Windows Forms creating expressions dynamically?
Is there an equivalent function in VB to eval() in javascript I vaugley rememebr being able to use eval() to build expressions on the fly. example: for i = 0 to arSeg.length -1 for j = 1 to 4 if instr(arSeg(i),j)<>0 then result = eval(seg&j) ' result should be the value of variable ...Show All
Windows Forms dataGridView + mousewheels
It it possible to scroll the dataGridView control using mousewheels He must have gotten stumped. I'm trying to figure out why, without any code, some grids work with the mouse wheel and some don't. ...Show All
Visual Studio Reports shrinking after installing certain printers
We are using Crystal Reports for .NET in our web application. We use Crystal Reports for .NET to display the reports. Our application uses SATO printers to print some labels. After we install the SATO printer drivers, our crystal reports are showing less number of records per page and some other reports are shrinking horizontally. It looks like the reports are rendered to fit into the SATO printer (which is designed to print small labels). This is happening only in some computers. We have been looking for some solution for couple of weeks now. It seem to be working fine if we un install SATO pritners from the server. I am not sure why the ...Show All
SQL Server Server Status
This probably isn’t a T-SQL question but couldn’t find an appropriate place in the forum for it. I’m building a statistics page for our customers and i want to show how long the SQL server has been up since the last restart, I’ve got the windows uptime from elsewhere but wondering if there’s a way to get the SQL Server uptime. Thanks Chris Dwebs Ltd My fault should have said using sql 2005 Right fixed, all working, i used the code for grabbing windows uptime and altered it for mssql uptime, all works perfect, thanks for the orig T-SQL code on this one One more question, ive managed t ...Show All
Smart Device Development OnClosing / WM_CLOSE message when switching apps (why?)
I have an application that uses multiple forms for data entry. Each for is modeless and is shown via show/hide. All of these forms are stored in an array list until the user requests them and they are shown. When the user switches applications (ie: starts notepad) on the pocket pc, the window (which is visible), has the OnClosing event occur (which I assume is triggered by a WM_CLOSE message). Why is this happening I've dealt with this issue by overriding and cancelling the OnClose, however... It still begs the question... Why Thanks. here you go http://msdn.microsoft.com/library/default.asp url=/library/en-us/guide ...Show All
Windows Forms Docking Controls on Forms
I have a form on which I would like a Left docked OutlookBar and another dynamica control to fill the rest of the form area. I have used the DockStyle.Left for the OLB and DockStyle.Fill for the control, but the control paints itself "under" the OLB as soon as it is displayed. The dynamic controls are created and loaded using Ref ...Show All
Visual Studio Express Editions Visual C++ Express registration does not work.
I got the activation key. Tried to enter it several time. It's always rejected. I can't believe you can't get this right. I cut and pasted the "Access Code" from the web page. ie did this Step 1. Copy the 14-digit activation key from above. Step 2. From Visual C++ Express Edition, click on Help/Activate Product.... Step 3. Paste the activation key into the Product Activation Dialog and click the 'Activate Now' Then get dialog - Activation failed etc ..... Come on "Gives us a break". Windows is *** - you agree ...Show All
.NET Development DataSet Usage - Not saving to file
Ok, my knowledge of the DataSet object is elementary at best, but I'll try to make some sense. I've added a MS Access .mdb file to my VC# project using the New Data Source wizard. Incase it's pertinent, here's the connection string (sorta): Provider=Microsoft.Jet.OLEDB.4.0;Data Source=|DataDirectory|\db000.mdb;Persist Security Info=True;Jet OLEDB:Database Password=xxxxxxxxx Now, I want my program to count validate that there's at least one user account in the table 'Users' during startup. I'm checking this with [object].Users.Rows.Count , which works just fine. When the application inevidably discovers there's no accounts, I ...Show All
Windows Forms install: incorrect syntax near the keyword "ON"
Sounds like a registry problem. The message box posts this error two times in the box. It is at the very end of the install. I have winxpPro VS.Net release version .net framework 1.0 admin priveleges (member of Administrators) I have tried this as install for "just me" and "everyone" though I don't believe it is related to iis or sql server, they are ...Show All
Windows Forms Start default mailprogram with attachment
Hello, I would like to start the user's defaul mailprogram with an attachment. I have tried something like this: string toEmail = "test@test.com" ; string subject = "Testar" ; string body = "test" ; string message = string .Format( "mailto:{0} subject={1}&body={2}&attach={3}" , "" , subject, body, @"c:\test.txt" ); Process myProcess = new Process (); myProcess.StartInfo.FileName = message; myProcess.Start(); myProcess.Dispose(); Everythin looks fine but the attachment is not there... If it's not possible to have an attachemnt in this way. Can someone please give me an direction how to start the u ...Show All
Windows Forms Circuit design control/framework
Hi I'm looking for a control, framework, etc... to allow the user to create circuits graphically. And to be able to add new components to a toolbox at runtime. For example, electrical, lan cabling, telco cable network, ... Data to be store in sqlserver database. I think XD++ MFC Library from ucancode software is a good choice for you,UCanCode&n ...Show All
