Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
B

Bharat Jain

@Bharat Jain
About
Posts
68
Topics
0
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • SMS HELP
    B Bharat Jain

    Hi to send SMS Using a modem you need to use AT Commands , AT Commands are the command that you need to send to the modem (GSM Modem ) and it will send the message to the required number , You can do a google search on "How to send SMS using AT commands" Let me know if you need further help :) Happy Coding

    -Regards Bharat Jain bharat.jain.nagpur@gmail.com

    .NET (Core and Framework) csharp help question

  • Syntax Error in NEW vb.net
    B Bharat Jain

    i think you should try the following

    Dim a as new AccesoDatos.CRMWEB.AccesoDatos.contacto_cliente_autoCD
    a.contacto_cliente_auto_Insert(contacto_id, cliente_id, serie)

    -Regards Bharat Jain bharat.jain.nagpur@gmail.com

    ASP.NET csharp sharepoint business help

  • Problem with API
    B Bharat Jain

    Hi ,

    PictureBox1.Handle

    is how you get the handel (hdc) you will require to change the declaration a bit , the new declaration of the API should be as following

    Public Declare Function ExtFloodFill Lib "gdi32" Alias "ExtFloodFill"
    (ByVal hdc As IntPtr, ByVal x As Integer, ByVal y As Integer, ByVal
    crColor As Integer, ByVal wFillType As Integer) As Integer

    Hope this helps Let me know if you need further help

    -Regards Bharat Jain bharat.jain.nagpur@gmail.com

    Visual Basic csharp json help tutorial

  • COM port
    B Bharat Jain

    in .net its SerialPort1.IsOpen Use the IsOpen property of the serialPort object Hope this helps

    -Regards Bharat Jain bharat.jain.nagpur@gmail.com

    Visual Basic com question

  • TAPI
    B Bharat Jain

    Hi, Using TAPI is bit tricky and hard , but there a wrappers available over it , one of such wrapper is available at the following site http://www.codeplex.com/C4FDevKit[^] Its an open source wrapper , you can also find information regarding it on http://www.microsoft.com/express/samples/c4fdevkit/default.aspx[^] You can use it to recive phone call or to build Instant Voice response System kind of stuff It has worked for me , hope you would also find it helpful

    -Regards Bharat Jain bharat.jain.nagpur@gmail.com

    Visual Basic question help

  • Help with drawing
    B Bharat Jain

    Hi Johnny, . You can to use the resize event of the form , on resize event resize shape , hope you would be able to find event , events can be found using property window , there is small yellow colored , lighting shape button , it will show all event related to the selected object (in our case form , as we have kept it selected) , there You need to find resize and double click on to white space (cell) next to resize , designer will take you to event handler , where you should place your code . Hope i have not made it more confusing , let me know if you need more information

    -Regards Bharat Jain bharat.jain.nagpur@gmail.com

    C# question graphics help

  • a new coding style which I came across
    B Bharat Jain

    Ya that is true the best way to learn is MSDN documents , also use the intellisense in Visual Studios , it would be too hard to mention about all attributes , but if you have specific doubts , may be i can help

    -Regards Bharat Jain bharat.jain.nagpur@gmail.com

    Visual Basic csharp

  • VB LAN connection help
    B Bharat Jain

    Your are developing a game and hence , you need a reliable connection (you need to know if you are connected or not , etc ) , would say Use a TCP connection , also u are right there is Winsock control in .net but there is a library stronger than it , it is under the Namespace System.Net , use it , also if you are developing a game may be your are using directx , it also has a component called as direct play , which can be used for communication , i case you are using directx Let me know if you need more info

    -Regards Bharat Jain bharat.jain.nagpur@gmail.com

    Visual Basic game-dev sysadmin help question

  • a new coding style which I came across
    B Bharat Jain

    These are called attributes, this not something very new , the code above seems to use a native windows API (Windows API can be considered as functions provided by OS , to be able to program the OS), This Windows API are present in the dll files Kernel32.dll , GDI32.dll, etc , so in above code we are using attribute "<dllimport("kernel32.dll")>" to tell the compiler that we want to use a windows function WaitForSingleObject() which is present in Kernel32.dll , in the same way we want the compiler to allocate the memory in sequential order hence use an attribute <structlayout(layoutkind.sequential,pack:> (the reason for this sequential allocation is a different topic , let me know if you want details regarding the reason , for now I will skip it :)) Hope this make things clear, let me know if you need further information

    -Regards Bharat Jain bharat.jain.nagpur@gmail.com

    Visual Basic csharp

  • teking binary files as a input for client windowes application from a website
    B Bharat Jain

    Hi, There are two solutions that comes to my mind at this point.(i am assuming the website you have mentioned is under your control) 1) you store the file on an FTP server , and then use the FTP class provided in .net to check if there is file available (Also we can use a date time stamp to check if we really want the file), then download the file and run the file using "Shell". 2) using a web service , you write a web service which will provide the file to you , then from windows application call the web service , get the file and run using "Shell". Please let me know if this what you want(Let hope :) ) , i am just trying to give you direction to think , if you need more help let me know .

    -Regards Bharat Jain bharat.jain.nagpur@gmail.com

    C# question

  • how to get a list of computer names in LAN
    B Bharat Jain

    Sorry the previous code is in Vb , i hope you will be able to convert it . It is very simple

    -Regards Bharat Jain bharat.jain.nagpur@gmail.com

    C# question sysadmin tutorial

  • how to get a list of computer names in LAN
    B Bharat Jain

    Hi Vinziee , You can try the following code , also do not forget to Import System.Net In the following example we use the service of DNS , first we find the host of current computer then try to get list of computer from this DNS. I hope this works .

    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
    GetAllIP()
    End Sub
    Public Function GetAllIP() As Integer

        Dim strHostName As New String("")
        strHostName = Dns.GetHostName()
        Console.WriteLine("Local Machine's Host Name: " + strHostName)
        Dim ipEntry As IPHostEntry = Dns.GetHostEntry(strHostName)
        Dim addr As IPAddress() = ipEntry.AddressList
    
        Dim i As Integer = 0
        While i < addr.Length
            TextBox1.Text = TextBox1.Text & vbCrLf & String.Format("IP Address {0}: {1} ", i, addr(i).ToString())
            System.Math.Max(System.Threading.Interlocked.Increment(i), i - 1)
            Application.DoEvents()
        End While
        Return 0
    End Function
    

    -Regards Bharat Jain bharat.jain.nagpur@gmail.com

    C# question sysadmin tutorial

  • monitoring whole registry
    B Bharat Jain

    Hi Geri, I think you may find something using "Windows Hooks" , you need to search for it , i am assuming that if registry value is changed a message or notification should be sent to the system , we can use "Windows Hooks" to get this message form the system's message queue (i am not not sure about the method , just try to mention a possible solution) , the above two methods u mentioned do pooling on to registry , which not good always :)

    -Regards Bharat Jain bharat.jain.nagpur@gmail.com

    C# com windows-admin data-structures help tutorial

  • Error trying to draw on form
    B Bharat Jain

    I really don't understand what you are trying to do , but the error you are getting is because you have not initialized the array ink() , it is still Nothing and hence are getting the error , was not able to understand the logic you are trying to apply , looking at the code it don't think it is going draw anything :( . The only thing i can suggest is initialized the array before using it.

    -Regards Bharat Jain bharat.jain.nagpur@gmail.com

    Visual Basic graphics php com game-dev help

  • Sync confusion
    B Bharat Jain

    Hi Jacob, I ya know Microsoft's sycn framework is bit hard to understand , but some times proves worth all the time you put in , anyways if your problem is solved without using it , its gr8 , any thing which works fine is fine :)

    -Regards Bharat Jain bharat.jain.nagpur@gmail.com

    C# database sql-server sysadmin testing beta-testing

  • HTTP Error 400 - Bad Request. [modified]
    B Bharat Jain

    Don't you think the question is completely out of context ??????????

    -Regards Bharat Jain bharat.jain.nagpur@gmail.com

    C# help com tutorial question

  • vb.net 3.5 + serialport cotnrol + Threads = help
    B Bharat Jain

    I think the problem is not related to threads , it is something to do with creating proper instance of a class. When from Form2 you call Form.SerialPort1.IsOpen you are not creating an instance of Form1 which means Form1_Load never gets called , and hence the code inside the Form1_Load event is not called ,keeping the the port closed , in Form2 try this , just before Debug.Print(Form1.SerialPort1.IsOpen) statements put the following statements

    Form1.Show()
    Form1.Hide()

    We are forcing the Form1 to load. Let me know if this answers you question Feel free to ask if something is not clear

    -Regards Bharat Jain bharat.jain.nagpur@gmail.com

    Visual Basic help question csharp com

  • RS232 Communication
    B Bharat Jain

    No Clue !! , it does not seem that any threading is used in the code you pasted , i am really not able to think of any other cause of problem :(

    -Regards Bharat Jain bharat.jain.nagpur@gmail.com

    Visual Basic question hardware

  • Sync confusion
    B Bharat Jain

    Are you using Microsoft's Sync Framework ?? If yes then it is been taken care Microsoft's Sync Framework , if not if it is a query base update then in most case the query with a were clause at the end (update table where id = ? ) if sql does not find a record it does not update anything and move ahead , it is not necessary for for sql to update something. I hope this is understandable

    -Regards Bharat Jain bharat.jain.nagpur@gmail.com

    C# database sql-server sysadmin testing beta-testing

  • Help needed for bluetooth application...
    B Bharat Jain

    Hi Vijay, You can use C4F Toolkit , its free open source toolkit You can find it at http://www.codeplex.com/C4FDevKit[^] Also you can find a sample at http://blogs.msdn.com/coding4fun/archive/2007/08/19/4474153.aspx[^] Another useful link http://www.microsoft.com/express/samples/c4fdevkit/default.aspx[^] Hope this helps :) feel free to contact in case of any doubts

    -Regards Bharat Jain bharat.jain.nagpur@gmail.com

    Visual Basic csharp help
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups