Jump to content
Xtreme .Net Talk

dhj

Avatar/Signature
  • Posts

    82
  • Joined

  • Last visited

Everything posted by dhj

  1. Hi All i have a datagird in my web application. i want to highlight whole row once the user click on the datagrid. same functionallity as the outlook inbox. how can i do this thanks
  2. Thank you very much for your reply. i think i must find another method to fulfill my requirement :o any way thank you for your kind reply
  3. I have a groupbox in one of my forms and in click event of that groupbox I have some code written. Once I changed the flatstyle to �system� click event of the groupbox is not working. And my other problem is, when I place a groupbox on top of another groupbox font of top most groupbox is getting upset. (This is also when the faltstyle is set to �system�) This is in my windows application. and I'm using vb.net. If anyone can give a solution I really appreciate. Thank you very much in advance
  4. hi again. i'm using vb.net and Crystal reports version which comes with the .net to develop my windows application. i need to do something like follows: in my report i need to load a image run time. The image i need to display is in the hard drive and i know the path of the image (this is changing according to some constraints. therefore i cannot add this file in design time). i'm passing a dataset and viewing the report. how can i set the image path dynamically in my report. Pls Help. Thank you very much in advance.
  5. Thank you very much... It works with paint method.
  6. In one form of my VB.NET Windows application, I have a picturebox. I need to draw a line (using known coordinates) on picturebox when the form is loading. Following is the code I wrote in my Form_Load event. Private Sub frm_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.Load PictureBox1.Refresh() Dim g As Graphics = CType( PictureBox1, PictureBox).CreateGraphics Dim myPen As New Pen(Color.Red) myPen.Width = 2 g.DrawLine(myPen, 0, 0, 100, 100) myPen.Dispose() g.Dispose() End Sub But it's not displaying the Line when the Form is loading. I cannot figure out why. Thank you
  7. in my vb.net windows application i have a flex grid. i need to make the content of the grid to upper case. normally in text boxes and all we can find a property called CharaterCasing. is there any similar property in flexgrid like that. thanks
  8. hi i am developping a windows application with vb.net. in one of my form i have a flex grid. on a cell click i need to detemine whether it's a new row or existing row. how can i do this ? is there any event to find out this ? thx
  9. hi all this is abt a vb.net windows application i have a typed dataset with data. and i have a textbox, user can enter any value there. and after user enters a value to the textbox i need to find whether that value is in the typed dataset how can i do this. i found a find function in a typed dataset row, but i can search only primary key using that. the value which i need to find is not the primary key. eg: in the typed dataset i have 2 fields ID (Primary Key) Name i need to check name column with the entered text by user can anybody tell me the syntax of how to this thank you
  10. yes alex i have tried that too. but still the problem is there. :confused:
  11. hi all thank you very much for all of u for ur comments i have tried Alex's method txtFirstName.Text=IIF(.FirstName = dbnull.value,"",.FirstName) it is giving me a error as "Operator '=' is not defined for types 'String' and 'System.DBNull'. Use 'Is' operator to compare two reference types." and then i tried Joe Mamma's method txtFirstName.Text=Convert.ToString(.FirstName) but still the same problem occures ofcause as u guys said i can easily go for if.. else ... statement. but imagine if i have plenty of allow null fields, then i need to write if .. else statement for each and every one. that is y i have selected IIf to do me the job. but still i cannot figure out y this is not functioning propery. as u guys said IT IS STRANGE.....
  12. i have a typed dataset, one field is allow null,(say FirstName is allow null) when i'm retreiving data to the UI i need to check FirstName for null values so i'm doing this as follow say my types dataset is ds and oRow is the pointed row with oRow txtFirstName.Text=IIF(.IsFirstNameNull,"",.FirstName) end With but my problem is this IIF doesn't work propery. if i did this using if else statements without using IIF it is working properly pls help me, pls explain me y this IIF is not function properly,this is in my windows application and i'm using vb.net thank you
  13. hi i have a 3 tier windows aplication(VB.NET), and in my WINUI i have couple of shared variable. i need to read those shared variables from my BLL and DAL how am i suppose to access those shared variables from BLL and DAL Thank you
  14. hi i have created a Visual Basic Simple Distributed Aplication (from other projects-> Enterprise Template Projects). now i need to add Application Configuration file (app.config) to my WINUI. but i cannot find Application Configuration file in the new item list. does any one know the reason for this.
  15. hi How can i check whether a file is existing in a specific path from vb.net and how to create a new folder from vb.net thx
  16. you will have to change CauseValidation to false in your search button
  17. TimeValue(DateTime.Now) will give u the time in vb.net
  18. thank you very much it is working fine
  19. hi PlausiblyDamp Thank you very much it is working fine but now my problem is when i click on a button it's changing the colour of the button too . how can i prevent this problem?
  20. but i have many types of controls how can i handle that ?
  21. hi i need to change the background colour of a control (say textbox for a example) when it has gotfocus and change back to the original colour when lostfocus. (in a vb.net windows application) i know i can write subs for each and every control as follows Private Sub TextBox1_LostFocus(ByVal sender As Object, ByVal e As System.EventArgs) Handles TextBox1.LostFocus End Sub Private Sub TextBox1_GotFocus(ByVal sender As Object, ByVal e As System.EventArgs) Handles TextBox1.GotFocus End Sub but i don't want to do this since i have too much of controls in my form do i have any other option?
  22. hi i used System.Reflection.Assembly.GetCallingAssembly().Location it is working fine
  23. yeah it is giving me a warning is it ok. if i use system.windows.forms in a business rules project ?
  24. how can i get this when i'm in a business rules project
×
×
  • Create New...