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
F

Forbiddenx

@Forbiddenx
About
Posts
41
Topics
7
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Application Designing guide line for interaction between Win & Web application
    F Forbiddenx

    In order to do what you want, your windows service is going to have to become a WCF service and will need to be setup pretty much like a web site would be.... So, what you are creating is a two way system... Think of it like this... You currently have... Client -> Server..... Client can send out and server can respond... If server could Client <-- Server.. then client would not have any way to listen of respond... now you could add your own sockets and listen.. etc.. but that is reinventing the wheel. Or even time based checking is a option.. What I think you want is Server<--->Server. Both can talk at any time and the other one will know when to listen.. this is what WCF will do... it will allow you to listen to server based events from your remote machine.. you will have to turn your web servic/client into a server... Check out this article, it explains more about it. A Beginner's Tutorial for Understanding Windows Communication Foundation (WCF)[^

    =)

    ASP.NET database csharp tutorial asp-net wcf

  • radio button
    F Forbiddenx

    Make a variable public or private. using public to make it more easy to understand... and place it outside your function so it holds its value after each click. private will also work, but then it is accessible only within the class itself.. that is a whole different discussion. public int counter =0; then in your click event for the radio button increase the counter. counter++; should do the trick... Not going to write it for you though.

    =)

    ASP.NET

  • MULTI LANGUAGE WEBSITE IN ASP.NET USING C#
    F Forbiddenx

    You can use multiple resource files one for each language or more then one per each language it does not matter. And all your pages can ref them, and don't think of each resource location just a a single string.. think of it like a blob of data... of some type string, sentence, picture, etc.. You then create the instance of that resource and store it in a common resource file and then you can all it from anywhere. http://www.codeproject.com/Tips/580043/How-to-make-a-multi-language-application-in-Csharp

    =)

    ASP.NET csharp asp-net help tutorial

  • PeekyPokey - a USB board for h/w programming in .NET
    F Forbiddenx

    I use to be a control engineer, for HVAC and Access control and I got to tell you.. Awesome work man. Most of the high end controls I used have all been logical block programming which had its benefits and drawbacks. IE Automated Logic, Niagara AX Framework. I personal prefer being able to code with C#. Does this little board have distributed code ? for example can it operate without the PC ? Either way, this SDK looks like a great prototype tool. A good way to build something for testing and proof of concept. I would not recommend using it in a production cycle, for that you would want to build your own board. But again man, awesome work!

    =)

    Free Tools csharp hardware android com json

  • Thread Progress Bar
    F Forbiddenx

    Yes, I do see invoke but it does not look like its used correctly. It looks to me like his code is trying to access the progress bar ui directly and outside of the invoke. It looks like he is setting a lot of values, my guess is some of those values are on the ui and that is what is crashing everything. I think he is going to have to re-write how this works..

    =)

    C# csharp wpf

  • Anyone managed to get oracle wallet to work in C# ?
    F Forbiddenx

    Hello all, I have a need to use oracle wallet for all connections in C# .net. Has anyone managed to get this to work and if so any advice would be great. Thanks!

    =)

    C# csharp oracle question

  • Thread Progress Bar
    F Forbiddenx

    Threads can be tricky, what you are running into is a problem with access.. threads by default can not access the ui to update a progress bar because that may create a deadlock. For the background worker there is a function built in for report progress, but it is limited to only allow for simple updates. You can however, get around this requirement by doing .Invoke((Action)delegate() which allows safe access to the ui through a delegate. I have used this method to update multiple labels, etc. That should do the trick.

    =)

    C# csharp wpf

  • Substring / Split String help
    F Forbiddenx

    if there are separators then you typical use split. split on value, split on line count ,typical of csv file type. Now, you also can have a file that is fixed length fields.. Split then on field count then you just substing(x,y) out and prob split on line feed. Now, if your trying to sort data out of something that follows no standard then now your looking at some sort of parsing method. either reg expressions or loops.

    =)

    C# help csharp tutorial question

  • Any Ideas or feedback for a C# final year programming project?
    F Forbiddenx

    Depending on how long you have.... C# and unity go nice together..

    =)

    C# csharp database beta-testing question announcement

  • Regarding input controls to use on Forums
    F Forbiddenx

    Take a look at this, Its a neat little tool.. http://cutesoft.net/ASP.NET%2BWYSIWYG%2BEditor/[^] You also could google a few others too.. Forum software often uses third party controls like this for posting.. But, there they are just helpful.. you will have to code your own features but some of this little html editors sure will help.

    =)

    ASP.NET help question

  • In Windows Application how to create student marks memo
    F Forbiddenx

    thinking this was meant for the original poster... never sent anything to you. =x

    =)

    C# tutorial

  • PostBack data lost ASP.NET 4.5
    F Forbiddenx

    You can hook events OnLoad() and still have access to session and ViewState. But, from my experience Dynamic controls can be a night mirror, so being new to dotnet you may want to look at other options to do what you are trying to do.. Like Repeater Control, ListView, etc. Also, your control ID is very important.. If you generating controls for example each time you generate them if you want them to keep their ViewState data then you must assign them the same ID they where on the prev postback. I have often implemented a list type of viewstate where I can add all the controls there.. But, then you also run into a lot of problems with this too... IE, Rendering.. etc.... life cycle hell.. So, I would see if the build in controls will do what you want before going down the dynamic path of life cycle hell. I also want to add you can use viewstate, its often better to use then sessions for passing simple postbacks. Good luck my friend... its a scary path..

    =)

    C# csharp html asp-net database linq

  • In Windows Application how to create student marks memo
    F Forbiddenx

    Start here.. http://msdn.microsoft.com/en-us/library/aa288463%28v=vs.71%29.aspx[^] Then move forward, as you do more and more tutorials you will get better at coding.. I started with hello world, 15 years ago.. its a good start!

    =)

    C# tutorial

  • how to writ code for percentage in windows application form
    F Forbiddenx

    private void btnCalc_Click(object sender, EventArgs e)
    {
    int Value;
    int percentage = 10;
    int sal = 99999;
    Value = (sal / 100) * percentage;
    btnCalc.Text = Value.ToString();
    }

    I fixed it! had to assume a lot here.

    =)

    C# tutorial career

  • how to writ code for percentage in windows application form
    F Forbiddenx

    Out of memory...... Good luck! Best error ever!

    =)

    C# tutorial career

  • approve file
    F Forbiddenx

    You can also sometimes detect the type of file beyond the standard ext by readings it into binary and checking the first couple of bytes to see if its a zip file, mp3.. etc.. Its a method to prevent people form uploading say exe with a .jpg extension.. I have done it with Mp3's and it worked pretty good.

    =)

    C# question

  • Design Ideas - List Of Custom controls.
    F Forbiddenx

    Ok, I have been fighting with coming up with a solution here. The problem I need to solve. I have a list, lets just say for example... a custom control.. contains a textbox a, and b. Ok, I store this in a generic list... I can add more and more of these items in that list.. I need to move them up and down... and also hook in call backs.. I need to remember what items are in the list.. and their values on each post back.. I solved this by setting their ids and storing them in a viewstate.. and then re-creating them each time.. works great.. but can only happen in Page_Load and since that happens before click... + and - cannot manipulate the order of the list because its already rendered out and events are hooked so I cant move it.. out that I know of. Now, I have wrote a ton of code... and I can get some of it working but due to life cycle hell.. Its not all working... so I am going back to the drawing board here and figured I would ask other developers for their opinions on a solution. Need to stack dynamic controls with call backs and store their values across post backs.. users can add and remove.. and also order the controls in a list.. Any ideas on possible solutions to this issue in .net that maybe I did not think of ?

    =)

    ASP.NET help csharp graphics design data-structures

  • Is try - catch block advisable?
    F Forbiddenx

    I think we are misunderstanding each other. I do use specific exceptions but at times I also use the generic all exceptions.. But, I also bomb out if I use the generic all exception and stop everything in its tracks.

    catch (Exception exc)
    {
    log it, or present it to the user exc...
    BOMB OUT.... alert.. done.
    I never resume operation that would be bad!
    }

    I only resume operation if I

    catch (ExceptionTYPE exc)
    {
    try to recover..
    }

    Yes, it does add some extra code, but it is better then resuming you want to log any exception that occurs globally.

    =)

    C# question discussion

  • Problems in asp.net website after publishing
    F Forbiddenx

    If you use deploy, then you have to be aware that it does not always deploy everything. You may need to look into a library that exist on your local dev but not on your deployed iis, Check the dlls, and controls etc.. Make sure that they are all either in your app bin dir or registered on your deployment box.

    =)

    ASP.NET csharp help asp-net database visual-studio

  • Viewing password
    F Forbiddenx

    There a lot of methods to using login.. Some use active dr, some can be stored in the database.. I am sure you can get their password but a better question is should you ? I would say prob not, instead build a way for them to reset it and you too reset it... best not to care what their password is, as long as follows your security rules.

    =)

    ASP.NET question
  • Login

  • Don't have an account? Register

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