|
So, you need to write queries that only return the records you want to show on each tab. That's just some basic SQL filtering you need to do.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
ya i know that i need queries to write, i already wrote one query in the tabABC but nothing shown in the datagrid.... i don't know why
since this morning nothing happened
actually now i don't know what kind of queries to write and where to write them in tabcontrol or in tab of each page
|
|
|
|
|
detective_girl wrote: i already wrote one query in the tabABC but nothing shown in the datagrid.... i don't know why
OK, well, it's pretty straightforward. Did your query return anything ? Did you bind the data to the grid.
detective_girl wrote: actually now i don't know what kind of queries to write
Well, I don't know what to say - your comments are all so vague. Do you mean you don't know any SQL ?
detective_girl wrote: where to write them in tabcontrol or in tab of each page
Your data layer should be seperate to your presentation layer. Then, as each tab is selected, it would have a datagrid which calls the appropriate method in the data layer.
The first step is to write and test the SQL. The second is to put methods in your data layer to call the different data base methods. The third is simply to bind the grid to the right method, according to the selected tab.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
can anyone tell me what is the best skin building software that I can Use?
Thanx in Advance
|
|
|
|
|
You haven't provided enough information for anyone to answer your question.
---
single minded; short sighted; long gone;
|
|
|
|
|
Hi could anyone please tell me how to get the size of an image on the internet, without downloading it first.
Basically I want to check if it's a certain size before I download it. At the moment I am getting the image links of a web page via the Webbrowser control and then loading each image into a picturebox control, set to autosize. If the image is a certain size , I will then save the picturebox contents to file. This is very slow though as I am downloading lots of images that aren't big enough just to check their size.
I Have seen a program called 'Get File Size' http://www.unhsolutions.net/GFS/downloads.shtml that can do this very quickly.
Thanks in advance,
Darren.
|
|
|
|
|
You can't. There's nothing in the HTTP specification for retrieving file size. You'll have to start the file download, look at the headers of the response from the server to get the size, then cancel the download.
Dave Kreskowiak
Microsoft MVP
Visual Developer - Visual Basic 2006, 2007
|
|
|
|
|
Thanks for that. Is that how the program 'Get File Size' would do it. They get the size back in about a quarter to half a second? Would the response come back that fast?
|
|
|
|
|
That depends on the response time of the HTTP Server, but yes, it can.
That's the only way I know of to do it.
Dave Kreskowiak
Microsoft MVP
Visual Developer - Visual Basic 2006, 2007
|
|
|
|
|
Sorry to be a pain, but I'm just confused myself. How do I look at the headers when then response coming back is just for a jpg file in the webbrowser. I've just been trying it and I cant seen to get the file size without still loading the image?
Thanks again.
|
|
|
|
|
You can't use the WebBrowser control for this. You have to create your own using the HttpWebRequest class to make the request. You'll get back a WebResponse object that has a Headers collection property that you can examine, or you can look at its ContentLength property.
Dave Kreskowiak
Microsoft MVP
Visual Developer - Visual Basic 2006, 2007
|
|
|
|
|
Dave,
Thanks for all your help. I really appreciate it.
Regards,
Darren Lee
|
|
|
|
|
Mình muốn hiển thị giá trị tương ứng trên combox khi di mouse qua thi se hiển thị được giá trị của nó ! Có ai có cách không giúp mình với ! Cám ơn nhiều
|
|
|
|
|
CodeProject is an English speaking board. You might want to repost your question in English or have someone translate for you.
Dave Kreskowiak
Microsoft MVP
Visual Developer - Visual Basic 2006, 2007
|
|
|
|
|
OK, mouse is clear, and combox probably stands for combobox , hence the answer is: yes, you can select combobox items with the mouse.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
|
|
|
|
|
Dear All,
This is related to IList concept in .net 2.0,
I have Ilist property i.e CourseOptions,
There one storedProcedure That return result like this
ID VALue Text
1 Averages YES
2 Honor Rolls NO
4 Marking Period Totals YES
8 Class Ranks NO
16 Transcripts YES
32 PRC YES
64 Attendance NO
128 Print On Schedule NO
256 Print On Matrix NO
512 Offered Course NO
1024 Nat'l. Hon. Soc. NO
2048 No Marks NO
8192 Junior Hon. Soc. NO
I Want to get all the values of Text column.
These columns i need to bound to IList of CourseOptions I can doit
Pls help me in this
Thanks N Advance
|
|
|
|
|
Don't cross post. You have also posted this message in the SQL forum.
|
|
|
|
|
Has anyone implemented aggregation in VB .NET
Please advise with sample code.
|
|
|
|
|
What do you mean ? Do you mean in how data is displayed ?
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Dear All,
does anybody know how to set the decimal point in smart device ?
I write code like the following lines:
Imports System.Globalization
Imports System.Threading
Public Class frmDecimalTest
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim ci As New CultureInfo("it-IT")
Dim nfi As New NumberFormatInfo
nfi.CurrencyDecimalSeparator = ","
nfi.CurrencyGroupSeparator = "."
ci.NumberFormat = nfi
'Thread.CurrentThread.CurrentCulture = ci
End Sub
End Class
I don't know how to set the current culture (in smart device application, there is no Thread.CurrentThread.CurrentCulture event. Thanks a lot for helping
|
|
|
|
|
how to link of two forms in vb
naidu
|
|
|
|
|
Your header is the name of the forum, and your question would have made a good header. What do you mean by 'link' ? Do you mean pass information between them ? You can put properties on a child form and access them from the main form, but delegates are the best way to communicate between forms.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
here are my sample of codes i write a program that make an addition if checkbox checked or radio button checked i tried to show all of it with "toplam" but it gives the result 0 where i did something false any ideas???
Public Sub TextBox1_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TextBox1.TextChanged
forma = TextBox1.Text / 16
End Sub
Dim baskisayi As Single
Public Sub TextBox2_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TextBox2.TextChanged
baskisayi = TextBox2.Text / 500
Call isaretliyi_bul()
End Sub
Private Sub isaretliyi_bul()
If RadioButton1.Checked Then
toplam &= Ayarlar.TextBox1.Text * forma
ElseIf RadioButton2.Checked Then
toplam &= Ayarlar.TextBox2.Text * forma
ElseIf RadioButton3.Checked Then
toplam &= Ayarlar.TextBox3.Text * forma
ElseIf RadioButton4.Checked Then
toplam &= Ayarlar.TextBox4.Text * forma
ElseIf RadioButton5.Checked Then
toplam &= Ayarlar.TextBox18.Text * baskisayi
ElseIf RadioButton6.Checked Then
toplam &= Ayarlar.TextBox17.Text * baskisayi
ElseIf RadioButton7.Checked Then
toplam &= Ayarlar.TextBox15.Text * baskisayi
ElseIf RadioButton8.Checked Then
toplam &= Ayarlar.TextBox19.Text * baskisayi
ElseIf RadioButton9.Checked Then
toplam &= Ayarlar.TextBox20.Text * baskisayi
ElseIf RadioButton10.Checked Then
toplam &= Ayarlar.TextBox21.Text * baskisayi
ElseIf RadioButton11.Checked Then
toplam &= Ayarlar.TextBox16.Text * baskisayi
ElseIf CheckBox1.Checked Then
toplam &= Ayarlar.iccizim.Text
ElseIf RadioButton12.Checked Then
toplam &= Ayarlar.rcilt.Text * forma
ElseIf RadioButton13.Checked Then
toplam &= Ayarlar.cilt.Text * forma
ElseIf CheckBox6.Checked Then
toplam &= Ayarlar.ressam.Text
ElseIf CheckBox2.Checked Then
toplam &= Ayarlar.bandrol.Text * baskisayi
ElseIf CheckBox3.Checked Then
toplam &= Ayarlar.ambalaj.Text * baskisayi
ElseIf CheckBox4.Checked Then
toplam &= Ayarlar.nakliye.Text * baskisayi
ElseIf CheckBox8.Checked Then
toplam &= Ayarlar.dizgi.Text * forma
ElseIf CheckBox9.Checked Then
toplam &= Ayarlar.kapak.Text
ElseIf CheckBox5.Checked Then
toplam &= Ayarlar.ozalit.Text
ElseIf CheckBox10.Checked Then
toplam &= Ayarlar.baski.Text
ElseIf CheckBox7.Checked Then
toplam &= Ayarlar.ctp.Text
End If
|
|
|
|
|
I have no idea what you're asking, but this code is incredibly nasty.
Use a switch instead of all these elseifs, assuming there's no other way. And, for goodness sakes, give your checkbox variables meaningful names. If the code for checkbox9 and checkbox8 are the wrong way around here, how would you tell ?
alpdoruk wrote: forma = TextBox1.Text / 16
If TextBox1 ( there are those variables again ) has a value < 16, the return value will be 0. and so, the result will be 0.
alpdoruk wrote: Ayarlar.TextBox1.Text * forma
It looks to me like you have a form with public variables ( textboxes ). Don't do that. Expose the strings only if you need to.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
ok i am doing know these corrections but is the call funktion correct?
|
|
|
|