73 Discussion / Question Topics

Remove Filter
Member Avatar for castajiz_2

Hi guys. for several weeks i can t make my mind whether to go and learn php or should i stick with my C# knowledge and learn ASP.net. I ve started to programming in C# 2 years ago, learned sql and databases and learned html css when i was still …

Member Avatar for JorgeM
0
136
Member Avatar for castajiz_2

The thing that i don t understand here is how can you put a FUNCTION that hasn t yet evaluated into a integer(will evaluate later but at the moment of the recursion it hasn t) into a int variable? Once n equals 0 the int smallResult will get populated but …

Member Avatar for L7Sqr
0
152
Member Avatar for castajiz_2

I was just wondering not just concerning this piece of code but in some other code as well how can i avoid --> if (j!=array.Length-1) and put something else maybe something in the for loop? LINE6 for (int i = 0; i < array.Length; i++) { for (j=counter; j < …

Member Avatar for vadriaan
0
160
Member Avatar for castajiz_2

public void RotateImage(Graphics paper,string theString) { try { using (paper) { paper.RotateTransform(angle); angle++; sz = paper.MeasureString(theString, this.Font); paper.DrawString(theString, new Font("Arial", 24), Brushes.Black, -(sz.Width / 2), -(sz.Height / 2)); paper.Dispose(); } } catch (Exception e) { MessageBox.Show(e.ToString()); } i get an error saying parameter is not valid, but only if i …

Member Avatar for castajiz_2
0
320
Member Avatar for castajiz_2

private void Form1_Paint(object sender, PaintEventArgs e) { String theString = "A"; SizeF sz = e.Graphics.VisibleClipBounds.Size; e.Graphics.TranslateTransform(sz.Width / 2 ,sz.Height / 2); e.Graphics.RotateTransform(angle); angle++; sz = e.Graphics.MeasureString(theString, this.Font); e.Graphics.DrawString(theString, this.Font, Brushes.Black,-(sz.Width/2),-(sz.Height/2)); } I dont understand the last part with the DrawString(). The 2 last arguments of the method specify the location …

Member Avatar for castajiz_2
0
598
Member Avatar for castajiz_2

The title says it all. I switched to Opera for some reason but i m trying to paste some code from vs2012 to this area overhere and I m unable to do that. Any ideas? Should I enable something in my settings? I m having the latest version. I assume …

Member Avatar for castajiz_2
0
247
Member Avatar for castajiz_2

Bassically I want my letter to rotate clockwise but not all over the form, I want it to rotate in one place. private void Form1_Paint(object sender, PaintEventArgs e) { RotateImage(e.Graphics); . } string a = "A"; float d= 15f; Font stringFont = new Font("Arial", 16); private SizeF stringSize(Graphics paper1) { …

Member Avatar for ddanbe
0
96
Member Avatar for castajiz_2

1.code -------------------------------------------------------------------------------------------------------------------- static void Main(string[] args) { SqlConnection sc = new SqlConnection("Data Source=pc3490ierf43;Initial Catalog=Persons;Integrated Security=True"); sc.Open(); SqlCommand command=new SqlCommand("Select Name from Persontable",sc); SqlDataReader reader= command.ExecuteReader(); while (reader.Read()) { Console.WriteLine("{0}", reader.GetString(0)); } Console.ReadLine(); } --------------------------------------------------------------------------------------------------------------------- ** 2.code** static void Main(string[] args) { using (SqlConnection sc = new SqlConnection("Data Source=pc3490ierf43;Initial Catalog=Persons;Integrated Security=True")) …

Member Avatar for deceptikon
0
255
Member Avatar for castajiz_2

Is it posible to install and deploy my c# apllication on my phone (name in the title)?

Member Avatar for pritaeas
0
82
Member Avatar for castajiz_2

Hi there. I ve got a problem with my drop down menu, i ve centered a border on my page and when i hover over the <li> of my <ul> a drop down menu appears but it appears behind the border that i ve inserted. My question is do i …

Member Avatar for JorgeM
0
134
Member Avatar for castajiz_2

I was wondering if I could develop a comment section where people would post comments without using php or asp. The only thing that i would like to use ih javascript, html, css, ajax and things like that. Is this achievable without the usage of php or asp?

Member Avatar for JorgeM
0
71
Member Avatar for castajiz_2

Hi there new to css and there is something I don t understand for example div.img img { display:inline; margin:3px; border:1px solid #ffffff; } what does the other img represent, what is this? I understand that the class called img is going to be applyed on the div tag in …

Member Avatar for JorgeM
0
82
Member Avatar for castajiz_2

Hi again, before a year ago when we were doing the graphics class at college my professor said that the coordinate system is reversed in programming that means that the Y axe is positive when facing down and the X axe is negative when facing right , however when using …

Member Avatar for lolafuertes
0
289
Member Avatar for castajiz_2

hy guys i have a problem with my event public delegate void paintEventHandler(object sender, EventArgs e); Graphics paper; public static event PaintEventHandler After1s; private void Mouth_shut(Graphics gr) { gr.FillEllipse(new SolidBrush(Color.Yellow), 50, 50, 50, 50); } private void Mouth_Open(Graphics gr) { gr.FillPie(new SolidBrush(Color.Yellow), 50, 50, 50, 50, -30, 270); } private …

Member Avatar for Ketsuekiame
0
197
Member Avatar for castajiz_2

Hy guys, haven t been here for a while, If anyone can give me a idea or a way or a link on how to retrieve data from a website and store it in my application for further usage. The thing is that this data is being updated every month …

Member Avatar for Momerath
0
197
Member Avatar for castajiz_2

I wast just wondering guys how do you look at recursion , how do you apply it (i m not talking here about easy recursions like hannoi tower, factoriels, fibonnaci... wich are obvious). I m a beginner programmer and i understand the concept quite well but let s say a …

Member Avatar for Momerath
0
161
Member Avatar for castajiz_2

I was wondering guys if you could explain me how RECURSION works inside a loop!? I got lost here so please anything we ll be much appreciated. public void perm(int[] list, int k, int m) { int i; if (k == m) { for (i = 0; i <= m; …

Member Avatar for ricky.subiantoputra
0
835
Member Avatar for castajiz_2

I m having a problem when sending my c# projects to a friend via e-mail. Before sending i use WINRAR to compress it however when the other side gets the mail and when it tries to open it, it get s an error ouptut saying: "application not found". When going …

Member Avatar for TnTinMN
0
4K
Member Avatar for castajiz_2

This is just an example i have to do a simillar thing on a much larger code , but my question is why doesn t this work? I solved my problem with a string method and return statements but why can t i use a void method with the result …

Member Avatar for tinstaafl
0
310
Member Avatar for castajiz_2

Hi guys, I m making an small aplication for buses but i got stuck with the string array conversion to a timespan array, i have to convert it i order to compare times later on but i don t know how... Here is the code string line; TimeSpan [] array; …

Member Avatar for castajiz_2
0
1K
Member Avatar for castajiz_2

Hi guys I have a little mess up in my head going on i dont really know why. My question is how come a right join AND a left join were made to handle database queries, why both of them, isn t one enough? for instance let s take the …

Member Avatar for adam_k
0
225
Member Avatar for castajiz_2

Hi guys, as you can see i have a problem with the array , i don t know how to put every remainder in the array and then loop it to get the reverse order, it seems that the array is being overwrited every time the while loop goes and …

Member Avatar for castajiz_2
0
167
Member Avatar for castajiz_2

Hi guys i m new around here as you can see, i was wondering why can t the program find the minimum of random generated numbers?Any help would be greatly apreciated. public static void Main(string[] args) { int[] randomNum = new int[10]; int min = randomNum[0]; int max = randomNum[0]; …

Member Avatar for castajiz_2
0
852

The End.