jalekz's Q&A profile
Visual C# convert from decimal(base-10) to alphanumeric(base-36)
dear All, I am creating a program that generate id for any incoming material lot using hexadecimal ID, Since the number of incoming material lot increasing rapidly, we plan to move to a new ID number with alphanumeric(0-9,A-Z). The convert class doesn't support the base 36 type. Does anyone have any idea for my problem Any help is very appreciated. Thank you regards Freddy Halim Hi, check if works for you: public String ConvertToBase(int num, int nbase) { String chars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"; // check if we can convert to another base if(nbase < 2 || nb ...Show All
Architecture Doing what Microsoft does, not what they say to do… DNA, SOA, Software Architecture, VB.NET, CMMI, Agile Development
Trying to weed through all the marketing driven releases from MS is not an easy task, but in the end it is something that always needs to be done. In this blog I discuss DNA, SOA, Software Architecture, VB.NET, CMMI, Agile Development - Doing what Microsoft does, not what they say to do… I would like to know if you are going through the same problems I gave up trying to weed through Microsoft's patterns and tools a long time ago. Bear in mind that MS is extremely popular in the novice and unproffessional developer community and this reflects on the patterns they provide. As for 'Doing what Microso ...Show All
Visual Studio Team System How to constract target string for scope="parameter"?
Hi I need to suppress a message for the method parameter. I use attribute SupperssMessage for hole assembly. [assembly: SuppressMessage("Microsoft.Design", "CA1021:AvoidOutParameters", Scope = "parameter", Target = "")] But I don't know how to constract string for the Target. Parameter violations aren't scoped. They are handled via a message id syntax, where the (zero-based) index of the parameter is specified, followed by an octothorpe ('#'). So: [SuppressMessage("Microsoft.Design", "CA1021:AvoidOutParameters", MessageId="0#")] Note that you can also apply the SuppressMessage directly to ...Show All
Visual C# Designer doesn't like Array InitializeComponent code
Hey, Sorry for a possible dumb post, I dont post at all usually! I haven't coded for that long in c# so as i said this may be dumb quest. I get the feeling that the designer does not like arrayed components as i have done: Ctrl = new System.Windows.Forms. CheckBox [4]; for ( int i = 0; i < 4; i++) { this .Ctrl = new System.Windows.Forms. CheckBox (); } for ( int i = 0; i < 4; i++) { this .Ctrl .Location = new System.Drawing. Point (16, 24 + (i * 32)); this .Ctrl .Name = "Ctrl" + Convert .ToString(i); this .Ctrl .Size = new System.Drawing. Size (40, 16); this .Ctrl .TabIndex = i + 1; this .Ctrl .Text = Convert .ToString(i + ...Show All
Visual Studio Copy build files
Hi, I need copy all my build files in a result folder. I use this task but don't work... Can you help me Thanks <Target Name="AfterBuild"> <Copy SourceFiles="@(TargetDir)" DestinationFolder="c:\foocopy" /> </Target> Not sure if you've redefined TargetDir, but looks to me like it would resolve to a path, where what you want is a list of files...since you can't use wildcards in the SourceFiles parameter (you don't get an error but it doesn't work) you need to create an item group <CreateItem Include="$(TargetDir)**\*.*"> <Output Task ...Show All
Visual Studio How to load image dynamically
HI all, I am using ASP.net with c# to load crystal report. I would like to know how i can load an image in the Report Header section of the report dynamically from aspx page. thanks pradeep_TP Hello All, I am having the same sort of problems while displaying image using CR.NET and VS.NET 2003. Let me epxlain what I want to do. I have designed reports using CR.NET that I intend to sell to various clients. I want to display client logos on the reports. I don't want to design a separate report for each client. I want to change the logo of my reports dynamically at runtime. I have tried inerting OLE obj ...Show All
Visual Studio Team System Reading Content of VSTF File without downloading to local machine
I am using follwoing code to get iems from VSTF. ItemSet objSet = m_vss.GetItems(path, RecursionType .OneLevel); foreach ( Item objChilds in objSet.Items) { if (objChilds.ItemType == ItemType .File) { //From Item, I can find out the contentlength , i can download the file local machine and read content of the file. //Is There any way I can read content, without doing IO to local folder } } Is There any way I can read content, without doing IO to local folder Thanks Rajesh, Item.DownloadFile() is the only way to download the file contents. The call does requ ...Show All
Visual C++ How to decide the errors
hoh to decide the error C2039 What sort of problem Try this: Number1 = Double::Parse(txt1->Text); Number2 = Double::Parse(txt2->Text); ...Show All
Windows Forms Issues with the deployment Manifest
Our application is built with VS2005 Beta 2. We uses ClickOnce to deploy the application. Here is the issues we have experienced on some client machine. When we click the install button from the publish page, the deployement manifest is open in the browser instead of lauching the application manifest On other machine, every is fine, the install button lauch the installation sequence on the client. Any idea what could the problem. Regards, Dany, Thanks, there is some good info on this page. It does have an answer to IE showing xml but it is kind of an all or none answer. It's really wierd that it wo ...Show All
.NET Development Xml Data (image) into a Crystal Report 9
I'm trying to view an image(binary data) into Report Viewer. Is it possible It wont load. I've tried readxml to a dataset and pass it on into CR. I can view all data except the images eventhough its already a blob field. Please help. I was only able to load this xml image into a picture box for a win app. But how about loading it on the reports This would be a good question for the following forum: Crystal Reports for Visual Studio ...Show All
Visual Studio Team System Accessing TFS without Windows Integrated Security? (Internet Access)
From what I see after an installation of Beta 3 is this Web Site on Port 8080 with integrated authorization. I am thinking of changing this to basic authorization and after that publishing the site over SSL with an ISA server. So that it looks like that: Client - SSL (Port443) -> ISA - HTTP (Port 8080) -> TFS Is it really that easy or what is the recommended way of achieving this Does the Client in VS2005 offer a way to enter creditentials As Bruce said, not all issues are worked out. However, you should be able to access the server via SSL and basic auth. VS will prompt for credentia ...Show All
Visual C# bubble sort
I am kinda new to programming and need some help in completing an excercise I'm on. I have two bubble sorts to sort an array of structs into ascending or descending order on the users prompt. ie. the users types "A" for ascendng and "D" for descending then the data is displayed. Once this data is on the screen is there a way I could then toggle between the two (A & D) This is all being done in a Console App by the way. Thanks Thanks Paul, I think this will help alot. Cheers for the advice ...Show All
Windows Forms How to generate <Form>.Designer.cs files for old projects?
We converted our solution from Visual Studio 2003 to Visual Studio 2005. Soon we noticed that our forms do not have 2 depended files <Form>.Designer.cs and <Form>.resx. I really want to generate the <Form>.Designer.cs files for all my projects. Do you know how I can do that At least is there a way to do it manually Thank you for you help. Suiram One of the ways is to manually shift the Windows Forms Generated Code region to Form.Designer.cs file. Once that is done, you need to open the project file in XML Editor and then manually add the dependancy using <DependentUpon> tag. E.g. <Compile I ...Show All
Windows Forms Changing Parent Items From Child
How can I change parent items such as menu items from a child First of all, the menu items aren't going to be hidden, right They're disabled. And, they will be disabled if there aren't any children. That's the point. You update the availability of the menu items each time you pull down the menu, so that if there aren't any&nbs ...Show All
SQL Server Preview a Report in Design Mode (VS 2005)
I am working with SQL Server Reporting Services and Visual Studio .Net 2005 Beta 2. In VS 2003 you could preview a report in design mode by clicking on the preview tab. There is no such tab in 2005 Beta 2. Does anyone know how to preview a report in design mode Thanks. When you are using the Report Controls in local mode (embedded), there is no preview since your application is responsible for creating the data set to bind into the control. You will need to execute your application to preview. Designer preview is only present in report server mode. ...Show All
