Peter Feigl's Q&A profile
Windows Forms How do I set a ComboBox to ReadOnly?
Hi there, I am using a form for a Client Add/Amend/Enquiry, and require a ComboBox to set certain Client details. The available items for selection are defined at design time in the Items collection property. Add/Amend works just fine. When I use the Form for the Enquiry, I set the Text property of the ComboBox to the value retrieved from the database. I want to make the ComboBox ReadOnly, but no ReadOnly property is available for this control. Setting the Enabled property to false leaves it looking very dull grey and insonsistent with the rest of the Form. The only option I can think of is to replace the ComboBox control with a TextBox control for the enquiry, which isn't great. How else can I get around this Thanks, JackSt ...Show All
Game Technologies: DirectX, XNA, XACT, etc. ShadeMode?
Is there a meanning for setting the ShadeMode from inside a Shader .fx file The shading technique done in the vertex shader and pixel shader functions, so setting the shadmoe will not have any effect on the renedring result Thanks in advance. Then why does the FillMode have an effect on the rendering result If I set the FillMode to WireFrame, the rendering will be wireframe. ...Show All
Visual Basic Referencing a function in a different class.
I have a class, Class1, and a form, Form1. From Form1 I want to call a function, Func1, that resides in Class1. The function is a Public function as well as the class. I use the following to call the function, Call Class1.Func1. However, it gives the following error. "Reference to a non-shared member requires an object reference." I remember seeing this message before and somehow got around it. I am stumped as to what it means exactly. To me, it is worded strangely. If you are able to help then please do so. Thank you in advance. Troy L Best shown through an example. The two common scenarios that occur. I sounds as though you are trying to refer to a method in the class library without creating an object. If you wan ...Show All
Visual Studio Crystal Report help needed
I m using C# and Crystal report for some sort of reporting. I have visual studio .net installed. My application working fine in my PC and crystal report also working. But in another PC (where visual studio in not installed) I first install .net framework. Then I run my application, it works fine, but exception raised when I tried to view crystal report viewer. The exception is (I don't remember exactly) "Could not start CrystalDesigner. _________ .Engine" Hi, It sounds like you did not include the Crystal merge modules with your project. This is from the Crystal help file: In Crystal Reports 11, application deployment with Visual Studio .NET has been simplified to provide a single Crystal Reports m ...Show All
Visual C++ Wizard problem
I tried to use VC++ 2005 Express, and when trying to start a new Win32 console application a wizard appears, but it doesnt do anything. I modified the thing in line 441 to 445 in the sdk file, but nothing happens. Ill try to be more clear. At first, I didnt change anything to that file, so, no wizard should appear. Instead, a "weird" wizard appears: View Image The "Finish" and "cancel" buttons are disabled, the only choice is to close it wuth the "x". ...Show All
Visual Studio Express Editions candidate function(s) not accessible
one of my farvorite Error messages, the one kind that doesn't give a hint why!! I wrote a user control, add a public function to it. Now I put the user control on another Form in a other project, compiles fine and shows the conrtol when startet. If i try to access(add the code to access these) these self added public function of that control, it say that: candidate function(s) not accessible. when compiling. Why is that so And how can i fx that Thanks HI No, I didn't solve that problem.I don't wanna waste my time on that, so I just rewrote the usercontrol within a .h file, not as a DLL, which solves the problem in a way, cause within a .h, that kind of calls ...Show All
Visual Studio Express Editions BgWorker report Proress
Im trying to get my BgWorker to report his progress.. i do private void backgroundWorker1_ProgressChanged(object sender, ProgressChangedEventArgs e) { progressBar1.Value = e.ProgressPercentage; } and it dont work :s *Reportprogress support is Enabled = True ---- *My BgWorker downloads a file with WebClient since i've never worked with the backgroundworker, so bare with me, perhaps place it in the same place as you had the original code (setting the value property of the progressbar) Reading the tooltips, im not sure if this will work or not as the value property is being set to the current progress in the backgroundworker, as you are doing, but performstep seems to add 1 to the s ...Show All
SQL Server Copy Flat File between two server; Help me please.
Hello All, I want to copy flat file(.txt) from server to another server. server A(Source Folder) ====> server B(Achive Folder) Can I do it Please, help me. Thank you very much. Chonnathan Hi again, Now, I want to use SSIS to process data from text(banking transactions, credit card) in daily process. but source file was in another server. In this case how can i do to get source file to precess in ssis on other server. thank you very much. My english skill is not well, sorry. ...Show All
.NET Development OLE Object in Access
I have an access database customers with some fields [custID,phone,...details]. Details is a string usually biger than 255 bytes so i need to work with OLE object. Can you show me an example adding and getting a customer with OleDbCommand and OleDbConnection class ...Show All
.NET Development How to retreave Name of Element When reader returns a type of Text?
I am using XmlNodeReader to read from an Xml file, but every now and then it returns an node type of Text. The text contains the value so that is no problem but I need the name in order to know where to put the value. This is the reader code: You can remember name of the element when the reader passes it. If you have XML loaded to XmlDocument you don't need to restrict yourself with the XmlReader -- you can analyze XML directly in XmlDocument. In you sample I don't see ant text nodes so I puzzled why you troubled with them. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Small tank game in 3d?
Hi, i’m planning to develop a small tank game in 3d. First i have to discuss some problems. I want to use a map (world) which isn’t created by a highmap, because i want to use a world which i will design in 3d studio for example. is this possible, or what instruments would you use later i want to fill the world with trees and buildings. the tank is completly designed in 3d studio. my skills in C# (game develop) aren`t so good, but programming a small game like pong is no problem, so the next step will be a 3d game. any comments Thanks so far greetz mav Hi, what do you prefer map generated with a highmap or with 3d studio Which sulotion is better to handle, better to design greetz ...Show All
Visual Studio Express Editions Which is the right way in order to manage a dynamic “connection string”
Hello to all. I would ask you tricks regarding: Which is the right way in order to manage a dynamic “connection string” In particular, I would populate the Visual Studio interface environment to a data base (I’m using visual C# and an access db for my scope) using the data wizard because in my opinion it is helpful for that. It creates all interface objects (DataSet, UserTableAdapter, and so on) and relations like native db in quickly time and let me the possibility to manage front end as I want (maybe !!!). The problem is the connection string. The wizard execution ask me if I want save username and passwd and I chose NO (as advised) but after that, at the run form an exception raise because both those p ...Show All
Visual Studio 2008 (Pre-release) Please could you unseal EntitySet and EntityRef?
And make the properties and methods virtual of course. I've previously created a code-generation system that works in a remarkably similar way to the code-generation in Linq-to-Sql, a good example of convergent evolution. Much of it was written before the first Linq CTP was out, and it's been in commercial use for over a year now, very successfully. I've now left the company I wrote that for and I've set up on my own. I'm writing a new version of the system for my own company, and I'm basing it on Linq-to-Sql. Of course anyone can use Linq-to-Sql; my plan is to add a great deal of functionality that helps with writing apps. It's what I did with the previous system, and I now want to add even more. The previous system had its own equivalent ...Show All
SQL Server Questions on translation and naming attribute
Hello I have a few questions regarding the translations. 1. Is it possible to create this neat auto-generated date dimension in any other languages than english 2. When I use the Currency format string on my autogenerated measure groups they all turn out as $, but when I use it on a calculated member it chooses the correct currency. How can I change this for the auto generated measures 3. After creating the member, how do you define the deafult member show from the dimension. Say for example that I have DimEmpl(Code, Name). I would like the Name attribute to be the attribute showing by default. I know this is possible while creating the dimension, but what if I want to change it later Thanks // Richard ...Show All
Windows Forms How to open Windows Forms in the same window?
Hi all, i am using VS.NET2003 .NET framework 1.1 to new a window application. Isit possible to click the 'new' button that i have created on form1 and the form1 will change screen to form2 instead of poping up form2 Thanks Hi Mamta, thanks for quick reply. Your method did work. Mine is using VB. However, i did have a question. I notice that since you advise me to use Me.Hide() method, after 2nd form appear, and after i exit the 2nd form, the application will be still running, which means form1 will still be there, but it is just hidden away from the user. So is there any possible way instead of just hidding away the form1 Thanks ...Show All
