13,936 Topics
![]() | |
I want to assign a color to my excel column [CODE] currentRow.Interior.ColorIndex = 17; [/CODE] But I don't want to use one of the colors in the excel palette I do I add my own color. for instances: [CODE] currentRow.Interior.Color = Color.LightBlue; [/CODE] Thanks for the help | |
Hi, I have an Ellipse on a Canvas and I'm doing a Hit Testing on it. Every time I click the stroke of the Ellipse, the test pass. If I click in the middle of the Ellipse, the test fails. This is good ! After I fill the ellipse like … | |
Hi, Consider this code: [CODE]Ellipse myCircle = new Ellipse(); myCircle.Width = 400; myCircle.Height = 400; myCircle.Stroke = Brushes.PeachPuff; myCircle.StrokeThickness = 25; myCircle.ToolTip = "Bold Circle"; Canvas.SetTop(myCircle, 0); Canvas.SetLeft(myCircle, 0); canvas.Children.Add(myCircle); Ellipse myCircle2 = new Ellipse(); myCircle2.Width = 400; myCircle2.Height = 400; myCircle2.Stroke = Brushes.Black; myCircle2.StrokeThickness = 1; Canvas.SetTop(myCircle2, 0); Canvas.SetLeft(myCircle2, … | |
Hi, I added a Rectangle to a Canvas like this: [CODE]Canvas.SetTop(myRectangle, 150); Canvas.SetLeft(myRectangle, 80); canvas.Children.Add(myRectangle);[/CODE] Now I want to move the rectangle to other place, say (100, 100). What is the best way to do this ? Thanks ! | |
Like in asp.net you save items in viewState, is there similar function with windows form? | |
Hi, I put several shapes (like Ellipse and Rectangle) on a Canvas. Now, I want user to be able to drag & drop these shapes. Is there some predefined functionality that I can use, or I should implement the drag & drop myself using the mouse events ? Thanks ! | |
Hi, I've been googling about a simple source code for crystal reports for about 2 weeks now, and no luck. So I wonder if anyone have a source code for a simple report (maybe with subreports and external parameters) on ASP.NET (I'm using VS2008 and the CR emmbeded in it … | |
My task is to add new words to dictionary file. so am using infragistics webspell checker control. With out creating virtual directory to application, i could add new words to dictionary file. But if the virtual directory is created, even though i click on add, new words are not included … | |
hi frnds, i was a get a problem, i want to update the serialnumber by using a text box,,,, suppose i am updating the serial number as 3,,,,it was updated,,,, but if i wants to update the serial number as 4 ,that is already in the database it is also … | |
hi how to insert default year in database by uing a textbox in button click event. here iam asp.ent with vb.net database is sqlserver-2005. pls give me code | |
Hi I'm trying to map some tables using Nhibernate and it generally works apart from when it comes to one-to-many classes. I have a Visits table where each visit has many Inspection records. The mapping file for Visits contains the following: [code=c#]<bag name="Inspections" lazy="false" fetch="select" cascade="none" inverse="true"> <key column="VISIT_COUNTER"/> <one-to-many … | |
Hi ... I am using details view in one of my aspx page. In DetailsView I have set PagingMode to NextPrevious. Now I load some quiz questions in DetailsView and all this works fine in MOZILLA Firefox . But in IE8 ... when I click on Next button in Details … | |
Pls i need to know How can i read the content of a word document into a page or what is the alternative way of doing this. because this site is a dynamic and i dont want the site management to be done by typing the page content inside a … | |
how do you add a hyperlinkcolumn column in a gridview dynamically at runtime? if you can't add one, how do you modify its properties at runtime? i can't seem to figure out a way to do this. | |
sir,i am doing a web based application with front end ASP.net and back end microsoft SQL server.i need to know how to start doing a web based application.i need to know does designing is first to start or coding.suggest me some website for guide. | |
Hi All I have a problem where I want to open Outlook from a ASP button click which then pass data into the Outlook form from information that has been entered into textboxes by the user. Could anyone point me in the direction of how I might go about passing … | |
I have problem With My Calculator in ASP.NET C# in Microsoft Visual Web Developer 2008 Express Edition : web application not windows application the code: [CODE] protected void Button2_Click(object sender, EventArgs e) { //Double F1; //Double S1; // Double Re; // F1 = Convert.ToDouble(TextBox1.Text); // S1 = Convert.ToDouble(TextBox2.Text); // Re … | |
I have problem With My Calculator in ASP.NET C# in Microsoft Visual Web Developer 2008 Express Edition : web application not windows application the code: [CODE]protected void Button2_Click(object sender, EventArgs e) { //Double F1; //Double S1; // Double Re; // F1 = Convert.ToDouble(TextBox1.Text); // S1 = Convert.ToDouble(TextBox2.Text); // Re = … | |
hi, I have been doing my ASP.net project in C#.I am a beginner to a programming world.i have Performed executed some sql queries by writing some Connection strings..But i am looking for finding another method,which i could get simpler by calling some function like "studadapter.fill(dataset,"src table")" which is to fill … | |
Hello ! Could you please point me to a good C# tutorial for drawing 2d graphics like Ellipse and Rectangle (that inherit from Shape) on a Canvas using WPF ? I'm also interested later to click on shapes and identify which shape was clicked, and also to drag and drop … | |
Hi to all From Joekbit I just completed my BIT. ed experience includes ADO.NET, ASP.NET, NETWORK DESINGN, VB, C#, some HTML, Web desing, complex web based DB design. I have VS 2008, I am using WXP Pro sp3. I also have the full Office pro apps on my system. I … | |
HI, I want to Display Confirm box after certain condition using c# code. is there any tool avaolable for that. and also, while using Javascript alert the page getting blank. [code] if (!Page.IsClientScriptBlockRegistered("mytest")) Page.RegisterClientScriptBlock("myrest", "<script> window.alert('Hello')</script>"); [/code] | |
Hi, I'm using visual studio 2008 and it's built in development webserver, with C# as the codebehind language. I'm trying to make a simple webapp in which you click a button which sets a session var (that part is working) and in the pageload i'm checking to see if it's … | |
how to add a circle,square on an image on an imagemap?i want to create a new circle smalll one wid text on an existing image and create tat circle whenever i get tat coordinate position.also how to find coordinates of image point in runtime...in asp.net..i used drawing,graphics class but no … | |
Help me out to find the tables along with field to build database for CRM database.... | |
hi... im writing a code in which i need to upload some files like pdf's images etc on ftp....my code saves all the files on ftp properly...but ther is one form which allows user to delete the same contents from ftp..n d code written to delete the contents is as … | |
Hi, I currently have a database in MS SQL2008 which is accessed via a VB2008 app on a Local Area network. The password for the database is hardcoded within app.config file in the program. However I want to transfer the database out to the web. To that end I have … | |
Hi one and all, I am using C#.net language in asp.net framework using visual studio 2008. I have one checkbox as input control and two textboxes named textbox1 and textbox2 as asp controls. First the client needs to type something in textbox1 and after that the client needs to check … | |
Hi, I am relatively new to designing in ASP and this is my first form. I hav created a RadioButtonList within a FormView and one of the items is an other which, when selected, should pass focus onto a textbox for the user to type their 'other' reply. The code … | |
[COLOR="Green"]Can anybody plz tell me how to make a windows application form like vista view,Are there any free tools , help me :S[/COLOR] | |
Hi, I am new in List<string> ,Memory leak,.net, I can i manage memory for List<string> e.g. [CODE]List<string> list=new List<string>(); list.Add("a"); list.Add("b"); list.Add("c"); list.Add("d"); list.Add("e"); list.Clear(); [/CODE] in above example ,will List.Clear() release memory for list or items. Thanks and Regards Shabab Begym | |
Hello everybody, I'm about to finish programming my website using VS2008 and VB.NET. It depends on MS Access DB. I've made a contract with ix web hosting to upload my website there. I really don't know exactly what are the steps behind configuring and uploading my files remotely. Is there … | |
hi i realy cant guess what i'm doung wrong i'm trying to fire a simple oninit event. [CODE=asp]<html xmlns="http://www.w3.org/1999/xhtml"> <head> <title></title> </head> <body oninit="alert('hi');"> <form id="form1" runat="server"> <div> <asp:ContentPlaceHolder ID="cph2" runat="server"> </asp:ContentPlaceHolder> </div> </form> </body> </html>[/CODE] this works perfectly with onload event. | |
Hi Every Body I learn lots of thing from here. Now I put my hands in ASP.Net. I am creating a web site now I stuck at a point where I want to display the result in sorted order. Actually I have a facility to add new schedule for class … | |
Hi all, I want to validate the text box in gridview for date format. how can I do this. Thanks in Advance | |
There has to be an easy answer for this, I hope! I basically need the grandchildren of the below xml tree to show up in a vb.net gridview. I have the data getting pulled but all values are getting put into a single cell. Here is the xml tree. [CODE]<?xml … | |
Hi, I am attempted to use .NET's SMTPClient to send e-mail. I get no error messages or exceptions, yet the e-mail does not get sent. I have set the SMTPClient.DeliveryMethod to PickupDirectoryFromIis because I was getting an error message of Mailbox unavailable before. Now I no longer get that error … | |
I am working on site [url]http://www.turnkey-solutions.net/[/url] is working on local system. Its also work on live server but I click on any link its give the error. I don't know how to encounter that error can some one help me out from this problem. [CODE]Server Error in '/' Application. Parser … | |
I have a web service which has the soap authentication. But when i view the HTTP Request format in the soap envelope i dont find the xmlns:type attribute and also in the soap:body i dont find soap:encodingStyles attribute. How to add these attributes from the web service side. I need … | |
Hello there, I know this is simple, but I'm trying to add a scrollbar to this pop up window. [code] <script> function PopUpInvestors(investorid,identifier) { window.open('../trades/Peeps.aspx?investorid=' + escape(investorid) + '&id=' + identifier,'','resizable,status,left=100,top=75,width=625,height=600'); } </script>[/code] Can anybody help? | |
Just to say hi to all the .NET helpers out there. I have made the dreaded (but forced) change from vb6 to .NET. I will rely a lot on your expertise in this forum, and thanks to those that will be prepared to sort all my questions. I have been … | |
1. I have a blank test page. On the page load, it does this: UserControl c1 = (UserControl)LoadControl("control1.ascx"); this.Controls.Add(c1); 2. I have control1.ascx.cs On the ascx side: i have this single literal: <asp:Literal ID="litTest1" runat="server" Text="Hello World" /> On the page load, it does: UserControl c2 = (UserControl)LoadControl("control2.ascx"); this.Controls.Add(c2); 3. … | |
Hello there, I'm again working with a insertTemplate but this time I would like to know, basically I have two SQL tables one called Technician and the other called Alert. Basically I have a TextBox where a user can add new employees and save them to the Technician table, the … | |
hey, i have a problem regarding the format of the date format. in the form i have the date format in dd/mm/yyyy and when i try to save the date in that format in sql database, it's not accepting in that format. but i need to save the date in … | |
Hi, I am working with the treeview control and binding it dynamically using the treeview_TreeNodePopulate method. The code works perfectly fine and treeview behaves as it has to. However, I am facing one annoying issue in the display of the treeview, the last node and its child do not align … | |
using System.Web.Mail; MailMessage mm = new MailMessage(); mm.To = "mymail@gmail.com"; mm.From = "mymail@gmail.com"; mm.Subject = uxSubjectText.Text; string MESSAGE2 = "<html><body><div><table><tr><td>hiiiii</td></tr></table></div></body></html>" mm.Body = MESSAGE2; mm.BodyFormat = MailFormat.Html; mm.Priority = MailPriority.High; SmtpMail.SmtpServer = "smtp.gmail.com"; mm.Fields.Add("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate", "1"); mm.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendusername", "maymail@gmail.com"); mm.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendpassword", "password"); mm.Fields.Add("http://schemas.microsoft.com/cdo/configuration/smtpserverport", "465"); mm.Fields.Add("http://schemas.microsoft.com/cdo/configuration/smtpusessl", "true"); SmtpMail.Send(mm); plz solve this problem | |
Hi, I have an aspx textbox control in my webpage its value is being assigned from javascript. Now once the value is assigned from javascript it returns empty string when tried Textbox.text from c# codebehind on submit. here is the definition of the textbox <asp:TextBox ID="TxtTags" CssClass="TextBoxStyle" runat="server" ReadOnly ="true" … | |
How to get the IP address of the Client (visitor of the website) I tryed with theese codes: [CODE]Request.UserHostAddress; and Request.ServerVariables["REMOTE_ADDR"][/CODE] But both gave me back the serrver IP :( | |
Hi, I'm working on a content management system for our website (ASP.NET project, C# language, SQL Server 2000), but I'm unable to save russian texts into the database. Table is okay, I've created an ntext column, which is able to store unicode characters. However, if I'll look into the database … | |
hi.. im using a a gridview with template fields which contains labels to display the dynamic data from database.. my problem is, i want to use paging concept in the gridview. but as im using template fields & a dynamic database, im getting an error.. this is how im binding … |
The End.