weaasd's Q&A profile
Visual Basic Formatting TextBox bound to a database column
I am facing two problems, pertaining to formatting the textboxes in my VB.NET project with SQL Server. First, I have a TextBox bound to 'Smallmoney' column, which displays the number upto 4 digits after decimal. I want to make it display just to 2 places after decimal. Second, another TextBox bound to 'Smalldatetime' column, does not let input date in "dd-mm-yy" format. I want to get it done programatically, without manual modifications in the "Regional Options". I think, the second problem can be solved using the Culture object, but I don't know how to do it. Is there anybody who can help a novice, please! One novice to another, do this. Choose the Design tab on th ...Show All
Architecture Typed Dataset or Custom Classes
Hey friends, I am a VB developer, soon I am going to start a new project. It will be a client application, I will use a SQL server database. I am used to use custom classes, I create my onw variables properties, events and methods. I am aware of the Typed Data Set and thinking about using it on my new project. The problem is that I have never used it, I do not know the minuses and plusses of the Typed dataset. Now, my boss and me on the desicion phase, we want to implement the most efficient and easy maintainable one. If you ask me , I'm quite happy with custom classes :)) My opinion is that the custom class is better for performance purposses, because I create properties and meth ...Show All
Visual Basic Advanced data bindings and DBNull
My project reads dates back from SQL Server and displayes then using a Details view. In some instances, two of the dates displayed are meaningless data, they only apply if another value is set. Under DataBindings - Advanced, I notice you can set a NullValue to display in the event of a DBNull being returned. Well, the fields are Null (at least according to the Show Data function in Database Explorer) but regardless of what I put in the box, today's date is always displayed when I run the application. Rich Didn't make myself too clear there, it is both a "calculated value" and also one which can be reset by the user. Anyway, I made the date/time picker invisible and dropped a form ...Show All
Smart Device Development How can display Transparent PNG on the device based on WinCE5.0 by eVC
Hi all: Now I need to load PNG resources, for PNG have two benefits than Bitmap:one is smaller, and the other is transparent. After a bit try, using IImage, IImagingFactory, and now I only can display PNG image without transparent. below is my code, I think the problem is CreateCompatibleBitmap, because this function create a bitmap without Alpha channel, but another unfortunately things is in our device sdk, cann't use AlphaBlend function. In Alex Feinman's blog, in OpenNETCF can realize transparent PNG, can reference in this links:http://blog.opennetcf.org/afeinman/PermaLink,guid,8fb585db-bd44-42fe-afa9-07b116c6d2ba.aspx HBITMAP CTigerPNGTestDlg::PNGToBMP(HDC hdc, LPCTSTR ResourceName) { HGLOBAL&n ...Show All
Visual Studio Code and Build metrics with MSBuild
Hi all, I am new to MSBuild and I am trying to gather various build metrics (such as number of errors/warnings, historical build success measures, etc.) . I also want to format the output from the logger (hopefully a pre-built one) in a structure which cuts out the redundant information but leaves the relevent information, perhaps in XML I also need various code metrics such as No. classes, lines, comments, % of comments, etc. I find MSBuild easy to use but if I could find a way to do all this it would be perfect! Is there anyone out there who knows how do do these things or knows which utilities are needed to do so Any help greatly appreciated! cheers! You can use Exec tasks to run your code coverage program of choice such as NC ...Show All
Visual Studio Express Editions Barcodes
Does anyone know of a good Barcode Form package for Visual Studio Express. I was thinking about adding in some barcode support but i can't find anything on the subject. If anyone knows anything about barcodes let me know. Thank s Hi Enlikil, Have a look at these: http://www.codeproject.com/csharp/upc_a_barcode.asp http://www.codeproject.com/cs/media/GenCode128.asp http://www.codeproject.com/cs/miscctrl/barcodectl.asp Hope these help you out Scott ...Show All
SQL Server 'A required privilege is not held by the client' when re-initalization
Hi all, the sys admin has changed the service a/c to another admin. id. But now, i can't start the replication jobs even re-created the publication and subscription with the new admin. id. Any advise Thanks in advance! 'Executed as user: test.com\admin. A required privilege is not held by the client. The step failed.' an issue i found was that sql server agent and ssis had been changed to not use the local system account. this caused me to continually get the dreaded --> "A required privilege is not held by the client" error. i fought with it all afternoon and eventually updated the services to use the local system account and it worked. perhaps this will save some other as much time as i wasted. ...Show All
Visual C# Calculate TextBox values
I have three textBox's txt1 txt2 txt3....I want to know how would i go about calculating the value i enter in these textbox controls say if i enter 1 in txt1 and 3 in txt2 and 5 in txt3....then my txt4 texbox would say 9 since i am adding the values i enter in the three text control....any help on doing this thanks! you call it from wherever you wish to call it. From a button click would be a good place as if you try to call it from a text change event, it wont work entirely as you still would have to fill out the other fields. It's best to do it on a button click when the user is ready to continue :-) ...Show All
Software Development for Windows Vista Using Windows SDK (With the Glass Effect)
I have Windows XP and I downloaded Windows SDK for developing apps that are compatible with Vista, is it possible to make an app on XP with the glass effect or do I have to use Vista to create an app with the glass effect Hi Sniper, The Aero glass effect is something that is unique to Windows Vista else we would have seen such apps on XP itself by now. However you can get a "little" close to that by using the Opacity property of Windows Forms and the effect can be seen on XP as well... even on Windows 2000 for that matter. A bit of smart and careful super-imposing and you should be able to get a little closer. Though you cant still compare that with the now famous Glass effect of Windows Vista. Regards, Amol. ...Show All
Visual Studio Express Editions Encrypt whole .exe
I made a program and it have few variables that are critical to be right so ppl wont try mess up my program...as we know strings are highly simple to be changed with hex..i tryed my self and its cristal clear to find 'em...but nvm that.. is there a way i can encrypt the whole .exe ..not like with the System.IO.file.Encrypt class.. thx ahead. There few programs that i saw with a hex editer that are encrypted totally... you cant find a single string or a word excpet the .exe info such as CopyRight Assembly version Version and that stuff...thats what i mean...i heard someting about the using System.Security; and that you can use some encryption ways such as MD5 or Xao or something like that [EDIT] This is bu ...Show All
Visual C# accessing information from a website using .net
Hi, i want to do an application that access some information from different websites and store it in a spreadsheet. usually these information is displayed on the corresponding websites in a table format. how can i do this using .net ( C# ) also, this application should be run automatically ie without any user trigger . it should run daily at some fixed time. i think i can implement this using .net windows service. but i donno how to. anyone pls help me.. thanks in advance Sajitha hi can you pls tell me how to parse the string variable "response" to get data. the string response contains the whole web page . but i want to get only a portion ( table with id = chartdatagrid1) of it : how can i parse ...Show All
Visual C# idle detection ...
I am developing an application with multiple forms and user controls embedded in panels. After an idle time interval – by that I mean an interval of time when the user does not interact with the application - I would like to launch a form. The stupid way of doing this would be to create a method to manually restart the timer time interval and then explicitly call that method from all “click-handlers” of all form components of all forms and user controls …. I don’t want to do it that way. What is the nice way of doing it, what message/event should I capture to restart the timer interval only from one place Thanks for your help, Dom. Check out Application.Idle , it raises "when the appl ...Show All
SharePoint Products and Technologies Import Spreadsheet error
I receive "an unexpected error" trying to import a spreadsheet to a custom list. I am using MOSS 2007 Enterprise on a Virtual Server with Windows 2003 Enterprise. Here are the steps that I perform: I click on "Site Actions" and select "Create" Under "Custom Lists", I select "Import Spreadsheet" I type the Name, Description and Select a MS Word 2003 spreadsheet. As soon as I click "Import", I receive an error: "An unexpected error has occurred. (-2147467259)" I have tried this with many files... all with the same results. It doesn't even make a round-trip to the server. I have tried to run a repair on the installation several times.... nothing... When I ...Show All
Commerce Server Discounts - Buy Product A get Product B for X% of the cost of Product A
Consider the following fictional scenario: An automotive manufacturer wishes to offer a GPS Navigation system for their entire fleet of vehicles as a “cross-sell” item. The cost of the GPS system is proportional to the cost of the vehicle. They have decided that the Nav System option is 5% of the total purchase price of the car. Some examples: A car that costs $35,000 can have the Nav System installed for $1750. (5% of $35,000) A car that costs $65,000 can have the Nav System installed for $3250. (5% of $65,000) Is it possible to configure such a scenario within Marketing Manager (Buy product A and get product B for X% of product A) If not, has anyone customized the marketing/discount ...Show All
SQL Server How to Setup JDBC for SQL2005 in Webshpere 6.0
Does anyone know the steps on how to get SQL2005 to talk to a Websphere application via the MS JDBC We are trying to setup the Niku Clarity system with a new SQL2005 Database. Thanks Thanks Maziz, Can you let me know the version of the driver where you are seeing this problem: DatabaseMetaData dd = connection.getMetaData(); System.out.println("Driver version is " + dd.getDriverVersion() ); Angel ...Show All
