Adnane Aqartit's Q&A profile
Windows Forms flickering problem in richtextbox..
I am displaying a formatted text in richtextbox control. I have methods that Add/Insert/Remove items to the richtextbox. I do this by putting my items in arraylist and then iterate over the list and add items to richtextbox using .selectedtext property. The problem is Add works fine. But when I try to remove an Item , since I am clearing and re-adding items to rtb, it flickers each time i remove items from list. Any suggestions on how to do this neatly Each item in the arraylist has specific formatting. So I am not sure if I can use a single string to assign to rtb. Hi, To effectively insert a text to RichTextbox wit ...Show All
Windows Forms Haw can i draw text with different size font.(DrawString)
I need to draw text(ex. textfile) on form. But i need to use different size of words. For example: "I like my dog Puffi" words "Puffi" and "like" i want to be 12 Arial... Help, please! You'll have to draw each region of differently sized text separately. If you want Puffie and like to be larger that means splitting the  ...Show All
Visual C# Getting data form MS Exchange with C#
I want to make an application that uses data from Microsoft Exchange. How can I create an connection between C# and my application. Are there some sites where I can find code that uses the same method. Roger, So, to clarify, you have a script somewhere on a web site that sends an email that is received by your exchange server User Fills out form on web page -> some script runs (ASP/PHP/CGI..whatever) that sends an SMTP message -> to your exchange server. Are all the emails sent to a common mailbox e.g. All messages from this form are addressed TO: sales@domain.com and FROM: theuser@ ...Show All
.NET Development Writing to file...
Is there a way to write an entire class object to file and then retreive it Thanks in advance, Devin Hi, Yes it can be done and its called Serialization. Take a look at the following link: http://www.c-sharpcorner.com/Language/serializingObjectsinCS.asp Regards, Vikram ...Show All
Windows Forms How do I stop the character from appearing in a Textbox
I'm writing an HTML Editor and I added a feature that adds a <br /> if shift + enter is pressed and a if shift + space is pressed. However the enter/space is still added to the text box. Any Ideas on how to stop the enter/space from apearing The trick here is to add code that says something like if(c.KeyChar == ' ' ) { int i = 0; ++i; } and set a breakpoint in the ++i line. ...Show All
Smart Device Development XML or AccessDB
Hi, I have a question. I must create an application in VS2005 for PocketPC2003 . In this app i must manage a db. In this db i have (two tables : first table is a peoples list(2000 record), second table is a city list( 40000 record)). In this apps I must find, order, insert , delete and update records. What do i use for this XML file or AccessDB Thanks Alessandro Graps Sure. You can either load XML into DataSet which works natively with SQL Mobile or you can parse XML manually with XmlTextReader and insert records using SqlCeResultSet. First one is easy (few lines of code), last one might be faster and definitely would use less memor ...Show All
Windows Forms custom label painting
hi to all, i am trying to paint custom chars to a label as images. however when i force a refresh on the label it is only painting the current coordinates of the image rather than keeping any previous images that were on the label. is there a way to overcome this without repainting every char that has already been painted on each refresh eventually&n ...Show All
Visual C# Question re top level types
Am new to C# and have a question. My understanding is that top-level types (not nested in another type) must be public or internal, and can't be private. Why is this What if you have, say, a helper class that will only be used by other classes in the same namespace Why wouldn't you want it to be private If you need such a helper class in the root of a namespace and next to other public or helper classes, simply set the access modifier of the class to internal. Why would this be a problem Going over some MSDN documentation a bit though, the definition of private as listed as “Access is limited t ...Show All
Visual Studio Team System TeamBuild error compiling websites (FILE)
I am gettinh this error when try to compile my website in TeamBuild ASPNETCOMPILER(0,0): error ASPCONFIG: The specified module could not be found. (Exception from HRESULT: 0x8007007E) Any suggestion The problem was solved installing the C# language tools in the build server. Initially, I just installed the SDK and the tester tools. Thank you BFC ...Show All
.NET Development deployment of vb.net app and access database problem
Hi I am working on a project using vs.net 2003 and access database. the problem is that I created a installer and try to install to other computers The installation is succeed on any computer, but when click on .exe file, some computers work fine, but some others just can not load data from access database only the form shows up without the data. Then I change the code a little bit. I use Application.ExcutablePath to location the database file when the program in the run time, the path given is right, but still the same problem, a form without data can anyone tell me the reason why it can find the db in some computer ...Show All
Windows Forms Tristate treeview how can I do it?
Hi I am trying to figure out how to make checkboxs in a treeview to be in 3 modes. Checked,unchecked and grayed out. Basically when a parent node is checked it will check all the children. IF one child is not checked then the parentnode will be checked by grayed out. Any suggestions or link thanks Check out this link: http://www.codeproject.com/cs/miscctrl/TriStateTreeViewSubmissio.asp ...Show All
Smart Device Development route and map comparisons
Hi I need your suggestions regarding my project "Intelligent route navigation system using gps". Basically its a pocket pc pda application . 1)When user enters a destination address ,the application should display a map with the current route the user is travelling ,estimated time and distance[from his current location] to reach his destination, turn by turn routes,points of interest and so on. 2) Also most importantly the application should guide and warn the user intelligently the route to take if the user is not travelling right directions to reach his destination . I am planning to develop this appl ...Show All
Visual Basic A VB Program -Confirm On exit
Hello! I am a beginner in VB, basically I am creating a notepad application as a part of my learning. Im doing it in VB.NET. I am having problem in writing code that I want, which will ask for a save before exit confirmation, wenever i click in red X button on right. I want also include a check, so that only wen there is some event changes in the richtextbox (that i have used as d writing area) the save on exit dialog will pop up saying - "Some changes detected! Save <Yes> <No> Cancel>" Pls help me with code!! Thanks in advance! darkfreedom If you handling the 'closing' event, the event args passed in include ...Show All
SQL Server Null key field in Oracle EBusiness Suite
I am trying to process a table that is part of Oracle eBusiness Suite using the Microsoft driver for Oracle. The table has four "key" fields (key fields do not strictly exist in eBusiness Suite, but when I add the Data Source tables, this particular table is interpreted as having four key fields. One of the key fields can have a null value. Whet I fill the table, only those rows where all of the key fields have values are read, i.e. the rows where one of the key fields is null are NOT brought into the table. There are no selection criteria, and the query simply reads: SELECT * FROM MTL_CROSS_REFERENCES The data is ...Show All
Visual Basic Problem populating table with a SQL Cursor from VB GUI
Hi all I have a store proc that that does various bits of data manipulation, but the last part I have used a cursor to update 2 fields in a table. This sp is called by a VB front end and then the contents of the table in question displayed in a Crystal Report. The problem is, if I run the sp directly (within VB's Server Explorer) these 2 fields are always fully populated. If however I call the sp from within code in a GUI, after each call (which should fully populate the table based on certain criteria) the 2 fields become less populated. What I mean by this is on the 1st call the 2 fields are 100% populated, with each su ...Show All
